mirror of
https://github.com/sismics/docs.git
synced 2025-02-03 14:55:13 +01:00
28 lines
1.7 KiB
HTML
28 lines
1.7 KiB
HTML
|
<h1>User <small>account</small></h1>
|
||
|
<form class="form-horizontal" name="editUserForm" novalidate>
|
||
|
<div class="control-group" ng-class="{ error: !editUserForm.password.$valid, success: editUserForm.password.$valid }">
|
||
|
<label class="control-label" for="inputPassword">Password</label>
|
||
|
<div class="controls">
|
||
|
<input name="password" type="password" id="inputPassword" required
|
||
|
ng-minlength="8" ng-maxlength="50" placeholder="Password" ng-model="user.password" />
|
||
|
<span class="help-inline" ng-show="editUserForm.password.$error.required">Required</span>
|
||
|
<span class="help-inline" ng-show="editUserForm.password.$error.minlength">Too short</span>
|
||
|
<span class="help-inline" ng-show="editUserForm.password.$error.maxlength">Too long</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="control-group" ng-class="{ error: !editUserForm.passwordconfirm.$valid, success: editUserForm.passwordconfirm.$valid }">
|
||
|
<label class="control-label" for="inputPasswordConfirm">Password (confirm)</label>
|
||
|
<div class="controls">
|
||
|
<input name="passwordconfirm" type="password" id="inputPasswordConfirm" required
|
||
|
ui-validate="'$value == user.password'" ui-validate-watch="'user.password'"
|
||
|
placeholder="Password (confirm)" ng-model="user.passwordconfirm" />
|
||
|
<span class="help-inline" ng-show="editUserForm.passwordconfirm.$error.validator">Password and password confirmation must match</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-actions">
|
||
|
<button type="submit" class="btn btn-primary" ng-click="editUser()" ng-disabled="!editUserForm.$valid">
|
||
|
<span class="icon-pencil icon-white"></span> Edit
|
||
|
</button>
|
||
|
</div>
|
||
|
</form>
|
||
|
<alert ng-repeat="alert in alerts" type="alert.type" close="closeAlert($index)">{{ alert.msg }}</alert>
|