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