您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

useredit.html 2.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <dialog-ok-cancel title="{{ user.Id == null ? 'Add' : 'Edit'}} user {{ user.Username }}">
  2. <div class="form-group">
  3. <label for="username" class="col-sm-2 control-label">Username</label>
  4. <div class="col-sm-9">
  5. <input id="username" class="form-control" ng-model="user.Username" ng-readonly="user.Id != null" required/>
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label for="email" class="col-sm-2 control-label">Email</label>
  10. <div class="col-sm-9">
  11. <input id="email" class="form-control" ng-model="user.Email" lu-enable-permission="{{ permission }}"/>
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label for="firstname" class="col-sm-2 control-label">Firstname</label>
  16. <div class="col-sm-9">
  17. <input id="firstname" class="form-control" ng-model="user.Firstname" lu-enable-permission="{{ permission }}"/>
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label for="lastname" class="col-sm-2 control-label">Lastname</label>
  22. <div class="col-sm-9">
  23. <input id="lastname" class="form-control" ng-model="user.Lastname" lu-enable-permission="{{ permission }}"/>
  24. </div>
  25. </div>
  26. <div lu-show-permission="{{ permissionPassword }}">
  27. <div class="form-group">
  28. <label for="password" class="col-sm-2 control-label">Password</label>
  29. <div class="col-sm-9">
  30. <input id="password" class="form-control" type="password" ng-model="userPassword.value"
  31. name="password" ui-validate="passwordValidation"/>
  32. </div>
  33. </div>
  34. <div class="form-group">
  35. <label for="password2" class="col-sm-2 control-label">Confirmation</label>
  36. <div class="col-sm-9">
  37. <input id="password2" class="form-control" type="password" ng-model="userPassword.confirm"
  38. name="password2" ui-validate="password2Validation" ui-validate-watch="'userPassword.value'"/>
  39. </div>
  40. </div>
  41. <div class="col-sm-offset-2 col-sm-9">
  42. <p class="error" ng-show="form.password.$error.length">Passwords is too short</p>
  43. <p class="error" ng-show="form.password2.$error.same_passwords">Passwords do not match</p>
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <div class="col-sm-2"></div>
  48. <button type="button" class="btn btn-default"
  49. ng-click="editPermissions(user)" ng-show="canEditPermissions()">
  50. Edit permissions
  51. </button>
  52. <button type="button" class="btn btn-default" lu-show-permission="LU_PERM_EFFECTIVE_GET,LU_PERM_GET"
  53. ng-click="showEffectivePermissions(user)" ng-show="user.Id != null">
  54. Show effective permissions
  55. </button>
  56. </div>
  57. </dialog-ok-cancel>