diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2011-12-04 20:25:46 +0100 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2011-12-04 20:25:46 +0100 |
commit | 95ae0f23f14c9e6854999233481e107cc330d70f (patch) | |
tree | 1661673ea95e0a6e3d72c57eee4fe3d3416a6c91 /apps/contacts/templates/part.chooseaddressbook.php | |
parent | 58d1a3516af1450c6d82f75384bfb2a3f8ea3282 (diff) | |
download | nextcloud-server-95ae0f23f14c9e6854999233481e107cc330d70f.tar.gz nextcloud-server-95ae0f23f14c9e6854999233481e107cc330d70f.zip |
Added UI for selecting/editing address books.
Export, CardDAV link and activation/deactivation of address books done.
Diffstat (limited to 'apps/contacts/templates/part.chooseaddressbook.php')
-rw-r--r-- | apps/contacts/templates/part.chooseaddressbook.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/apps/contacts/templates/part.chooseaddressbook.php b/apps/contacts/templates/part.chooseaddressbook.php new file mode 100644 index 00000000000..a698a334174 --- /dev/null +++ b/apps/contacts/templates/part.chooseaddressbook.php @@ -0,0 +1,23 @@ +<div id="chooseaddressbook_dialog" title="<?php echo $l->t("Choose active Address Books"); ?>"> +<table width="100%" style="border: 0;"> +<?php +$option_addressbooks = OC_Contacts_Addressbook::all(OC_User::getUser()); +for($i = 0; $i < count($option_addressbooks); $i++){ + echo "<tr>"; + $tmpl = new OC_Template('contacts', 'part.chooseaddressbook.rowfields'); + $tmpl->assign('addressbook', $option_addressbooks[$i]); + $tmpl->printpage(); + echo "</tr>"; +} +?> +<tr> + <td colspan="5"> + <a href="#" onclick="Contacts.UI.Addressbooks.newAddressbook(this);"><?php echo $l->t('New Address Book') ?></a> + </td> +</tr> +<tr> + <td colspan="5"> + <p style="margin: 0 auto;width: 90%;"><input style="display:none;width: 90%;float: left;" type="text" id="carddav_url" onmouseover="$('#carddav_url').select();" title="<?php echo $l->t("CardDav Link"); ?>"><img id="carddav_url_close" style="height: 20px;vertical-align: middle;display: none;" src="../../core/img/actions/delete.svg" alt="close" onclick="$('#carddav_url').hide();$('#carddav_url_close').hide();"/></p> + </td> +</tr> +</table> |