2015-10-07 22:21:06 +02:00
|
|
|
<?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"
|
|
|
|
>
|
2017-11-23 17:26:59 +01:00
|
|
|
<div layout-fill="layout-fill" layout="column">
|
2016-01-19 21:21:06 +01:00
|
|
|
<md-card>
|
2016-03-08 19:20:34 +01:00
|
|
|
<md-toolbar class="hide show-xs" flex-none="flex-none">
|
2016-01-19 21:21:06 +01:00
|
|
|
<div class="md-toolbar-tools">
|
|
|
|
<md-button class="sg-icon-button"
|
|
|
|
label:aria-label="Close"
|
|
|
|
ng-click="acl.close()">
|
|
|
|
<md-icon>close</md-icon>
|
|
|
|
</md-button>
|
|
|
|
<div class="md-flex"><!-- spacer --></div>
|
|
|
|
<md-button class="md-icon-button"
|
|
|
|
ng-click="acl.save()">
|
|
|
|
<md-icon>save</md-icon>
|
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
</md-toolbar>
|
2016-03-08 19:20:34 +01:00
|
|
|
<md-toolbar flex-none="flex-none">
|
2016-01-19 21:21:06 +01:00
|
|
|
<div layout="row">
|
|
|
|
<sg-avatar-image class="md-tile-left"
|
|
|
|
sg-email="::acl.user.c_email"
|
2016-11-11 22:46:55 +01:00
|
|
|
size="40">{{acl.user.$avatarIcon}}</sg-avatar-image>
|
2016-01-19 21:21:06 +01:00
|
|
|
<div class="msg-header-content">
|
2018-01-17 18:43:06 +01:00
|
|
|
<div ng-class="{ 'sg-md-display-2--thin': isGtMedium,
|
|
|
|
'sg-md-title': !isGtMedium }">{{::acl.user.cn}}</div>
|
|
|
|
<div class="sg-md-display-2-subheader"><md-icon ng-class="{ 'icon-contacts': acl.folderType == 'AddressBook',
|
2016-01-19 21:21:06 +01:00
|
|
|
'icon-event': acl.folderType == 'Calendar' }"><!--icon--></md-icon>
|
|
|
|
{{::acl.folder.name}}
|
2018-01-17 18:43:06 +01:00
|
|
|
</div>
|
2016-01-19 21:21:06 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- only show the fab button on large screens -->
|
|
|
|
<md-button type="button" class="hide-xs md-fab md-fab-bottom-right md-fab-overlap-bottom"
|
2015-10-13 20:30:09 +02:00
|
|
|
ng-click="acl.save()">
|
|
|
|
<md-icon>save</md-icon>
|
|
|
|
</md-button>
|
2016-01-19 21:21:06 +01:00
|
|
|
</md-toolbar>
|
2017-11-23 17:26:59 +01:00
|
|
|
<md-card-content>
|
2015-10-13 20:30:09 +02:00
|
|
|
<div layout="row">
|
|
|
|
<md-icon>search</md-icon>
|
|
|
|
<md-autocomplete
|
2016-01-19 21:21:06 +01:00
|
|
|
class="md-flex sg-input-no-message"
|
2015-10-13 20:30:09 +02:00
|
|
|
md-input-name="addUser"
|
|
|
|
md-search-text="acl.searchText"
|
|
|
|
md-selected-item="acl.userToAdd"
|
|
|
|
md-selected-item-change="acl.addUser(user)"
|
|
|
|
md-items="user in acl.userFilter(acl.searchText)"
|
|
|
|
md-item-text="user.empty"
|
|
|
|
md-min-length="3"
|
|
|
|
md-delay="300"
|
|
|
|
md-no-cache="true"
|
|
|
|
label:md-floating-label="Add User">
|
|
|
|
<md-item-template>
|
|
|
|
<span class="md-contact-suggestion">
|
|
|
|
<span class="md-contact-name"
|
|
|
|
md-highlight-text="acl.searchText"
|
2017-04-24 22:15:39 +02:00
|
|
|
md-highlight-flags="^i">{{ user.$fullname() }}</span>
|
2015-10-13 20:30:09 +02:00
|
|
|
<span class="md-contact-email"
|
|
|
|
md-highlight-text="acl.searchText"
|
|
|
|
md-highlight-flags="^i">{{user.c_email}}</span>
|
|
|
|
</span>
|
|
|
|
</md-item-template>
|
|
|
|
</md-autocomplete>
|
|
|
|
</div>
|
2016-06-20 22:10:52 +02:00
|
|
|
<md-card ng-repeat="user in acl.users track by user.uid | orderBy:['userClass', 'displayName']"
|
2015-10-13 20:30:09 +02:00
|
|
|
class="sg-collapsed"
|
|
|
|
ng-class="{ 'sg-expanded': user.uid == acl.selectedUid }">
|
2016-06-20 22:10:52 +02:00
|
|
|
<a class="md-flex md-button" ng-click="acl.selectUser(user, $event)">
|
2016-01-19 21:21:06 +01:00
|
|
|
<div layout="row" layout-align="start center">
|
2016-12-01 21:42:28 +01:00
|
|
|
<span class="card-picture">
|
|
|
|
<sg-avatar-image class="md-avatar"
|
|
|
|
sg-email="user.c_email"
|
|
|
|
size="40">{{ user.$avatarIcon }}</sg-avatar-image>
|
2015-10-13 20:30:09 +02:00
|
|
|
</span>
|
|
|
|
<div class="sg-tile-content">
|
2017-01-26 18:48:21 +01:00
|
|
|
<div class="sg-md-subhead"><div>{{user.$fullname()}}</div></div>
|
2015-10-13 20:30:09 +02:00
|
|
|
<div class="sg-md-body"><div>{{user.c_email}}</div></div>
|
|
|
|
</div>
|
2016-06-20 22:10:52 +02:00
|
|
|
<md-button class="md-icon-button md-secondary" type="button"
|
|
|
|
ng-click="acl.selectAllRights(user)"
|
2017-01-26 18:48:21 +01:00
|
|
|
ng-hide="!acl.showRights(user) || user.$isSpecial()">
|
2016-06-20 22:10:52 +02:00
|
|
|
<md-icon>select_all</md-icon>
|
|
|
|
</md-button>
|
|
|
|
<md-button class="md-icon-button" type="button"
|
2015-10-13 20:30:09 +02:00
|
|
|
ng-click="acl.removeUser(user)"
|
|
|
|
ng-hide="user.uid != acl.selectedUid || user.$isSpecial()">
|
|
|
|
<md-icon>delete</md-icon>
|
|
|
|
</md-button>
|
|
|
|
</div>
|
2016-01-19 21:21:06 +01:00
|
|
|
</a>
|
2017-01-26 18:48:21 +01:00
|
|
|
<md-card-content id="AccessRightList" ng-show="acl.showRights(user)">
|
2015-10-13 20:30:09 +02:00
|
|
|
<var:if condition="canSubscribeUsers">
|
|
|
|
<md-checkbox ng-model="user.isSubscribed"
|
|
|
|
label:arial-label="Subscribe User"
|
|
|
|
ng-disabled="user.wasSubscribed"
|
|
|
|
ng-true-value="1"
|
|
|
|
ng-false-value="0"
|
|
|
|
ng-hide="user.$isSpecial()">
|
|
|
|
<var:string label:value="Subscribe User"/>
|
|
|
|
</md-checkbox>
|
|
|
|
</var:if>
|
|
|
|
<div ng-include="acl.getTemplate()"></div>
|
2015-10-09 22:10:39 +02:00
|
|
|
|
2015-10-13 20:30:09 +02:00
|
|
|
<!-- <script type="text/ng-template" id="UIxContactsUserRightsEditor">
|
|
|
|
<var:component className="UIxContactsUserRightsEditor" />
|
|
|
|
</script>
|
2015-10-07 22:21:06 +02:00
|
|
|
|
2015-10-09 22:10:39 +02:00
|
|
|
<script type="text/ng-template" id="UIxCalUserRightsEditor">
|
|
|
|
<var:component className="UIxCalUserRightsEditor" />
|
|
|
|
</script> -->
|
2015-10-07 22:21:06 +02:00
|
|
|
|
2015-10-13 20:30:09 +02:00
|
|
|
</md-card-content>
|
|
|
|
</md-card>
|
2016-01-19 21:21:06 +01:00
|
|
|
</md-card-content>
|
|
|
|
</md-card>
|
2015-10-13 20:30:09 +02:00
|
|
|
</div>
|
2015-10-07 22:21:06 +02:00
|
|
|
</container>
|