(feat) allow showing links to address books

This commit is contained in:
Ludovic Marcotte authored and Francis Lachapelle committed 2015-06-12 14:24:23 -04:00
1 parent 942c972942
commit a89b116940
8 files changed
+83 -80

No files matched your search

@@ -0,0 +1,44 @@
<?xml version='1.0' standalone='yes'?>
<!DOCTYPE var:component>
<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:uix="OGo:uix"
xmlns:rsrc="OGo:url"
xmlns:label="OGo:label"
className="UIxPageFrame">
<md-dialog>
<md-content>
<div layout="column" layout-padding="layout-padding">
<div layout="column" layout-padding="layout-padding">
<span><var:string label:value="Authenticated User Access"/></span>
<md-input-container>
<label><var:string label:value="CardDAV URL: "/></label>
<input var:value="cardDavURL" ng-readonly="true"/>
</md-input-container>
</div>
<var:if condition="isPublicAccessEnabled">
<div layout="column" layout-padding="layout-padding">
<span><var:string label:value="Public Access"/></span>
<md-input-container>
<label><var:string label:value="CardDAV URL: "/></label>
<input var:value="publicCardDavURL" ng-readonly="true"/>
</md-input-container>
</div>
</var:if>
</div>
<md-button type="button" ng-click="close()">
<var:string label:value="OK"/>
</md-button>
</md-content>
</md-dialog>
</var:component>
@@ -1,63 +0,0 @@
<?xml version='1.0' standalone='yes'?>
<!DOCTYPE var:component>
<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:uix="OGo:uix"
xmlns:rsrc="OGo:url"
xmlns:label="OGo:label"
className="UIxPageFrame"
const:toolbar="none"
const:popup="YES"
title="title">
<div class="tabsContainer" id="propertiesTabs">
<ul>
<li target="properties">
<span><var:string label:value="Properties" /></span></li>
<li target="LinksView">
<span><var:string label:value="Links to this Address Book" /></span></li>
</ul>
<div class="tabs">
<!-- First Tab -->
<div id="properties" class="tab">
<fieldset>
<legend><var:string label:value="Properties"/></legend>
<div>
<var:string label:value="Address Book Name:" />
<input type="text" name="addressBookName" id="addressBookName" class="textField" var:value="addressBookName" />
</div>
</fieldset>
</div>
<!-- Second Tab -->
<div id="LinksView" class="tab">
<fieldset id="authenticatedLinks">
<legend><var:string label:value="Authenticated User Access"/></legend>
<div>
<var:string label:value="CardDAV URL: "/>
<var:string value="cardDavURL" />
</div>
</fieldset>
<var:if condition="isPublicAccessEnabled">
<fieldset id="publicLinks">
<legend><var:string label:value="Public Access"/></legend>
<div>
<var:string label:value="CardDAV URL: "/>
<var:string value="publicCardDavURL" />
</div>
</fieldset>
</var:if>
</div>
<!-- Buttons -->
<div id="buttons">
<a href="#" class="button actionButton" id="okButton" name="okButton">
<span><var:string label:value="OK"/></span></a>
<a href="#" class="button" id="cancelButton" name="cancelButton">
<span><var:string label:value="Cancel"/></span></a>
</div>
</div>
</div>
</var:component>
@@ -179,6 +179,12 @@
<var:string label:value="Export"/>
</md-button>
</md-menu-item>
<md-menu-divider><!-- divider --></md-menu-divider>
<md-menu-item>
<md-button type="button" ng-click="app.showLinks(folder)">
<var:string label:value="Links to this Address Book"/>
</md-button>
</md-menu-item>
<md-menu-item>
<md-button type="button" ng-click="app.share(folder)"
ng-show="app.service.selectedFolder.id==folder.id">