2010-09-30 20:05:14 +02:00
|
|
|
<?xml version="1.0" standalone="yes"?>
|
2015-07-04 02:40:06 +02:00
|
|
|
<!DOCTYPE container>
|
|
|
|
<container
|
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
|
|
xmlns:var="http://www.skyrix.com/od/binding"
|
|
|
|
xmlns:const="http://www.skyrix.com/od/constant"
|
|
|
|
xmlns:label="OGo:label"
|
|
|
|
>
|
|
|
|
<md-dialog flex="50" flex-sm="100">
|
|
|
|
<md-dialog-content>
|
|
|
|
<h2 class="md-headline"><var:string label:value="Delegation"/> - {{delegate.account.name}}</h2>
|
|
|
|
<md-card ng-repeat="user in delegate.users | orderBy:['userClass', 'displayName']"
|
|
|
|
ng-click="delegate.selectUser(user)"
|
|
|
|
ng-class="{ 'sg-collapsed': user.uid != delegate.selectedUser.uid, 'sg-expanded': user.uid == delegate.selectedUser.uid }">
|
|
|
|
<md-button>
|
|
|
|
<div layout="row" layout-align="start center" class="md-flex">
|
|
|
|
<span class="card-picture" ng-switch="user.userClass">
|
|
|
|
<div class="sg-avatar"><!-- normal-user --></div>
|
|
|
|
</span>
|
|
|
|
<div class="sg-tile-content">
|
|
|
|
<div class="sg-md-subhead-multi">{{user.cn}}</div>
|
|
|
|
<div class="sg-md-body-multi">{{user.c_email}}</div>
|
|
|
|
</div>
|
|
|
|
<md-button ng-click="delegate.removeUser(user)"
|
|
|
|
type="button"
|
|
|
|
ng-hide="user.uid != delegate.selectedUser.uid || user.$isSpecial()">
|
2015-07-04 13:51:20 +02:00
|
|
|
<md-icon>delete</md-icon>
|
2015-07-04 02:40:06 +02:00
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
</md-button>
|
|
|
|
</md-card>
|
|
|
|
</md-dialog-content>
|
2010-09-30 20:05:14 +02:00
|
|
|
|
2015-07-04 02:40:06 +02:00
|
|
|
<div class="md-actions">
|
|
|
|
<md-autocomplete
|
|
|
|
class="md-flex"
|
|
|
|
md-input-name="addUser"
|
|
|
|
md-search-text="delegate.searchText"
|
|
|
|
md-selected-item="delegate.userToAdd"
|
|
|
|
md-selected-item-change="delegate.addUser(user)"
|
|
|
|
md-items="user in delegate.userFilter(delegate.searchText)"
|
|
|
|
md-min-length="3"
|
|
|
|
md-no-cache="true"
|
|
|
|
label:md-floating-label="Add User">
|
|
|
|
<span class="md-contact-suggestion" layout="row" layout-align="space-between center">
|
|
|
|
<span class="md-contact-name"
|
|
|
|
md-highlight-text="delegate.searchText"
|
|
|
|
md-highlight-flags="^i">{{user.cn}}</span> <span class="md-contact-email"
|
|
|
|
md-highlight-text="delegate.searchText"
|
|
|
|
md-highlight-flags="^i">{{user.c_email}}</span>
|
|
|
|
</span>
|
|
|
|
</md-autocomplete>
|
|
|
|
<md-button ng-click="delegate.closeModal()"><var:string label:value="Close"/></md-button>
|
2010-09-30 20:05:14 +02:00
|
|
|
</div>
|
2015-07-04 02:40:06 +02:00
|
|
|
</md-dialog>
|
|
|
|
|
|
|
|
</container>
|