69 lines
2.8 KiB
XML
69 lines
2.8 KiB
XML
<?xml version="1.0" standalone="yes"?>
|
|
<!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-toolbar class="sg-padded">
|
|
<div class="md-toolbar-tools">
|
|
<md-icon class="material-icons sg-icon-toolbar-bg">folder_shared</md-icon>
|
|
<div class="pseudo-input-container md-flex">
|
|
<label class="pseudo-input-label"><var:string label:value="Delegation"/></label>
|
|
<div class="pseudo-input-field sg-md-title">{{delegate.account.name}}</div>
|
|
</div>
|
|
<md-button class="md-icon-button" ng-click="delegate.closeModal()">
|
|
<md-icon aria-label="Close dialog">close</md-icon>
|
|
</md-button>
|
|
</div>
|
|
</md-toolbar>
|
|
|
|
<md-dialog-content>
|
|
<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()">
|
|
<md-icon>delete</md-icon>
|
|
</md-button>
|
|
</div>
|
|
</md-button>
|
|
</md-card>
|
|
</md-dialog-content>
|
|
|
|
<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>
|
|
</div>
|
|
</md-dialog>
|
|
|
|
</container>
|