1 <div class=
"col-sm-12 col-lg-6">
3 class=
"form-horizontal"
7 <div class=
"panel panel-default">
8 <div class=
"panel-heading">
9 <h3 i18n=
"form title|Example: Create Pool@@formTitle"
10 class=
"panel-title">{{ action | titlecase }} {{ resource | upperFirst }}
</h3>
12 <div class=
"panel-body">
15 <div class=
"form-group"
16 [ngClass]=
"{'has-error': userForm.showError('username', formDir)}">
17 <label class=
"control-label col-sm-3"
19 <ng-container i18n
>Username
</ng-container>
20 <span class=
"required"
21 *
ngIf=
"mode !== userFormMode.editing"></span>
23 <div class=
"col-sm-9">
24 <input class=
"form-control"
26 placeholder=
"Username..."
29 formControlName=
"username"
31 <span class=
"help-block"
32 *
ngIf=
"userForm.showError('username', formDir, 'required')"
33 i18n
>This field is required.
</span>
38 <div class=
"form-group"
39 [ngClass]=
"{'has-error': userForm.showError('password', formDir)}">
41 class=
"control-label col-sm-3"
42 for=
"name">Password
</label>
43 <div class=
"col-sm-9">
44 <div class=
"input-group">
45 <input class=
"form-control"
47 placeholder=
"Password..."
50 autocomplete=
"new-password"
51 formControlName=
"password">
52 <span class=
"input-group-btn">
54 class=
"btn btn-default"
55 cdPasswordButton=
"password">
59 <span class=
"help-block"
60 *
ngIf=
"userForm.showError('password', formDir, 'required')"
61 i18n
>This field is required.
</span>
65 <!-- Confirm password -->
66 <div class=
"form-group"
67 [ngClass]=
"{'has-error': userForm.showError('confirmpassword', formDir)}">
69 class=
"control-label col-sm-3"
70 for=
"name">Confirm password
</label>
71 <div class=
"col-sm-9">
72 <div class=
"input-group">
73 <input class=
"form-control"
75 placeholder=
"Confirm password..."
77 name=
"confirmpassword"
78 formControlName=
"confirmpassword">
79 <span class=
"input-group-btn">
81 class=
"btn btn-default"
82 cdPasswordButton=
"confirmpassword">
86 <span class=
"help-block"
87 *
ngIf=
"userForm.showError('confirmpassword', formDir, 'required')"
88 i18n
>This field is required.
</span>
89 <span class=
"help-block"
90 *
ngIf=
"userForm.showError('confirmpassword', formDir, 'match')"
91 i18n
>Password confirmation doesn't match the password.
</span>
96 <div class=
"form-group">
98 class=
"control-label col-sm-3"
99 for=
"name">Full name
</label>
100 <div class=
"col-sm-9">
101 <input class=
"form-control"
103 placeholder=
"Full name..."
106 formControlName=
"name">
111 <div class=
"form-group"
112 [ngClass]=
"{'has-error': userForm.showError('email', formDir)}">
114 class=
"control-label col-sm-3"
115 for=
"email">Email
</label>
116 <div class=
"col-sm-9">
117 <input class=
"form-control"
119 placeholder=
"Email..."
122 formControlName=
"email">
124 <span class=
"help-block"
125 *
ngIf=
"userForm.showError('email', formDir, 'email')"
126 i18n
>Invalid email.
</span>
131 <label class=
"col-sm-3 control-label"
133 <div class=
"col-sm-9">
134 <span class=
"form-control no-border full-height"
136 <cd-select-badges [data]=
"userForm.controls.roles.value"
138 [messages]=
"messages"></cd-select-badges>
143 <div class=
"panel-footer">
144 <div class=
"button-group text-right">
147 (submitAction)=
"submit()"
148 i18n=
"form action button|Example: Create Pool@@formActionButton"
149 type=
"button">{{ action | titlecase }} {{ resource | upperFirst }}
</cd-submit-button>
150 <cd-back-button></cd-back-button>
157 <ng-template #removeSelfUserReadUpdatePermissionTpl
>
158 <p><strong i18n
>You are about to remove
"user read / update" permissions from your own user.
</strong></p>
160 <p i18n
>If you continue, you will no longer be able to add or remove roles from any user.
</p>
162 <ng-container i18n
>Are you sure you want to continue?
</ng-container>