2009-08-13 16:09:53 +02:00
|
|
|
<?xml version="1.0" standalone="yes"?>
|
|
|
|
<!DOCTYPE var:component>
|
|
|
|
<var:component xmlns="http://www.w3.org/1999/xhtml"
|
2015-10-09 22:10:39 +02:00
|
|
|
xmlns:var="http://www.skyrix.com/od/binding"
|
|
|
|
xmlns:const="http://www.skyrix.com/od/constant"
|
|
|
|
xmlns:rsrc="OGo:url"
|
|
|
|
xmlns:label="OGo:label"
|
|
|
|
className="UIxPageFrame"
|
|
|
|
title="title"
|
|
|
|
const:jsFiles="Common.js, Administration.js,
|
|
|
|
Administration.services.js, Preferences.services.js,
|
|
|
|
Contacts.services.js, Scheduler.services.js">
|
2009-08-13 16:09:53 +02:00
|
|
|
|
2016-03-08 19:20:34 +01:00
|
|
|
<main class="view"
|
|
|
|
layout="row" layout-fill="layout-fill"
|
|
|
|
ui-view="administration"
|
2016-12-01 21:31:22 +01:00
|
|
|
ng-controller="navController"><!-- administration --></main>
|
2015-09-14 20:09:29 +02:00
|
|
|
|
|
|
|
<script type="text/ng-template" id="administration.html">
|
2016-12-01 21:31:22 +01:00
|
|
|
|
|
|
|
<!-- Sidenav -->
|
|
|
|
<md-sidenav class="md-sidenav-left md-whiteframe-z1" layout="column"
|
|
|
|
md-component-id="left" md-is-locked-open="isGtMedium"
|
|
|
|
ng-class="{ 'sg-close': leftIsClose }">
|
2015-09-14 20:09:29 +02:00
|
|
|
<var:component className="UIxSidenavToolbarTemplate" />
|
2016-11-11 21:44:41 +01:00
|
|
|
<md-content class="md-flex" layout="column" md-scroll-y="md-scroll-y"
|
|
|
|
md-colors="::{ backgroundColor: 'default-background-300' }">
|
2015-09-14 20:09:29 +02:00
|
|
|
<md-list>
|
|
|
|
<md-list-item ng-click="app.go('rights')"
|
|
|
|
ui-sref="administration.rights"
|
|
|
|
ui-sref-active="md-default-theme md-background md-bg md-hue-1">
|
|
|
|
<md-icon>security</md-icon>
|
|
|
|
<p class="sg-item-name"><var:string label:value="Rights"/></p>
|
|
|
|
</md-list-item>
|
|
|
|
</md-list>
|
|
|
|
</md-content>
|
|
|
|
</md-sidenav>
|
|
|
|
|
2016-03-08 19:20:34 +01:00
|
|
|
<section layout="column" layout-fill="layout-fill"
|
|
|
|
ui-view="module"><!-- admin module --></section>
|
2015-09-14 20:09:29 +02:00
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
RIGHTS ADMINISTRATION PANEL
|
|
|
|
-->
|
|
|
|
<script type="text/ng-template" id="rights.html">
|
2015-10-06 22:38:16 +02:00
|
|
|
<!-- TOP RIGHT TOOLBAR -->
|
2015-10-09 22:10:39 +02:00
|
|
|
<md-toolbar layout="row" layout-align="space-between center" class="toolbar-main">
|
2016-03-30 03:59:21 +02:00
|
|
|
<var:component className="UIxTopnavToolbar" />
|
2015-10-09 22:10:39 +02:00
|
|
|
</md-toolbar>
|
2015-10-06 22:38:16 +02:00
|
|
|
|
2015-10-09 22:10:39 +02:00
|
|
|
<div layout="row" class="md-flex">
|
2015-10-06 22:38:16 +02:00
|
|
|
|
2015-10-09 22:10:39 +02:00
|
|
|
<div class="view-list" layout="column">
|
2016-01-19 21:21:06 +01:00
|
|
|
<md-toolbar class="md-accent md-hue-1">
|
2015-10-09 22:10:39 +02:00
|
|
|
<!-- search toolbar -->
|
2016-02-26 21:01:16 +01:00
|
|
|
<form class="md-toolbar-tools"
|
|
|
|
name="searchForm"
|
|
|
|
sg-search="app.filter(searchText)"
|
|
|
|
sg-allow-dot="false">
|
2015-10-09 22:10:39 +02:00
|
|
|
<md-icon>search</md-icon>
|
2016-01-19 21:21:06 +01:00
|
|
|
<md-input-container class="md-block md-flex" md-no-float="md-no-float">
|
2015-10-09 22:10:39 +02:00
|
|
|
<input name="folderSearch" type="search" ng-minlength="3"
|
|
|
|
label:placeholder="Search Users"/>
|
|
|
|
</md-input-container>
|
2016-02-26 21:01:16 +01:00
|
|
|
</form>
|
2015-10-09 22:10:39 +02:00
|
|
|
</md-toolbar>
|
2015-10-06 22:38:16 +02:00
|
|
|
|
2016-01-19 21:21:06 +01:00
|
|
|
<md-divider><!-- divider --></md-divider>
|
|
|
|
|
2015-10-09 22:10:39 +02:00
|
|
|
<md-content id="usersList" layout="column" class="md-flex">
|
2015-11-25 22:15:41 +01:00
|
|
|
<md-subheader ng-show="app.service.$query">
|
|
|
|
<span ng-switch="app.users.length">
|
|
|
|
<span ng-switch-when="0"><var:string label:value="No matching user"/></span>
|
|
|
|
<span ng-switch-default="true">{{app.users.length}} <var:string label:value="users found"/></span>
|
|
|
|
</span>
|
|
|
|
</md-subheader>
|
|
|
|
<md-subheader ng-hide="app.service.$query">
|
|
|
|
<var:string label:value="Start a search to edit the rights"/>
|
|
|
|
</md-subheader>
|
2015-10-09 22:10:39 +02:00
|
|
|
<md-list class="sg-section-list">
|
|
|
|
<div ng-repeat="user in app.users">
|
|
|
|
<md-list-item ng-class="{ 'sg-collapsed': user.uid != app.selectedUser.uid,
|
2016-01-19 21:21:06 +01:00
|
|
|
'sg-expanded': user.uid == app.selectedUser.uid }"
|
2016-11-11 22:46:55 +01:00
|
|
|
ng-click="app.selectUser($index)"
|
|
|
|
aria-label="{{::user.c_email}}">
|
2015-10-09 22:10:39 +02:00
|
|
|
<sg-avatar-image class="md-avatar"
|
|
|
|
sg-email="::user.c_email"
|
2016-11-11 22:46:55 +01:00
|
|
|
size="40">{{::user.$avatarIcon}}</sg-avatar-image>
|
2015-10-09 22:10:39 +02:00
|
|
|
<div class="sg-tile-content">
|
|
|
|
<div class="sg-md-subhead">
|
|
|
|
<div>{{::user.cn}}</div>
|
|
|
|
</div>
|
|
|
|
<div class="sg-md-body">
|
|
|
|
<div>{{::user.c_email}}</div>
|
2015-10-06 22:38:16 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-10-09 22:10:39 +02:00
|
|
|
<md-button class="md-icon-button"><md-icon ng-class="{'md-rotate-180': user.uid == app.selectedUser.uid}">expand_more</md-icon></md-button>
|
|
|
|
</md-list-item>
|
|
|
|
<div ng-show="user == app.selectedUser">
|
|
|
|
<!-- folders list -->
|
|
|
|
<md-list-item ng-show="user.$$folders.length == 0">
|
2015-10-06 22:38:16 +02:00
|
|
|
<md-icon>warning</md-icon>
|
|
|
|
<var:string label:value="No resource"/>
|
2015-10-09 22:10:39 +02:00
|
|
|
</md-list-item>
|
2018-01-17 18:43:06 +01:00
|
|
|
<md-list-item class="sg-folder" ng-repeat="folder in user.$$folders"
|
2015-10-09 22:10:39 +02:00
|
|
|
aria-label="{{::folder.displayName}}" title="{{::folder.displayName}}"
|
|
|
|
ng-click="app.selectFolder(folder)">
|
|
|
|
<md-icon ng-class="{ 'icon-contacts': folder.type == 'Contact',
|
2016-01-19 21:21:06 +01:00
|
|
|
'icon-event': folder.type == 'Appointment' }"><!--icon--></md-icon>
|
2018-01-17 18:43:06 +01:00
|
|
|
<span class="sg-no-wrap" ng-bind="::folder.displayName"><!-- folder name --></span>
|
2015-10-09 22:10:39 +02:00
|
|
|
</md-list-item>
|
|
|
|
<md-divider><!-- divider --></md-divider>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</md-list>
|
|
|
|
</md-content>
|
|
|
|
</div>
|
|
|
|
|
2016-11-11 21:44:41 +01:00
|
|
|
<div id="detailView" class="view-detail"
|
2016-01-19 21:21:06 +01:00
|
|
|
layout="column" layout-align="start center"
|
2015-10-13 20:30:09 +02:00
|
|
|
ng-class="{ 'sg-close': !app.selectedUser.selectedFolder }"
|
2016-11-11 21:44:41 +01:00
|
|
|
md-colors="::{backgroundColor: 'default-background-200'}"
|
2015-10-13 20:30:09 +02:00
|
|
|
ui-view="acl">
|
2016-11-11 21:44:41 +01:00
|
|
|
<md-content class="hide show-gt-md md-flex"
|
|
|
|
md-colors="::{backgroundColor: 'default-background-200'}"
|
2016-03-08 19:20:34 +01:00
|
|
|
layout="column" layout-align="center center" layout-fill="layout-fill">
|
2016-11-11 21:44:41 +01:00
|
|
|
<div class="sg-md-title"
|
|
|
|
md-colors="::{color: 'default-background-500'}"><var:string label:value="No resource selected"/></div>
|
2015-10-09 22:10:39 +02:00
|
|
|
</md-content>
|
2015-10-06 22:38:16 +02:00
|
|
|
</div>
|
2016-01-19 21:21:06 +01:00
|
|
|
|
2015-10-09 22:10:39 +02:00
|
|
|
</div>
|
2015-10-06 22:38:16 +02:00
|
|
|
</script>
|
2009-08-13 16:09:53 +02:00
|
|
|
|
|
|
|
</var:component>
|
2015-09-14 20:09:29 +02:00
|
|
|
|