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.

27 lines
989 B

  1. <div ng-if="user">
  2. <md-toolbar>
  3. <div class="md-toolbar-tools">
  4. <h2><span>Edit {{user.uid}}</span></h2>
  5. </div>
  6. </md-toolbar>
  7. <md-content layout-padding>
  8. <div layout="row" layout-align="space-between start">
  9. <div>
  10. <md-input-container class="md-block">
  11. <label>Common name</label>
  12. <input ng-model="user.cn" required autofocus>
  13. </md-input-container>
  14. </div>
  15. <div>
  16. <md-button class="md-raised" ng-click="changePassword()" ng-if="logged_user.services.admin">Change password</md-button>
  17. </div>
  18. </div>
  19. <h3>Services</h3>
  20. <div ng-repeat="(service, status) in user.services">
  21. <md-checkbox aria-label="{{service}}" ng-model="user.services[service]">{{service}}</md-checkbox>
  22. </div>
  23. <md-button type="submit" class="md-raised md-primary" ng-click="save()">Save</md-button>
  24. </md-content>
  25. </div>
  26. <!-- <div ng-repeat="(service, status) in user.services" ng-if="status">{{service}} -->