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"
|
|
|
|
>
|
2015-12-09 22:52:54 +01:00
|
|
|
<md-dialog flex="30" flex-sm="80" flex-xs="100">
|
2015-09-04 16:31:40 +02:00
|
|
|
<md-toolbar>
|
2015-07-31 20:54:55 +02:00
|
|
|
<div class="md-toolbar-tools">
|
2015-08-03 18:48:29 +02:00
|
|
|
<md-icon class="material-icons sg-icon-toolbar-bg">folder_shared</md-icon>
|
2015-07-31 20:54:55 +02:00
|
|
|
<div class="pseudo-input-container md-flex">
|
|
|
|
<label class="pseudo-input-label"><var:string label:value="Delegation"/></label>
|
2015-08-03 20:40:18 +02:00
|
|
|
<div class="sg-md-title">{{delegate.account.name}}</div>
|
2015-07-31 20:54:55 +02:00
|
|
|
</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>
|
|
|
|
|
2015-10-14 16:31:15 +02:00
|
|
|
<md-dialog-content class="md-padding">
|
2016-02-23 16:22:40 +01:00
|
|
|
<div layout="row">
|
|
|
|
<md-icon>search</md-icon>
|
2015-10-14 16:31:15 +02:00
|
|
|
<md-autocomplete
|
2016-02-23 16:22:40 +01:00
|
|
|
class="md-flex sg-input-no-message"
|
2015-10-14 16:31:15 +02:00
|
|
|
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-item-text="user.empty"
|
|
|
|
md-min-length="3"
|
|
|
|
md-no-cache="true"
|
|
|
|
label:md-floating-label="Add User">
|
2016-02-23 16:22:40 +01:00
|
|
|
<md-item-template>
|
|
|
|
<span class="md-contact-suggestion">
|
|
|
|
<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-item-template>
|
2015-10-14 16:31:15 +02:00
|
|
|
</md-autocomplete>
|
|
|
|
</div>
|
|
|
|
|
2015-08-03 20:40:18 +02:00
|
|
|
<md-list>
|
|
|
|
<md-list-item ng-repeat="user in delegate.users | orderBy:['userClass', 'displayName']">
|
2015-09-25 22:07:56 +02:00
|
|
|
<div layout="row" layout-align="start center" class="md-flex card-picture">
|
|
|
|
<sg-avatar-image class="md-avatar"
|
2015-08-03 20:40:18 +02:00
|
|
|
sg-email="user.c_email"
|
2016-11-11 22:46:55 +01:00
|
|
|
size="40">person</sg-avatar-image>
|
2015-07-04 02:40:06 +02:00
|
|
|
<div class="sg-tile-content">
|
2015-09-25 22:07:56 +02:00
|
|
|
<div class="sg-md-subhead"><div>{{user.cn}}</div></div>
|
|
|
|
<div class="sg-md-body"><div>{{user.c_email}}</div></div>
|
2015-07-04 02:40:06 +02:00
|
|
|
</div>
|
2015-08-03 20:40:18 +02:00
|
|
|
<md-button class="sg-icon-button" ng-click="delegate.removeUser(user)">
|
2015-07-04 13:51:20 +02:00
|
|
|
<md-icon>delete</md-icon>
|
2015-07-04 02:40:06 +02:00
|
|
|
</md-button>
|
|
|
|
</div>
|
2015-08-03 20:40:18 +02:00
|
|
|
</md-list-item>
|
|
|
|
</md-list>
|
2015-07-04 02:40:06 +02:00
|
|
|
</md-dialog-content>
|
|
|
|
</md-dialog>
|
|
|
|
</container>
|