mirror of
https://github.com/strapi/strapi.git
synced 2025-12-29 08:04:51 +00:00
Add layout user and apply design change
This commit is contained in:
parent
5d6f035384
commit
3cf999c8a6
@ -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;
|
||||
}
|
||||
|
||||
@ -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}
|
||||
|
||||
@ -1 +1 @@
|
||||
export default ({});
|
||||
module.exports = {};
|
||||
|
||||
@ -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%);
|
||||
|
||||
22
packages/strapi-plugin-users-permissions/config/layout.js
Normal file
22
packages/strapi-plugin-users-permissions/config/layout.js
Normal 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'
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -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": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user