2012-07-31 12:21:45 +02:00
|
|
|
<form id="contacts-settings">
|
2011-09-28 16:05:01 +02:00
|
|
|
<fieldset class="personalblock">
|
2013-02-28 16:27:14 +01:00
|
|
|
<?php p($l->t('CardDAV syncing addresses')); ?> (<a href="http://owncloud.org/synchronisation/" target="_blank"><?php p($l->t('more info')); ?></a>)
|
2012-03-13 14:28:38 +01:00
|
|
|
<dl>
|
2013-02-28 16:27:14 +01:00
|
|
|
<dt><?php p($l->t('Primary address (Kontact et al)')); ?></dt>
|
2013-02-28 18:26:55 +01:00
|
|
|
<dd><code><?php print_unescaped(OCP\Util::linkToRemote('carddav')); ?></code></dd>
|
2013-02-28 16:27:14 +01:00
|
|
|
<dt><?php p($l->t('iOS/OS X')); ?></dt>
|
2013-02-28 18:26:55 +01:00
|
|
|
<dd><code><?php print_unescaped(OCP\Util::linkToRemote('carddav')); ?>principals/<?php p(OCP\USER::getUser()); ?></code>/</dd>
|
2012-10-05 05:05:49 +02:00
|
|
|
</dl>
|
|
|
|
<div class="addressbooks-settings hidden">
|
2013-02-28 16:27:14 +01:00
|
|
|
<?php p($l->t('Addressbooks')); ?>
|
2012-08-01 23:59:44 +02:00
|
|
|
<table>
|
2012-07-08 17:52:57 +02:00
|
|
|
<?php foreach($_['addressbooks'] as $addressbook) { ?>
|
2013-02-28 17:21:45 +01:00
|
|
|
<tr class="addressbook" data-id="<?php p($addressbook['id']) ?>"
|
|
|
|
data-uri="<?php p($addressbook['uri']) ?>"
|
|
|
|
data-owner="<?php p($addressbook['userid']) ?>"
|
2012-09-06 02:09:36 +02:00
|
|
|
>
|
2012-08-01 23:59:44 +02:00
|
|
|
<td class="active">
|
2012-11-11 19:43:44 +01:00
|
|
|
<?php if($addressbook['permissions'] & OCP\PERMISSION_UPDATE) { ?>
|
2013-02-28 18:26:55 +01:00
|
|
|
<input type="checkbox" <?php print_unescaped((($addressbook['active']) == '1' ? ' checked="checked"' : '')); ?> />
|
2012-08-30 23:01:38 +02:00
|
|
|
<?php } ?>
|
2012-08-01 23:59:44 +02:00
|
|
|
</td>
|
2013-02-28 17:21:45 +01:00
|
|
|
<td class="name"><?php p($addressbook['displayname']) ?></td>
|
|
|
|
<td class="description"><?php p($addressbook['description']) ?></td>
|
2012-08-01 23:59:44 +02:00
|
|
|
<td class="action">
|
2013-02-28 16:27:14 +01:00
|
|
|
<a class="svg action globe" title="<?php p($l->t('Show CardDav link')); ?>"></a>
|
2012-08-01 23:59:44 +02:00
|
|
|
</td>
|
|
|
|
<td class="action">
|
2013-02-28 16:27:14 +01:00
|
|
|
<a class="svg action cloud" title="<?php p($l->t('Show read-only VCF link')); ?>"></a>
|
2012-08-01 23:59:44 +02:00
|
|
|
</td>
|
2012-08-06 21:09:01 +02:00
|
|
|
<td class="action">
|
2012-11-11 19:43:44 +01:00
|
|
|
<?php if($addressbook['permissions'] & OCP\PERMISSION_SHARE) { ?>
|
2012-09-07 14:32:45 +02:00
|
|
|
<a class="svg action share" data-item-type="addressbook"
|
2013-02-28 17:21:45 +01:00
|
|
|
data-item="<?php p($addressbook['id']) ?>"
|
|
|
|
data-possible-permissions="<?php p($addressbook['permissions']) ?>"
|
2013-02-28 16:27:14 +01:00
|
|
|
title="<?php p($l->t("Share")); ?>"></a>
|
2012-08-30 23:01:38 +02:00
|
|
|
<?php } ?>
|
2012-08-06 21:09:01 +02:00
|
|
|
</td>
|
2012-08-01 23:59:44 +02:00
|
|
|
<td class="action">
|
2013-02-28 16:27:14 +01:00
|
|
|
<a class="svg action download" title="<?php p($l->t('Download')); ?>"
|
2013-02-28 18:26:55 +01:00
|
|
|
href="<?php print_unescaped(OCP\Util::linkToAbsolute('contacts', 'export.php')); ?>?bookid=<?php p($addressbook['id']) ?>"></a>
|
2012-08-01 23:59:44 +02:00
|
|
|
</td>
|
|
|
|
<td class="action">
|
2012-11-11 19:43:44 +01:00
|
|
|
<?php if($addressbook['permissions'] & OCP\PERMISSION_UPDATE) { ?>
|
2013-02-28 16:27:14 +01:00
|
|
|
<a class="svg action edit" title="<?php p($l->t("Edit")); ?>"></a>
|
2012-08-30 23:01:38 +02:00
|
|
|
<?php } ?>
|
2012-08-01 23:59:44 +02:00
|
|
|
</td>
|
|
|
|
<td class="action">
|
2012-11-11 19:43:44 +01:00
|
|
|
<?php if($addressbook['permissions'] & OCP\PERMISSION_DELETE) { ?>
|
2013-02-28 16:27:14 +01:00
|
|
|
<a class="svg action delete" title="<?php p($l->t("Delete")); ?>"></a>
|
2012-08-30 23:01:38 +02:00
|
|
|
<?php } ?>
|
2012-08-01 23:59:44 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
2012-07-08 17:52:57 +02:00
|
|
|
<?php } ?>
|
2012-08-01 23:59:44 +02:00
|
|
|
</table>
|
|
|
|
<div class="actions" style="width: 100%;">
|
|
|
|
<input class="active hidden" type="checkbox" />
|
2013-02-28 16:27:14 +01:00
|
|
|
<button class="new"><?php p($l->t('New Address Book')) ?></button>
|
|
|
|
<input class="name hidden" type="text" autofocus="autofocus" placeholder="<?php p($l->t('Name')); ?>" />
|
|
|
|
<input class="description hidden" type="text" placeholder="<?php p($l->t('Description')); ?>" />
|
|
|
|
<button class="save hidden"><?php p($l->t('Save')) ?></button>
|
|
|
|
<button class="cancel hidden"><?php p($l->t('Cancel')) ?></button>
|
2012-08-01 23:59:44 +02:00
|
|
|
</div>
|
2012-10-05 05:05:49 +02:00
|
|
|
</div>
|
2012-08-01 23:59:44 +02:00
|
|
|
<div style="width: 100%; clear: both;">
|
2013-02-28 16:27:14 +01:00
|
|
|
<button class="moreless"><?php p($l->t('More...')) ?></button>
|
2012-08-01 23:59:44 +02:00
|
|
|
</div>
|
2011-09-28 16:05:01 +02:00
|
|
|
</fieldset>
|
|
|
|
</form>
|