Login component working

This commit is contained in:
John Lyon-Smith
2018-02-27 14:44:37 -08:00
parent 73b5cf6caa
commit c79df7722b
25 changed files with 112 additions and 321 deletions

View File

@@ -2,7 +2,7 @@ import React from 'react'
import PropTypes from 'prop-types'
import { reactAutoBind } from 'auto-bind2'
import { regExpPattern } from 'regexp-pattern'
import { Constants, api } from '../helpers'
import { api } from 'src/API'
import { Column, BoundInput, BoundButton, BoundCheckbox, BoundEmailIcon } from 'ui'
import { FormBinder } from 'react-form-binder'
@@ -103,9 +103,7 @@ export class UserForm extends React.Component {
<form onSubmit={this.handleSubmit}>
<Column>
<Column.Item>
<BoundCheckbox label={'Deighton Access & Security Level'} width={6} selection
options={Constants.accessLevels} name='role' message='The user role and security level'
placeholder='' binder={this.state.binder} />
<BoundCheckbox label={'Administrator'} name='administrator' binder={this.state.binder} />
</Column.Item>
<Column.Item>
<BoundInput label='First Name' name='firstName'