Add user type.

This commit is contained in:
Yang Luo
2021-04-26 19:00:23 +08:00
parent 4dd0c1a457
commit 0fc7015c61
5 changed files with 17 additions and 0 deletions

View File

@ -248,6 +248,19 @@ class UserEditPage extends React.Component {
</Row>
</Col>
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:User Type")}:
</Col>
<Col span={22} >
<Select virtual={false} style={{width: '100%'}} value={this.state.user.type} onChange={(value => {this.updateUserField('type', value);})}>
{
['normal-user']
.map((item, index) => <Option key={index} value={item}>{item}</Option>)
}
</Select>
</Col>
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:Password Type")}: