2006-12-14 21:20:40 +01:00
|
|
|
<?xml version="1.0" standalone="yes"?>
|
2014-11-04 22:00:11 +01: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"
|
2014-11-25 22:09:55 +01:00
|
|
|
xmlns:label="OGo:label"
|
2014-11-04 22:00:11 +01:00
|
|
|
xmlns:uix="OGo:uix"><var:string var:value="doctype" const:escapeHTML="NO" />
|
2014-11-03 21:58:54 +01:00
|
|
|
<div id="modalACL">
|
|
|
|
<h2><var:string label:value="Access Rights"/> - <em>{{addressbook.name}}</em></h2>
|
|
|
|
<ul>
|
|
|
|
<!-- left side -->
|
|
|
|
<li>
|
|
|
|
<ul class="aclUsers">
|
|
|
|
<li data-ng-repeat="user in users | orderBy:['userClass', 'displayName']"
|
|
|
|
data-ng-click="selectUser(user)"
|
|
|
|
data-ng-class="{_selected: user==selectedUser}">
|
|
|
|
<span class="card-picture" data-ng-switch="user.userClass">
|
|
|
|
<i data-ng-switch-when="normal-user" class="icon-ion-ios7-person"><!-- normal-user --></i>
|
|
|
|
<i data-ng-switch-when="public-user" class="icon-ion-ios7-people"><!-- public-user --></i>
|
|
|
|
</span>
|
|
|
|
<span class="name">{{user.$shortFormat()}}</span>
|
|
|
|
<span class="subscriptionArea"
|
|
|
|
data-ng-hide="user.$isSpecial()">
|
|
|
|
<label>
|
|
|
|
<input type="checkbox"
|
|
|
|
data-ng-model="user.isSubscribed"
|
|
|
|
data-ng-checked="user.isSubscribed"
|
|
|
|
data-ng-disabled="user.wasSubscribed" />
|
|
|
|
<span><var:string label:value="Subscribe User"/></span>
|
|
|
|
</label>
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<form class="addContactsToolbar"
|
|
|
|
data-ng-submit="addUser(userToAdd)">
|
|
|
|
<table id="bottomTable">
|
|
|
|
<tr>
|
|
|
|
<td id="td_1"><i class="icon-ion-search"><!-- search --></i>
|
|
|
|
<input type="search" class="form-control" label:placeholder="email address"
|
|
|
|
data-ng-model="userToAdd"
|
|
|
|
data-typeahead-editable="false"
|
|
|
|
data-typeahead-wait-ms="500"
|
|
|
|
data-typeahead="user as user.$shortFormat() for user in userFilter($viewValue)"/>
|
|
|
|
</td>
|
|
|
|
<td id="td_2">
|
|
|
|
<button type="submit" ><var:string label:value="Add User" /></button>
|
|
|
|
<button type="button"
|
|
|
|
data-ng-disabled="!selectedUser || selectedUser.$isSpecial()"
|
|
|
|
data-ng-click="removeUser(selectedUser)"><var:string label:value="Remove User"/></button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
</li>
|
|
|
|
<!-- right side -->
|
|
|
|
<li id="AccessRightList" data-ng-show="selectedUser">
|
2014-11-25 22:09:55 +01:00
|
|
|
<h1>{{selectedUser.$shortFormat({email: false})}}</h1>
|
2014-11-03 21:58:54 +01:00
|
|
|
<div data-ng-include="'userRights.html'"><!-- load template from main wox --></div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div id="aclButtons">
|
|
|
|
<button data-ng-click="closeModal()"><var:string label:value="Close"/></button>
|
|
|
|
<button data-ng-click="saveModal()"><var:string label:value="Save"/></button>
|
|
|
|
</div>
|
|
|
|
<span class="close-reveal-modal" data-ng-click="closeModal()"><i class="icon-close"><!-- close --></i></span>
|
2014-11-04 22:00:11 +01:00
|
|
|
</container>
|