LILiK login and user managment web interface
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.6 KiB

  1. <md-dialog md-theme="default" ng-class="dialog.css" class="_md md-default-theme md-transition-in">
  2. <md-dialog-content class="md-dialog-content">
  3. <h2>Change {{ user.uid }}'s password</h2>
  4. <form name="newPasswordForm" role="form" ng-submit="newPasswordForm.$valid && ok()" novalidate>
  5. <md-input-container class="md-block">
  6. <label for="newPassword">New Password</label>
  7. <input type="password" name="newPassword" ng-model="password.new"
  8. ng-minlength="6" required />
  9. <div class="help-block"
  10. ng-show="newPasswordForm.newPassword.$dirty && newPasswordForm.newPassword.$invalid">
  11. Please enter a new password, it must be at least 6 characters long.
  12. </div>
  13. </md-input-container>
  14. <md-input-container class="md-block">
  15. <label for="newPasswordConfirm">Confirm New Password</label>
  16. <input type="password" name="newPasswordConfirm"
  17. ng-model="password.confirm" ng-minlength="6"
  18. value-matches="password.new" required />
  19. <div class="help-block"
  20. ng-show="newPasswordForm.newPasswordConfirm.$dirty && newPasswordForm.newPasswordConfirm.$invalid">
  21. Please enter the same password again to confirm.
  22. </div>
  23. </md-input-container>
  24. <md-dialog-actions>
  25. <md-button ng-click="closeDialog()" class="md-primary">Cancel</md-button>
  26. <md-button class="md-raised md-primary md-ink-ripple" ng-disabled="newPasswordForm.$invalid" ng-click="save()">Save</md-button>
  27. </md-dialog-actions>
  28. </form>
  29. </md-dialog-content>
  30. </md-dialog>