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

<div ng-if="user">
<md-toolbar>
<div class="md-toolbar-tools">
<h2><span>Edit {{user.uid}}</span></h2>
</div>
</md-toolbar>
<md-content layout-padding>
<div layout="row" layout-align="space-between start">
<div>
<md-input-container class="md-block">
<label>Common name</label>
<input ng-model="user.cn" required autofocus>
</md-input-container>
</div>
<div>
<md-button class="md-raised" ng-click="changePassword()" ng-if="logged_user.services.admin">Change password</md-button>
</div>
</div>
<h3>Services</h3>
<div ng-repeat="(service, status) in user.services">
<md-checkbox aria-label="{{service}}" ng-model="user.services[service]">{{service}}</md-checkbox>
</div>
<md-button type="submit" class="md-raised md-primary" ng-click="save()">Save</md-button>
</md-content>
</div>
<!-- <div ng-repeat="(service, status) in user.services" ng-if="status">{{service}} -->