+ client: add clients forms validation and cache findClients function

This commit is contained in:
Artem Baskal
2019-12-12 21:48:17 +03:00
parent cddf3ca01e
commit 2e493e0226
16 changed files with 187 additions and 162 deletions

View File

@@ -6,7 +6,7 @@ import flow from 'lodash/flow';
import i18n from '../../i18n';
import Controls from './Controls';
import renderField from './renderField';
import { renderInputField } from '../../helpers/form';
const required = (value) => {
if (value || value === 0) {
@@ -48,7 +48,7 @@ const Auth = (props) => {
</label>
<Field
name="username"
component={renderField}
component={renderInputField}
type="text"
className="form-control"
placeholder={ t('install_auth_username_enter') }
@@ -62,7 +62,7 @@ const Auth = (props) => {
</label>
<Field
name="password"
component={renderField}
component={renderInputField}
type="password"
className="form-control"
placeholder={ t('install_auth_password_enter') }
@@ -76,7 +76,7 @@ const Auth = (props) => {
</label>
<Field
name="confirm_password"
component={renderField}
component={renderInputField}
type="password"
className="form-control"
placeholder={ t('install_auth_confirm') }