Align password change dialog with create (#2970)
This commit is contained in:
parent
c342fa3035
commit
4d1cfd6706
@ -46,6 +46,16 @@
|
|||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.passwords {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.password {
|
||||||
|
flex: 0 1 50%;
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
.passwordHint {
|
.passwordHint {
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
color: lightgrey;
|
color: lightgrey;
|
||||||
|
@ -181,33 +181,37 @@ export default class PasswordManager extends Component {
|
|||||||
disabled={ disabled }
|
disabled={ disabled }
|
||||||
onSubmit={ this.handleChangePassword }
|
onSubmit={ this.handleChangePassword }
|
||||||
onChange={ this.onEditCurrent } />
|
onChange={ this.onEditCurrent } />
|
||||||
|
|
||||||
<Input
|
<Input
|
||||||
label='new password'
|
label='(optional) new password hint'
|
||||||
hint='the new password for this account'
|
|
||||||
type='password'
|
|
||||||
submitOnBlur={ false }
|
|
||||||
disabled={ disabled }
|
|
||||||
onSubmit={ this.handleChangePassword }
|
|
||||||
onChange={ this.onEditNew } />
|
|
||||||
<Input
|
|
||||||
label='repeat new password'
|
|
||||||
hint='repeat the new password for this account'
|
|
||||||
type='password'
|
|
||||||
submitOnBlur={ false }
|
|
||||||
error={ repeatError }
|
|
||||||
disabled={ disabled }
|
|
||||||
onSubmit={ this.handleChangePassword }
|
|
||||||
onChange={ this.onEditRepeatNew } />
|
|
||||||
|
|
||||||
<Input
|
|
||||||
label='new password hint'
|
|
||||||
hint='hint for the new password'
|
hint='hint for the new password'
|
||||||
submitOnBlur={ false }
|
submitOnBlur={ false }
|
||||||
value={ passwordHint }
|
value={ passwordHint }
|
||||||
disabled={ disabled }
|
disabled={ disabled }
|
||||||
onSubmit={ this.handleChangePassword }
|
onSubmit={ this.handleChangePassword }
|
||||||
onChange={ this.onEditHint } />
|
onChange={ this.onEditHint } />
|
||||||
|
<div className={ styles.passwords }>
|
||||||
|
<div className={ styles.password }>
|
||||||
|
<Input
|
||||||
|
label='new password'
|
||||||
|
hint='the new password for this account'
|
||||||
|
type='password'
|
||||||
|
submitOnBlur={ false }
|
||||||
|
disabled={ disabled }
|
||||||
|
onSubmit={ this.handleChangePassword }
|
||||||
|
onChange={ this.onEditNew } />
|
||||||
|
</div>
|
||||||
|
<div className={ styles.password }>
|
||||||
|
<Input
|
||||||
|
label='repeat new password'
|
||||||
|
hint='repeat the new password for this account'
|
||||||
|
type='password'
|
||||||
|
submitOnBlur={ false }
|
||||||
|
error={ repeatError }
|
||||||
|
disabled={ disabled }
|
||||||
|
onSubmit={ this.handleChangePassword }
|
||||||
|
onChange={ this.onEditRepeatNew } />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Form>
|
</Form>
|
||||||
</Tab>
|
</Tab>
|
||||||
|
Loading…
Reference in New Issue
Block a user