Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

useredit.html 3.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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 autofocus 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" ng-show="user.Id != null">
  47. <div class="col-sm-offset-2 col-sm-9">
  48. <div class="col-sm-6">
  49. <button type="button" class="btn btn-primary btn-block" ng-click="editPermissions(user)"
  50. lu-show-permission="LU_PERM_USER_GET">
  51. Edit permissions
  52. </button>
  53. </div>
  54. <div class="col-sm-6">
  55. <button type="button" class="btn btn-info btn-block" ng-click="showEffectivePermissions(user)"
  56. lu-show-permission="LU_PERM_EFFECTIVE_GET,LU_PERM_GET">
  57. Show effective permissions
  58. </button>
  59. </div>
  60. </div>
  61. <div class="clearfix"></div>
  62. </div>
  63. <div class="form-group" ng-show="user.Id != null">
  64. <div class="col-sm-offset-2 col-sm-9">
  65. <div class="col-sm-6">
  66. <button type="button" class="btn btn-primary btn-block" ng-click="editSettings(user)"
  67. lu-show-permission="LU_SETTING_USER_GET">
  68. Edit settings
  69. </button>
  70. </div>
  71. <div class="col-sm-6">
  72. <button type="button" class="btn btn-info btn-block" ng-click="showEffectiveSettings(user)"
  73. lu-show-permission="LU_SETTING_EFFECTIVE_GET,LU_SETTING_GET">
  74. Show effective settings
  75. </button>
  76. </div>
  77. </div>
  78. <div class="clearfix"></div>
  79. </div>
  80. </dialog-ok-cancel>