-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
password-section.hbs
44 lines (44 loc) · 1.78 KB
/
password-section.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<form class="ui form {{if this.isLoading 'loading'}}" autocomplete="off" {{action 'submit' on='submit'}}>
<div class="field">
<label class="required">
{{t 'Current Password'}}
</label>
<div class="ui icon input">
<Input @type={{if this.showPassCurrent "text" "password"}} @name="password_current" placeholder={{t "Current Password"}} @value={{this.passwordCurrent}} />
<div class="ui small basic icon buttons">
<button type="button" class="ui button" {{action 'showPassword' 'Current'}}>
<i class="{{if this.showPassCurrent 'hide' 'unhide'}} basic icon"></i>
</button>
</div>
</div>
</div>
<div class="field">
<label class="required">
{{t 'New Password'}}
</label>
<div class="ui icon input">
<Input @type={{if this.showPassNew "text" "password"}} @name="password_new" placeholder={{t "New Password"}} @value={{this.passwordNew}} />
<div class="ui small basic icon buttons">
<button type="button" class="ui button" {{action 'showPassword' 'New'}}>
<i class="{{if this.showPassNew 'hide' 'unhide'}} basic icon"></i>
</button>
</div>
</div>
</div>
<div class="field">
<label class="required">
{{t 'Repeat Password'}}
</label>
<div class="ui icon input">
<Input @type={{if this.showPassRepeat "text" "password"}} @name="password_repeat" placeholder={{t "Repeat Password"}} @value={{this.passwordRepeat}} />
<div class="ui small basic icon buttons">
<button type="button" class="ui button" {{action 'showPassword' 'Repeat'}}>
<i class="{{if this.showPassRepeat 'hide' 'unhide'}} basic icon"></i>
</button>
</div>
</div>
</div>
<button class="ui teal button" type="submit">
{{t 'Save'}}
</button>
</form>