|
@@ -2,13 +2,28 @@ import React from 'react';
|
|
|
import PropTypes from 'prop-types';
|
|
import PropTypes from 'prop-types';
|
|
|
import { withTranslation } from 'react-i18next';
|
|
import { withTranslation } from 'react-i18next';
|
|
|
|
|
|
|
|
|
|
+import Button from 'react-bootstrap/es/Button';
|
|
|
import Modal from 'react-bootstrap/es/Modal';
|
|
import Modal from 'react-bootstrap/es/Modal';
|
|
|
|
|
+import FormControl from 'react-bootstrap/es/FormControl';
|
|
|
|
|
|
|
|
import { createSubscribedElement } from '../../UnstatedUtils';
|
|
import { createSubscribedElement } from '../../UnstatedUtils';
|
|
|
import AppContainer from '../../../services/AppContainer';
|
|
import AppContainer from '../../../services/AppContainer';
|
|
|
|
|
|
|
|
class UserInviteModal extends React.Component {
|
|
class UserInviteModal extends React.Component {
|
|
|
|
|
|
|
|
|
|
+ constructor(props) {
|
|
|
|
|
+ super(props);
|
|
|
|
|
+
|
|
|
|
|
+ this.state = {
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ this.handleSubmit = this.handleSubmit.bind(this);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ handleSubmit() {
|
|
|
|
|
+ console.log('push submit');
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
render() {
|
|
render() {
|
|
|
const { t } = this.props;
|
|
const { t } = this.props;
|
|
|
|
|
|
|
@@ -16,13 +31,40 @@ class UserInviteModal extends React.Component {
|
|
|
<Modal show={this.props.show} onHide={this.props.onToggleModal}>
|
|
<Modal show={this.props.show} onHide={this.props.onToggleModal}>
|
|
|
<Modal.Header className="modal-header" closeButton>
|
|
<Modal.Header className="modal-header" closeButton>
|
|
|
<Modal.Title>
|
|
<Modal.Title>
|
|
|
- { t('user_management.reset_password') }
|
|
|
|
|
|
|
+ { t('user_management.invite_users') }
|
|
|
</Modal.Title>
|
|
</Modal.Title>
|
|
|
</Modal.Header>
|
|
</Modal.Header>
|
|
|
<Modal.Body>
|
|
<Modal.Body>
|
|
|
- ここにモーダル
|
|
|
|
|
|
|
+ <label> { t('user_management.emails') }</label>
|
|
|
|
|
+ <FormControl
|
|
|
|
|
+ placeholder="e.g. user@growi.org"
|
|
|
|
|
+ />
|
|
|
</Modal.Body>
|
|
</Modal.Body>
|
|
|
- <Modal.Footer>
|
|
|
|
|
|
|
+ <Modal.Footer className="d-flex">
|
|
|
|
|
+ <label className="mr-3 text-left" style={{ flex: 1 }}>
|
|
|
|
|
+ {/* TODO Check Boxの値を設定する */}
|
|
|
|
|
+ <input
|
|
|
|
|
+ type="checkbox"
|
|
|
|
|
+ id="comment-form-is-markdown"
|
|
|
|
|
+ name="isMarkdown"
|
|
|
|
|
+ checked={this.state.isMarkdown}
|
|
|
|
|
+ value="1"
|
|
|
|
|
+ onChange={this.updateStateCheckbox}
|
|
|
|
|
+ />
|
|
|
|
|
+ <span className="ml-2">{ t('user_management.invite_thru_email') }</span>
|
|
|
|
|
+ </label>
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <Button bsStyle="danger" className="fcbtn btn btn-xs btn-danger btn-outline btn-rounded" onClick={this.props.onToggleModal}>
|
|
|
|
|
+ Cancel
|
|
|
|
|
+ </Button>
|
|
|
|
|
+ <Button
|
|
|
|
|
+ bsStyle="primary"
|
|
|
|
|
+ className="fcbtn btn btn-primary btn-outline btn-rounded btn-1b"
|
|
|
|
|
+ onClick={this.handleSubmit}
|
|
|
|
|
+ >
|
|
|
|
|
+ Done
|
|
|
|
|
+ </Button>
|
|
|
|
|
+ </div>
|
|
|
</Modal.Footer>
|
|
</Modal.Footer>
|
|
|
</Modal>
|
|
</Modal>
|
|
|
);
|
|
);
|