mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-28 00:04:31 +02:00
Ivan - Add form [skip ci]
This commit is contained in:
parent
adfb1c7335
commit
c0d34c68fc
@ -2,6 +2,11 @@ import React from 'react';
|
|||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
|
|
||||||
import i18n from 'lib-app/i18n';
|
import i18n from 'lib-app/i18n';
|
||||||
|
import API from 'lib-app/api-call';
|
||||||
|
|
||||||
|
import Form from 'core-components/form';
|
||||||
|
import FormField from 'core-components/form-field';
|
||||||
|
import SubmitButton from 'core-components/submit-button';
|
||||||
|
|
||||||
class StaffEditor extends React.Component {
|
class StaffEditor extends React.Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
@ -51,7 +56,25 @@ class StaffEditor extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
<div className="col-md-8">
|
<div className="col-md-8">
|
||||||
<div className="staff-editor__form">
|
<div className="staff-editor__form">
|
||||||
FORM
|
<Form>
|
||||||
|
<FormField name="email" validation="EMAIL" required/>
|
||||||
|
<SubmitButton>{i18n('UPDATE_EMAIL')}</SubmitButton>
|
||||||
|
</Form>
|
||||||
|
<span className="staff-editor__separator" />
|
||||||
|
<Form>
|
||||||
|
<FormField name="password" validation="EMAIL" required/>
|
||||||
|
<FormField name="rpassword" validation="EMAIL" required/>
|
||||||
|
<SubmitButton>{i18n('UPDATE_PASSWORD')}</SubmitButton>
|
||||||
|
</Form>
|
||||||
|
<span className="staff-editor__separator" />
|
||||||
|
<Form>
|
||||||
|
<FormField name="level" label={i18n('LEVEL')} field="select" fieldProps={{
|
||||||
|
items: [{content: i18n('LEVEL_1')}, {content: i18n('LEVEL_2')}, {content: i18n('LEVEL_3')}],
|
||||||
|
size: 'large'
|
||||||
|
}} />
|
||||||
|
<SubmitButton>{i18n('UPDATE_LEVEL')}</SubmitButton>
|
||||||
|
</Form>
|
||||||
|
<span className="staff-editor__separator" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user