2006-08-19 00:42:53 +02:00
|
|
|
<?xml version="1.0" standalone="yes"?>
|
2007-06-19 20:00:08 +02:00
|
|
|
<!DOCTYPE var:component>
|
2015-08-03 17:53:54 +02:00
|
|
|
<var:component
|
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
|
|
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, Preferences.services.js, Contacts.services.js, Mailer.services.js, Scheduler.js, Scheduler.services.js">
|
2008-07-18 21:25:26 +02:00
|
|
|
<script type="text/javascript">
|
|
|
|
var firstDayOfWeek = <var:string value="firstDayOfWeek"/>;
|
2008-07-25 20:44:31 +02:00
|
|
|
var dayStartHour = <var:string value="dayStartHour"/>;
|
2009-06-09 23:25:41 +02:00
|
|
|
var currentView = '<var:string value="currentView"/>';
|
2014-02-04 22:25:52 +01:00
|
|
|
var localeCode = '<var:string value="localeCode" />';
|
2008-07-18 21:25:26 +02:00
|
|
|
</script>
|
2015-03-30 21:11:20 +02:00
|
|
|
<var:component className="UIxCalendarSelector" />
|
2008-03-25 20:59:13 +01:00
|
|
|
<style type="text/css">
|
|
|
|
<var:if condition="horizontalDragHandleStyle">
|
|
|
|
DIV#verticalDragHandle, DIV#rightPanel
|
|
|
|
{ left: <var:string value="horizontalDragHandleStyle" />; }
|
|
|
|
DIV#leftPanel
|
|
|
|
{ width: <var:string value="horizontalDragHandleStyle" />; }
|
|
|
|
</var:if><var:if condition="verticalDragHandleStyle">
|
|
|
|
DIV#rightDragHandle, DIV#calendarView
|
|
|
|
{ top: <var:string value="verticalDragHandleStyle" />; }
|
|
|
|
</var:if><var:if condition="eventsListViewStyle">
|
2012-09-07 21:46:49 +02:00
|
|
|
DIV#schedulerTabs
|
2008-03-25 20:59:13 +01:00
|
|
|
{ height: <var:string value="eventsListViewStyle" />; }
|
|
|
|
</var:if>
|
|
|
|
</style>
|
2015-03-30 21:11:20 +02:00
|
|
|
|
|
|
|
<!--
|
2007-06-19 20:00:08 +02:00
|
|
|
<div class="preload" style="visibility: hidden;">
|
|
|
|
<img rsrc:src="event-gradient.png"/>
|
|
|
|
</div>
|
2014-07-18 21:03:28 +02:00
|
|
|
<img rsrc:src="event7.png" id="DnDLeftPanelImage" style="visibility: hidden;"/>
|
2007-06-19 20:00:08 +02:00
|
|
|
<div class="menu" id="monthListMenu">
|
|
|
|
<ul>
|
|
|
|
<var:foreach list="monthMenuItems" item="monthMenuItem"
|
|
|
|
><li var:month="monthMenuItem"
|
|
|
|
><var:string value="monthMenuItemLabel" /></li>
|
|
|
|
</var:foreach
|
|
|
|
></ul>
|
|
|
|
</div>
|
2015-06-19 20:52:00 +02:00
|
|
|
|
2007-06-19 20:00:08 +02:00
|
|
|
<div class="menu" id="yearListMenu">
|
|
|
|
<ul>
|
|
|
|
<var:foreach list="yearMenuItems" item="yearMenuItem"
|
|
|
|
><li><var:string value="yearMenuItem" /></li>
|
|
|
|
</var:foreach
|
2006-08-22 21:22:42 +02:00
|
|
|
></ul>
|
2007-06-19 20:00:08 +02:00
|
|
|
</div>
|
2006-08-22 21:22:42 +02:00
|
|
|
|
2007-06-19 20:00:08 +02:00
|
|
|
<div class="menu" id="eventsListMenu">
|
|
|
|
<ul>
|
|
|
|
<li><var:string label:value="New Event..."/></li>
|
|
|
|
<li><var:string label:value="New Task..."/></li>
|
2015-03-30 21:11:20 +02:00
|
|
|
<li>!- separator -</li>
|
2007-06-19 20:00:08 +02:00
|
|
|
<li><var:string label:value="Edit Selected Event..."/></li>
|
|
|
|
<li><var:string label:value="Delete Selected Event"/></li>
|
2015-03-30 21:11:20 +02:00
|
|
|
<li>!- separator -</li>
|
2007-06-19 20:00:08 +02:00
|
|
|
<li><var:string label:value="Select All"/></li>
|
2015-03-30 21:11:20 +02:00
|
|
|
<li>!- separator -</li>
|
2007-06-19 20:00:08 +02:00
|
|
|
<li><var:string label:value="Workweek days only"/></li>
|
|
|
|
<li><var:string label:value="Tasks in View"/></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2009-08-25 19:34:37 +02:00
|
|
|
<div class="menu" id="tasksListMenu">
|
|
|
|
<ul>
|
|
|
|
<li><var:string label:value="Open Task..."/></li>
|
|
|
|
<li><var:string label:value="New Task..."/></li>
|
2015-03-30 21:11:20 +02:00
|
|
|
<li>!- separator -</li>
|
2009-08-25 19:34:37 +02:00
|
|
|
<li><var:string label:value="Mark Completed"/></li>
|
|
|
|
<li><var:string label:value="Delete Task"/></li>
|
2015-03-30 21:11:20 +02:00
|
|
|
<li>!- separator -</li>
|
2012-07-09 16:17:07 +02:00
|
|
|
<li><var:string label:value="View Raw Source"/></li>
|
2009-08-25 19:34:37 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2007-06-19 20:00:08 +02:00
|
|
|
<div class="menu" id="calendarsMenu">
|
|
|
|
<ul>
|
2009-09-11 21:56:21 +02:00
|
|
|
<li><var:string label:value="Properties"/></li>
|
2015-03-30 21:11:20 +02:00
|
|
|
<li>!- separator -</li>
|
2007-06-19 20:00:08 +02:00
|
|
|
<li><var:string label:value="New Calendar..."/></li>
|
2010-03-31 00:01:15 +02:00
|
|
|
<li id="deleteCalendarMenuItem"><var:string label:value="Delete Calendar"/></li>
|
2015-03-30 21:11:20 +02:00
|
|
|
<li>!- separator -</li>
|
2007-06-19 20:00:08 +02:00
|
|
|
<li><var:string label:value="Export Calendar..."/></li>
|
2009-09-02 21:14:15 +02:00
|
|
|
<li><var:string label:value="Import Events..."/></li>
|
2007-06-19 20:00:08 +02:00
|
|
|
<li><var:string label:value="Publish Calendar..."/></li>
|
2015-03-30 21:11:20 +02:00
|
|
|
<li>!- separator -</li>
|
2007-06-19 20:00:08 +02:00
|
|
|
<li><var:string label:value="Reload Remote Calendars"/></li>
|
2015-03-30 21:11:20 +02:00
|
|
|
<li>!- separator -</li>
|
2007-06-19 20:00:08 +02:00
|
|
|
<li><var:string label:value="Sharing..." /></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2015-06-19 20:52:00 +02:00
|
|
|
|
2009-09-02 21:14:15 +02:00
|
|
|
<div id="eventDialog" style="display: none;" class="dialog">
|
2008-08-19 00:45:59 +02:00
|
|
|
<div>
|
2015-03-30 21:11:20 +02:00
|
|
|
<h1>!- space -</h1>
|
|
|
|
<p><span>!- space -</span></p>
|
2015-07-31 19:54:03 +02:00
|
|
|
<p><span class="label"><var:string label:value="Calendar" /></span> <span>!- space -</span></p>
|
|
|
|
<p><span class="label"><var:string label:value="Location" /></span> <span>!- space -</span></p>
|
|
|
|
<p><span class="label"><var:string label:value="Created by" /></span> <span>!- space -</span></p>
|
2015-03-30 21:11:20 +02:00
|
|
|
<p class="description">!- space -</p>
|
2008-08-19 00:45:59 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2006-12-14 22:20:13 +01:00
|
|
|
|
2009-09-02 21:14:15 +02:00
|
|
|
<div id="uploadDialog" style="display: none" class="dialog left">
|
|
|
|
<div>
|
2009-10-28 18:48:22 +01:00
|
|
|
<h3><var:string label:value="Import Events"/></h3>
|
2012-09-24 18:18:18 +02:00
|
|
|
<p class="prompt"><var:string label:value="Select an iCalendar file (.ics)."/></p>
|
2009-12-23 22:14:18 +01:00
|
|
|
<form const:href="" name="uploadForm" id="uploadForm" method="post"
|
2009-09-02 21:14:15 +02:00
|
|
|
enctype="multipart/form-data"
|
2015-06-19 20:52:00 +02:00
|
|
|
onsubmit="return AIM.submit(this, {'onStart' : validateUploadForm,
|
2009-09-03 19:53:38 +02:00
|
|
|
'onComplete' : uploadCompleted})">
|
2012-09-24 18:18:18 +02:00
|
|
|
<p class="prompt"><input type="file" name="calendarFile" class="textField" id="calendarFile" />
|
|
|
|
<a href="#" class="button actionButton" id="uploadSubmit"
|
2009-11-04 23:13:20 +01:00
|
|
|
onclick="if($('uploadForm').onsubmit()) $('uploadForm').submit()">
|
|
|
|
<span><var:string label:value="Upload" /></span></a>
|
2012-09-24 18:18:18 +02:00
|
|
|
<a href="#" class="button" const:id="uploadCancel">
|
|
|
|
<span><var:string label:value="Cancel" /></span></a>
|
|
|
|
</p></form>
|
|
|
|
<hr/>
|
2009-09-02 21:14:15 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2009-09-03 19:53:38 +02:00
|
|
|
<div id="uploadResults" style="display: none" class="dialog left">
|
|
|
|
<div>
|
2009-10-28 18:48:22 +01:00
|
|
|
<h3><var:string label:value="Import Events"/></h3>
|
2015-03-30 21:11:20 +02:00
|
|
|
<p><span id="uploadResultsContent">!- empty -</span>
|
2012-09-24 18:18:18 +02:00
|
|
|
<a href="#" class="button" const:id="uploadOK">
|
2009-11-04 23:13:20 +01:00
|
|
|
<span><var:string label:value="Done" /></span></a></p>
|
2012-09-24 18:18:18 +02:00
|
|
|
<hr/>
|
2009-09-03 19:53:38 +02:00
|
|
|
</div>
|
2015-03-30 21:11:20 +02:00
|
|
|
</div>
|
|
|
|
-->
|
2009-09-03 19:53:38 +02:00
|
|
|
|
2015-08-24 17:20:35 +02:00
|
|
|
<main class="view layout-fill" ui-view="calendars" layout="row" ng-controller="navController"><!-- calendars list --></main>
|
2006-08-19 00:42:53 +02:00
|
|
|
|
2015-03-30 21:11:20 +02:00
|
|
|
<script type = "text/ng-template" id="UIxCalMainFrame">
|
2015-04-10 18:36:18 +02:00
|
|
|
<!-- calendars colors -->
|
|
|
|
<div sg-folder-stylesheet="true"
|
2015-08-25 19:46:33 +02:00
|
|
|
ng-repeat="calendar in calendars.service.$findAll()"
|
2015-04-10 18:36:18 +02:00
|
|
|
ng-model="calendar"><!-- stylesheet --></div>
|
2015-03-30 21:11:20 +02:00
|
|
|
<!-- Sidenav -->
|
2015-04-29 17:23:21 +02:00
|
|
|
<md-sidenav id="left-sidenav" class="md-sidenav-left md-whiteframe-z1" md-component-id="left" md-is-locked-open="isGtMedium" layout="column">
|
2015-03-30 21:11:20 +02:00
|
|
|
<var:component className="UIxSidenavToolbarTemplate" />
|
|
|
|
<md-content md-scroll-y="md-scroll-y" class="md-flex">
|
2015-04-24 21:08:55 +02:00
|
|
|
<!-- User's calendars -->
|
|
|
|
<section>
|
|
|
|
<md-subheader class="sg-md-subheader">
|
|
|
|
<div layout="row" layout-align="space-between center">
|
|
|
|
<span><var:string label:value="Calendars"/></span>
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button"
|
2015-04-29 17:23:21 +02:00
|
|
|
label:aria-label="New Calendar..."
|
2015-05-01 15:51:30 +02:00
|
|
|
ng-click="calendars.newCalendar()">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-icon>add_circle_outline</md-icon>
|
2015-04-24 21:08:55 +02:00
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
</md-subheader>
|
|
|
|
<md-list>
|
|
|
|
<md-list-item ng-repeat="calendar in calendars.service.$calendars">
|
2015-03-30 21:11:20 +02:00
|
|
|
<md-checkbox ng-model="calendar.active"
|
2015-04-29 17:23:21 +02:00
|
|
|
ng-class="calendar.getClassName('checkbox')"
|
2015-03-30 21:11:20 +02:00
|
|
|
ng-true-value="1"
|
|
|
|
ng-false-value="0"
|
2015-04-24 21:08:55 +02:00
|
|
|
label:aria-label="Enable"><!-- enable --></md-checkbox>
|
|
|
|
<p class="sg-item-name">{{calendar.name}}</p>
|
2015-07-28 20:16:56 +02:00
|
|
|
<md-menu class="md-secondary" label:aria-label="Options">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-icon label:aria-label="Options"
|
2015-08-03 17:53:54 +02:00
|
|
|
ng-click="$mdOpenMenu()"
|
|
|
|
md-menu-origin="md-menu-origin">more_vert</md-icon>
|
2015-06-12 19:34:08 +02:00
|
|
|
<md-menu-content width="2">
|
|
|
|
<md-menu-item>
|
2015-07-21 14:26:50 +02:00
|
|
|
<md-button ng-click="calendars.confirmDelete(calendar)">
|
2015-06-12 19:34:08 +02:00
|
|
|
<var:string label:value="Delete"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item>
|
2015-07-21 14:26:50 +02:00
|
|
|
<md-button ng-click="calendars.exportCalendar()">
|
2015-06-12 19:34:08 +02:00
|
|
|
<var:string label:value="Export"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-divider><!-- divider --></md-menu-divider>
|
|
|
|
<md-menu-item>
|
2015-07-21 14:26:50 +02:00
|
|
|
<md-button ng-click="calendars.showLinks(calendar)">
|
2015-06-12 19:34:08 +02:00
|
|
|
<var:string label:value="Links to this Calendar"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item>
|
2015-07-21 14:26:50 +02:00
|
|
|
<md-button ng-click="calendars.share(calendar)">
|
2015-06-12 19:34:08 +02:00
|
|
|
<var:string label:value="Sharing..."/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
2015-06-15 15:53:10 +02:00
|
|
|
<md-menu-divider><!-- divider --></md-menu-divider>
|
|
|
|
<md-menu-item>
|
2015-07-21 14:26:50 +02:00
|
|
|
<md-button ng-click="calendars.showProperties(calendar)">
|
2015-06-15 15:53:10 +02:00
|
|
|
<var:string label:value="Properties"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
2015-06-12 19:34:08 +02:00
|
|
|
</md-menu-content>
|
|
|
|
</md-menu>
|
2015-04-24 21:08:55 +02:00
|
|
|
</md-list-item>
|
|
|
|
</md-list>
|
|
|
|
</section>
|
|
|
|
<!-- Subscriptions -->
|
|
|
|
<section>
|
|
|
|
<md-subheader class="sg-md-subheader">
|
|
|
|
<div layout="row" layout-align="space-between center">
|
|
|
|
<span><var:string label:value="Subscriptions"/></span>
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button"
|
2015-04-29 17:23:21 +02:00
|
|
|
label:aria-label="Subscribe to a Calendar..."
|
|
|
|
sg-subscribe="calendar"
|
2015-05-01 15:51:30 +02:00
|
|
|
sg-subscribe-on-select="calendars.subscribeToFolder(folderData)">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-icon>add_circle_outline</md-icon>
|
2015-04-24 21:08:55 +02:00
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
</md-subheader>
|
|
|
|
<md-list>
|
|
|
|
<md-list-item ng-repeat="calendar in calendars.service.$subscriptions">
|
2015-04-29 17:23:21 +02:00
|
|
|
<md-checkbox ng-model="calendar.active"
|
|
|
|
ng-class="calendar.getClassName('checkbox')"
|
|
|
|
ng-true-value="1"
|
|
|
|
ng-false-value="0"
|
|
|
|
label:aria-label="Enable"><!-- enable --></md-checkbox>
|
|
|
|
<p class="sg-item-name">{{calendar.name}}</p>
|
2015-06-25 17:30:44 +02:00
|
|
|
<md-menu class="md-secondary" label:aria-label="Options" ng-click="true">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-icon label:aria-label="Options"
|
|
|
|
ng-click="$mdOpenMenu()"
|
|
|
|
md-menu-origin="md-menu-origin">more_vert</md-icon>
|
2015-06-15 15:53:10 +02:00
|
|
|
<md-menu-content width="2">
|
|
|
|
<md-menu-item>
|
2015-07-21 14:26:50 +02:00
|
|
|
<md-button ng-click="calendars.confirmDelete(calendar)">
|
2015-06-15 15:53:10 +02:00
|
|
|
<var:string label:value="Unsubscribe Calendar"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-divider><!-- divider --></md-menu-divider>
|
|
|
|
<md-menu-item>
|
2015-07-21 14:26:50 +02:00
|
|
|
<md-button ng-click="calendars.showLinks(calendar)">
|
2015-06-15 15:53:10 +02:00
|
|
|
<var:string label:value="Links to this Calendar"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-divider><!-- divider --></md-menu-divider>
|
|
|
|
<md-menu-item>
|
2015-07-21 14:26:50 +02:00
|
|
|
<md-button ng-click="calendars.showProperties(calendar)">
|
2015-06-15 15:53:10 +02:00
|
|
|
<var:string label:value="Properties"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
</md-menu-content>
|
|
|
|
</md-menu>
|
2015-04-29 17:23:21 +02:00
|
|
|
</md-list-item>
|
|
|
|
</md-list>
|
|
|
|
</section>
|
|
|
|
<!-- Web Calendars -->
|
|
|
|
<section>
|
|
|
|
<md-subheader class="sg-md-subheader">
|
|
|
|
<div layout="row" layout-align="space-between center">
|
|
|
|
<span><var:string label:value="Web Calendars"/></span>
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button"
|
2015-04-29 17:23:21 +02:00
|
|
|
label:aria-label="Subscribe to a web calendar..."
|
2015-05-01 15:51:30 +02:00
|
|
|
ng-click="calendars.addWebCalendar()">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-icon>add_circle_outline</md-icon>
|
2015-04-29 17:23:21 +02:00
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
</md-subheader>
|
|
|
|
<md-list>
|
|
|
|
<md-list-item ng-repeat="calendar in calendars.service.$webcalendars">
|
2015-04-24 21:08:55 +02:00
|
|
|
<md-checkbox ng-model="calendar.active"
|
2015-05-01 15:51:30 +02:00
|
|
|
ng-class="calendar.getClassName('checkbox')"
|
2015-04-24 21:08:55 +02:00
|
|
|
ng-true-value="1"
|
|
|
|
ng-false-value="0"
|
|
|
|
label:aria-label="Enable"><!-- enable --></md-checkbox>
|
|
|
|
<p class="sg-item-name">{{calendar.name}}</p>
|
2015-06-25 17:30:44 +02:00
|
|
|
<md-menu class="md-secondary" label:aria-label="Options" ng-click="true">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-icon label:aria-label="Options"
|
|
|
|
ng-click="$mdOpenMenu()"
|
|
|
|
md-menu-origin="md-menu-origin">more_vert</md-icon>
|
2015-06-15 15:53:10 +02:00
|
|
|
<md-menu-content width="2">
|
|
|
|
<md-menu-item>
|
2015-07-21 14:26:50 +02:00
|
|
|
<md-button ng-click="calendars.confirmDelete(calendar)">
|
2015-06-15 15:53:10 +02:00
|
|
|
<var:string label:value="Delete"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-divider><!-- divider --></md-menu-divider>
|
|
|
|
<md-menu-item>
|
2015-07-21 14:26:50 +02:00
|
|
|
<md-button ng-click="calendars.showLinks(calendar)">
|
2015-06-15 15:53:10 +02:00
|
|
|
<var:string label:value="Links to this Calendar"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-divider><!-- divider --></md-menu-divider>
|
|
|
|
<md-menu-item>
|
2015-07-21 14:26:50 +02:00
|
|
|
<md-button ng-click="calendars.showProperties(calendar)">
|
2015-06-15 15:53:10 +02:00
|
|
|
<var:string label:value="Properties"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
</md-menu-content>
|
|
|
|
</md-menu>
|
2015-04-24 21:08:55 +02:00
|
|
|
</md-list-item>
|
|
|
|
</md-list>
|
|
|
|
</section>
|
2015-03-30 21:11:20 +02:00
|
|
|
</md-content>
|
|
|
|
</md-sidenav>
|
2006-08-19 00:42:53 +02:00
|
|
|
|
2015-03-30 21:11:20 +02:00
|
|
|
<!-- Main section -->
|
2015-08-24 17:20:35 +02:00
|
|
|
<section layout="column" class="sg-app-content layout-fill"
|
2015-03-30 21:11:20 +02:00
|
|
|
ng-controller="CalendarListController as list">
|
|
|
|
<md-toolbar layout="column" layout-align="space-between start" class="md-tall toolbar-main">
|
2015-08-26 02:47:12 +02:00
|
|
|
<div class="md-toolbar-tools md-toolbar-tools-top" layout="row" layout-align="space-between start">
|
2015-08-11 19:40:38 +02:00
|
|
|
<var:component className="UIxTopnavToolbarTemplate" />
|
|
|
|
<!-- <div class="sg-toolbar-group-2">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button" label:aria-label="Search">
|
|
|
|
<md-icon>search</md-icon>
|
2015-03-30 21:11:20 +02:00
|
|
|
</md-button>
|
2015-08-11 19:40:38 +02:00
|
|
|
</div> -->
|
2015-03-30 21:11:20 +02:00
|
|
|
</div><!-- .md-toolbar-tools -->
|
2015-08-12 22:11:38 +02:00
|
|
|
<div class="md-toolbar-tools" layout="row"
|
|
|
|
layout-align="space-between center"
|
|
|
|
ng-show="list.component.$selectedCount() == 0">
|
2015-07-09 22:35:19 +02:00
|
|
|
<!-- sort/filter mode -->
|
|
|
|
<div class="view-list" layout="row" layout-align="space-between center"
|
2015-07-08 20:46:07 +02:00
|
|
|
ng-hide="list.mode.search">
|
|
|
|
<div class="sg-toolbar-group">
|
|
|
|
<md-button class="sg-icon-button" label:aria-label="Search"
|
|
|
|
ng-click="list.mode.search = true">
|
|
|
|
<md-icon>search</md-icon>
|
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
<div class="sg-toolbar-group-last">
|
|
|
|
<md-menu>
|
2015-07-09 22:35:19 +02:00
|
|
|
<md-button class="sg-icon-button" label:aria-label="Filter"
|
2015-07-08 20:46:07 +02:00
|
|
|
ng-click="$mdOpenMenu()">
|
|
|
|
<md-icon>filter_list</md-icon>
|
|
|
|
</md-button>
|
|
|
|
<md-menu-content>
|
|
|
|
<md-menu-item>
|
|
|
|
<md-button ng-click="list.filter('view_all')">
|
2015-07-09 22:35:19 +02:00
|
|
|
<md-icon ng-class="{ 'icon-check': list.filteredBy('view_all') }">
|
2015-07-08 20:46:07 +02:00
|
|
|
<!-- selected --></md-icon> <var:string label:value="view_all"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item>
|
|
|
|
<md-button ng-click="list.filter('view_today')">
|
2015-07-09 22:35:19 +02:00
|
|
|
<md-icon ng-class="{ 'icon-check': list.filteredBy('view_today') }">
|
2015-07-08 20:46:07 +02:00
|
|
|
<!-- selected --></md-icon> <var:string label:value="view_today"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item>
|
|
|
|
<md-button ng-click="list.filter('view_next7')">
|
2015-07-09 22:35:19 +02:00
|
|
|
<md-icon ng-class="{ 'icon-check': list.filteredBy('view_next7') }">
|
2015-07-08 20:46:07 +02:00
|
|
|
<!-- selected --></md-icon> <var:string label:value="view_next7"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item>
|
|
|
|
<md-button ng-click="list.filter('view_next14')">
|
2015-07-09 22:35:19 +02:00
|
|
|
<md-icon ng-class="{ 'icon-check': list.filteredBy('view_next14') }">
|
2015-07-08 20:46:07 +02:00
|
|
|
<!-- selected --></md-icon> <var:string label:value="view_next14"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item>
|
|
|
|
<md-button ng-click="list.filter('view_next31')">
|
2015-07-09 22:35:19 +02:00
|
|
|
<md-icon ng-class="{ 'icon-check': list.filteredBy('view_next31') }">
|
2015-07-08 20:46:07 +02:00
|
|
|
<!-- selected --></md-icon><var:string label:value="view_next31"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item>
|
|
|
|
<md-button ng-click="list.filter('view_thismonth')">
|
2015-07-09 22:35:19 +02:00
|
|
|
<md-icon ng-class="{ 'icon-check': list.filteredBy('view_thismonth') }">
|
2015-07-08 20:46:07 +02:00
|
|
|
<!-- selected --></md-icon><var:string label:value="view_thismonth"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
2015-07-09 22:35:19 +02:00
|
|
|
<md-menu-item ng-if="list.componentType == 'events'">
|
2015-07-08 20:46:07 +02:00
|
|
|
<md-button ng-click="list.filter('view_future')">
|
2015-07-09 22:35:19 +02:00
|
|
|
<md-icon ng-class="{ 'icon-check': list.component.$queryEvents.filterpopup == 'view_future' }">
|
2015-07-08 20:46:07 +02:00
|
|
|
<!-- selected --></md-icon> <var:string label:value="view_future"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
2015-07-09 22:35:19 +02:00
|
|
|
<md-menu-item ng-if="list.componentType == 'events'">
|
2015-07-08 20:46:07 +02:00
|
|
|
<md-button ng-click="list.filter('view_selectedday')">
|
2015-07-09 22:35:19 +02:00
|
|
|
<md-icon ng-class="{ 'icon-check': list.component.$queryEvents.filterpopup == 'view_selectedday' }">
|
2015-07-21 14:26:50 +02:00
|
|
|
<!-- selected --></md-icon> <var:string label:value="view_selectedday"/>
|
2015-07-08 20:46:07 +02:00
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
2015-07-09 22:35:19 +02:00
|
|
|
<md-menu-item ng-if="list.componentType == 'tasks'">
|
|
|
|
<md-button ng-click="list.filter('view_not_started')">
|
|
|
|
<md-icon ng-class="{ 'icon-check': list.component.$queryTasks.filterpopup == 'view_not_started' }">
|
2015-07-21 14:26:50 +02:00
|
|
|
<!-- selected --></md-icon> <var:string label:value="view_not_started"/>
|
2015-07-09 22:35:19 +02:00
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item ng-if="list.componentType == 'tasks'">
|
|
|
|
<md-button ng-click="list.filter('view_overdue')">
|
|
|
|
<md-icon ng-class="{ 'icon-check': list.component.$queryTasks.filterpopup == 'view_overdue' }">
|
2015-07-21 14:26:50 +02:00
|
|
|
<!-- selected --></md-icon> <var:string label:value="view_overdue"/>
|
2015-07-09 22:35:19 +02:00
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item ng-if="list.componentType == 'tasks'">
|
|
|
|
<md-button ng-click="list.filter('view_incomplete')">
|
|
|
|
<md-icon ng-class="{ 'icon-check': list.component.$queryTasks.filterpopup == 'view_incomplete' }">
|
2015-07-21 14:26:50 +02:00
|
|
|
<!-- selected --></md-icon> <var:string label:value="view_incomplete"/>
|
2015-07-09 22:35:19 +02:00
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
2015-07-08 20:46:07 +02:00
|
|
|
<md-menu-divider ng-if="list.componentType == 'tasks'"><!-- divider --></md-menu-divider>
|
|
|
|
<md-menu-item ng-if="list.componentType == 'tasks'">
|
2015-07-21 21:36:03 +02:00
|
|
|
<md-button ng-click="list.component.$filter(list.componentType)">
|
2015-07-08 20:46:07 +02:00
|
|
|
<md-checkbox
|
2015-07-09 22:35:19 +02:00
|
|
|
ng-model="list.component.$queryTasks.show_completed"
|
2015-07-08 20:46:07 +02:00
|
|
|
ng-true-value="1"
|
2015-07-21 14:26:50 +02:00
|
|
|
ng-false-value="0"> <var:string label:value="Show completed tasks"/></md-checkbox>
|
2015-07-08 20:46:07 +02:00
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
</md-menu-content>
|
|
|
|
</md-menu>
|
2015-07-09 22:35:19 +02:00
|
|
|
<md-menu>
|
|
|
|
<md-button class="sg-icon-button" label:aria-label="Sort"
|
|
|
|
ng-click="$mdOpenMenu()">
|
|
|
|
<md-icon>sort</md-icon>
|
|
|
|
</md-button>
|
|
|
|
<md-menu-content>
|
|
|
|
<md-menu-item>
|
|
|
|
<md-button ng-click="list.sort('title')">
|
|
|
|
<md-icon ng-class="{ 'icon-check': list.sortedBy('title') }">
|
|
|
|
<!-- selected --></md-icon> <var:string label:value="Title"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item>
|
|
|
|
<md-button ng-click="list.sort('location')">
|
|
|
|
<md-icon ng-class="{ 'icon-check': list.sortedBy('location') }">
|
|
|
|
<!-- selected --></md-icon> <var:string label:value="Location"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item>
|
|
|
|
<md-button ng-click="list.sort('calendarName')">
|
|
|
|
<md-icon ng-class="{ 'icon-check': list.sortedBy('calendarName') }">
|
|
|
|
<!-- selected --></md-icon> <var:string label:value="Calendar"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item ng-if="list.componentType == 'events'">
|
|
|
|
<md-button ng-click="list.sort('start')">
|
|
|
|
<md-icon ng-class="{ 'icon-check': list.sortedBy('start') }">
|
|
|
|
<!-- selected --></md-icon> <var:string label:value="Start"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item ng-if="list.componentType == 'events'">
|
|
|
|
<md-button ng-click="list.sort('end')">
|
|
|
|
<md-icon ng-class="{ 'icon-check': list.sortedBy('end') }">
|
|
|
|
<!-- selected --></md-icon> <var:string label:value="End"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item ng-if="list.componentType == 'tasks'">
|
|
|
|
<md-button ng-click="list.sort('end')">
|
|
|
|
<md-icon ng-class="{ 'icon-check': list.sortedBy('end') }">
|
|
|
|
<!-- selected --></md-icon> <var:string label:value="Due Date"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item ng-if="list.componentType == 'tasks'">
|
|
|
|
<md-button ng-click="list.sort('priority')">
|
|
|
|
<md-icon ng-class="{ 'icon-check': list.sortedBy('priority') }">
|
|
|
|
<!-- selected --></md-icon> <var:string label:value="Priority"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item ng-if="list.componentType == 'tasks'">
|
|
|
|
<md-button ng-click="list.sort('category')">
|
|
|
|
<md-icon ng-class="{ 'icon-check': list.sortedBy('category') }">
|
|
|
|
<!-- selected --></md-icon> <var:string label:value="Category"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item ng-if="list.componentType == 'tasks'">
|
|
|
|
<md-button ng-click="list.sort('status')">
|
|
|
|
<md-icon ng-class="{ 'icon-check': list.sortedBy('status') }">
|
|
|
|
<!-- selected --></md-icon> <var:string label:value="Status"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-divider><!-- divider --></md-menu-divider>
|
|
|
|
<md-menu-item ng-if="list.componentType == 'events'">
|
|
|
|
<md-button ng-click="list.component.$filter(list.componentType)">
|
|
|
|
<md-checkbox
|
|
|
|
ng-model="list.component.$queryEvents.asc"
|
|
|
|
ng-true-value="0"
|
|
|
|
ng-false-value="1"><var:string label:value="Descending Order"/></md-checkbox>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item ng-if="list.componentType == 'tasks'">
|
|
|
|
<md-button ng-click="list.component.$filter(list.componentType)">
|
|
|
|
<md-checkbox
|
|
|
|
ng-model="list.component.$queryTasks.asc"
|
|
|
|
ng-true-value="0"
|
|
|
|
ng-false-value="1"><var:string label:value="Descending Order"/></md-checkbox>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
</md-menu-content>
|
|
|
|
</md-menu>
|
2015-08-14 22:31:29 +02:00
|
|
|
<md-button class="sg-icon-button" ng-click="list.component.$filter(list.componentType)">
|
|
|
|
<md-icon>refresh</md-icon>
|
|
|
|
</md-button>
|
2015-07-08 20:46:07 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- search mode -->
|
|
|
|
<div class="view-list sg-padded--right sg-toolbar-search" layout="row" layout-align="space-between center"
|
|
|
|
ng-show="list.mode.search"
|
2015-03-30 21:11:20 +02:00
|
|
|
sg-search="list.component.$filter(list.componentType, { value: searchText, search: searchField })">
|
2015-07-08 20:46:07 +02:00
|
|
|
<md-button class="sg-icon-button"
|
|
|
|
sg-search-cancel="list.cancelSearch()"
|
|
|
|
label:aria-label="Back">
|
|
|
|
<md-icon>arrow_back</md-icon>
|
|
|
|
</md-button>
|
|
|
|
<md-input-container>
|
|
|
|
<input name="folderSearch" type="search" />
|
2015-03-30 21:11:20 +02:00
|
|
|
</md-input-container>
|
2015-07-08 20:46:07 +02:00
|
|
|
<md-input-container>
|
2015-03-30 21:11:20 +02:00
|
|
|
<md-select>
|
2015-07-08 20:46:07 +02:00
|
|
|
<md-option value="title_Category_Location" selected="selected"><var:string label:value="Title, category or location"/></md-option>
|
2015-03-30 21:11:20 +02:00
|
|
|
<md-option value="entireContent"><var:string label:value="Entire content"/></md-option>
|
|
|
|
</md-select>
|
2015-07-08 20:46:07 +02:00
|
|
|
</md-input-container>
|
2015-03-30 21:11:20 +02:00
|
|
|
</div>
|
2015-07-08 20:46:07 +02:00
|
|
|
<!-- day/week/month views -->
|
2015-08-26 02:47:12 +02:00
|
|
|
<div>
|
2015-07-04 03:40:37 +02:00
|
|
|
<a class="sg-icon-button md-button"
|
2015-04-01 17:18:19 +02:00
|
|
|
label:aria-label="Day"
|
2015-07-04 03:40:37 +02:00
|
|
|
href="#/calendar/day"><md-icon>view_day</md-icon></a>
|
|
|
|
<a class="sg-icon-button md-button"
|
2015-04-01 17:18:19 +02:00
|
|
|
label:aria-label="Week"
|
2015-07-04 03:40:37 +02:00
|
|
|
href="#/calendar/week"><md-icon>view_week</md-icon></a>
|
|
|
|
<a class="sg-icon-button md-button"
|
2015-04-08 22:01:52 +02:00
|
|
|
label:aria-label="Month"
|
2015-07-04 03:40:37 +02:00
|
|
|
href="#/calendar/month"><md-icon>view_module</md-icon></a>
|
2012-12-05 20:47:28 +01:00
|
|
|
</div>
|
2012-09-07 21:46:49 +02:00
|
|
|
</div>
|
2015-08-12 22:11:38 +02:00
|
|
|
<div layout="row" layout-align="start center" ng-show="list.component.$selectedCount() > 0">
|
|
|
|
<md-button class="sg-icon-button" ng-click="list.unselectComponents()">
|
|
|
|
<md-icon>arrow_back</md-icon>
|
|
|
|
</md-button>
|
|
|
|
<label>{{list.component.$selectedCount()}} selected</label>
|
|
|
|
<md-button class="sg-icon-button" ng-click="list.selectAll()">
|
|
|
|
<md-tooltip md-direction="left"><var:string label:value="Select All"/></md-tooltip>
|
|
|
|
<md-icon>select_all</md-icon>
|
|
|
|
</md-button>
|
|
|
|
<md-button class="sg-icon-button" ng-click="list.confirmDeleteSelectedComponents()">
|
|
|
|
<md-icon>delete</md-icon>
|
|
|
|
</md-button>
|
|
|
|
</div>
|
2015-03-30 21:11:20 +02:00
|
|
|
</md-toolbar>
|
2015-08-12 16:31:06 +02:00
|
|
|
<md-content layout="row" class="md-flex">
|
2015-07-21 14:26:50 +02:00
|
|
|
<md-content class="view-list md-flex" layout="column">
|
|
|
|
<md-tabs md-dynamic-height="true"
|
|
|
|
md-selected="list.selectedList">
|
|
|
|
<!-- Events list -->
|
|
|
|
<md-tab label:label="Events"
|
|
|
|
md-on-select="list.selectComponentType('events')">
|
2015-08-07 17:17:09 +02:00
|
|
|
<md-list class="sg-section-list">
|
|
|
|
<md-list-item class="md-2-line"
|
2015-07-21 14:26:50 +02:00
|
|
|
ng-repeat="event in list.component.$events"
|
|
|
|
ng-click="list.openEvent($event, event)">
|
2015-08-12 22:11:38 +02:00
|
|
|
<div class="sg-selected-avatar" ng-show="event.selected"
|
|
|
|
ng-click="event.selected = !event.selected">
|
|
|
|
<!-- selected avatar -->
|
|
|
|
</div>
|
|
|
|
<i class="md-tile-left" ng-class="event.getClassName('bg')" ng-show="!event.selected" ng-click="event.selected = !event.selected"><!-- calendar color --></i>
|
2015-07-21 14:26:50 +02:00
|
|
|
<div class="md-list-item-text">
|
|
|
|
<h3>{{event.c_title}}</h3>
|
|
|
|
<p>{{event.c_location}}</p>
|
|
|
|
<p class="md-secondary" layout="row">
|
|
|
|
{{event.formatted_startdate}}
|
2015-08-07 17:17:09 +02:00
|
|
|
<i class="sg-tile-icons">
|
2015-07-21 14:26:50 +02:00
|
|
|
<md-icon ng-show="event.c_iscycle">repeat</md-icon>
|
|
|
|
<md-icon ng-show="event.c_nextalarm">alarm</md-icon>
|
2015-08-07 17:17:09 +02:00
|
|
|
</i>
|
2015-07-21 14:26:50 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</md-list-item>
|
2015-08-07 20:25:14 +02:00
|
|
|
<md-list-item disabled="disabled" ng-if="list.component.$events.length == 0">
|
2015-07-21 14:26:50 +02:00
|
|
|
<p class="sg-md-caption"><var:string label:value="No events for selected criteria"/></p>
|
|
|
|
</md-list-item>
|
|
|
|
</md-list>
|
|
|
|
</md-tab>
|
|
|
|
<!-- Tasks list -->
|
|
|
|
<md-tab label:label="Tasks"
|
|
|
|
md-on-select="list.selectComponentType('tasks')">
|
2015-08-07 17:17:09 +02:00
|
|
|
<md-list class="sg-section-list">
|
|
|
|
<md-list-item class="md-2-line"
|
2015-07-21 14:26:50 +02:00
|
|
|
ng-repeat="task in list.component.$tasks"
|
|
|
|
ng-click="list.openTask($event, task)">
|
2015-08-12 22:11:38 +02:00
|
|
|
<div class="sg-selected-avatar" ng-show="task.selected"
|
|
|
|
ng-click="task.selected = !task.selected">
|
|
|
|
<!-- selected avatar -->
|
|
|
|
</div>
|
|
|
|
<i class="md-tile-left" ng-class="task.getClassName('bg')" ng-show="!task.selected" ng-click="task.selected = !task.selected"><!-- calendar color --></i>
|
2015-07-21 14:26:50 +02:00
|
|
|
<div class="md-list-item-text">
|
|
|
|
<h3>{{task.c_title}}</h3>
|
|
|
|
<p class="md-secondary" layout="row">
|
|
|
|
{{task.formatted_enddate}}
|
|
|
|
<span class="sg-tile-icons">
|
|
|
|
<md-icon ng-show="task.c_iscycle">repeat</md-icon>
|
|
|
|
<md-icon ng-show="event.c_nextalarm">alarm</md-icon>
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</md-list-item>
|
2015-08-07 17:17:09 +02:00
|
|
|
<md-list-item disabled="disabled" ng-if="list.component.$tasks.length == 0">
|
2015-07-21 14:26:50 +02:00
|
|
|
<p class="sg-md-caption"><var:string label:value="No tasks for selected criteria"/></p>
|
|
|
|
</md-list-item>
|
|
|
|
</md-list>
|
|
|
|
</md-tab>
|
|
|
|
</md-tabs>
|
2015-07-21 21:37:22 +02:00
|
|
|
<md-button class="md-fab md-fab-bottom-right"
|
2015-04-29 17:23:21 +02:00
|
|
|
label:aria-label="New Appointment"
|
2015-07-21 14:26:50 +02:00
|
|
|
ng-click="list.newComponent($event)">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-icon>add</md-icon>
|
2015-04-29 17:23:21 +02:00
|
|
|
</md-button>
|
2015-07-21 14:26:50 +02:00
|
|
|
</md-content>
|
2015-08-12 02:58:39 +02:00
|
|
|
<div id="detailView" hide-sm="hide-sm" class="view-detail" layout="column" ui-view="calendarView"><!-- calendar view --></div>
|
2015-03-30 21:11:20 +02:00
|
|
|
</md-content>
|
|
|
|
</section>
|
|
|
|
</script>
|
|
|
|
|
2015-04-24 22:07:48 +02:00
|
|
|
<script type="text/ng-template" id="UIxUserRightsEditor">
|
|
|
|
<var:component className="UIxCalUserRightsEditor" />
|
|
|
|
</script>
|
2007-06-19 20:00:08 +02:00
|
|
|
</var:component>
|