Add layout user and apply design change

This commit is contained in:
Aurelsicoko 2017-11-28 16:20:39 +01:00
parent 5d6f035384
commit 3cf999c8a6
6 changed files with 55 additions and 5 deletions

View File

@ -24,7 +24,7 @@ const tryRequireRoot = (source) => {
const tryRequireConfig = (source) => {
try {
return require('../../../../config/' + source + '.js').default;
return require('../../../../config/' + source + '.js');
} catch(err) {
return null;
}

View File

@ -250,7 +250,7 @@ class Input extends React.Component { // eslint-disable-line react/prefer-statel
<input
className={`form-control ${!this.props.deactivateErrorHighlight && !isEmpty(this.state.errors) ? 'is-invalid': ''}`}
onChange={this.props.onChange}
value={type === 'password' ? '********' : this.props.value}
value={this.props.value}
name={this.props.name}
id={this.props.label}
onBlur={handleBlur}

View File

@ -1 +1 @@
export default ({});
module.exports = {};

View File

@ -25,6 +25,7 @@
position: relative;
display: flex;
flex: 1 100%;
max-width: 33%;
height: 3.6rem;
border-radius: 2px 0 0 0;
background-color: darken(#F5F5F5, 50%);

View File

@ -0,0 +1,22 @@
module.exports = {
user: {
username: {
className: 'col-md-6'
},
email: {
className: 'col-md-6'
},
username: {
className: 'col-md-6'
},
provider: {
className: 'd-none'
},
resetPasswordToken: {
className: 'd-none'
},
role: {
className: 'd-none'
}
}
};

View File

@ -248,8 +248,35 @@
}
},
"application": {
"controllers": {}
"controllers": {
"category": {
"find": {
"enabled": false,
"policy": ""
},
"findOne": {
"enabled": false,
"policy": ""
},
"create": {
"enabled": false,
"policy": ""
},
"update": {
"enabled": false,
"policy": ""
},
"destroy": {
"enabled": false,
"policy": ""
},
"identity": {
"enabled": false,
"policy": ""
}
}
}
}
}
}
}
}