summaryrefslogtreecommitdiffstats
path: root/apps/contacts
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-04-29 23:26:14 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-04-29 23:26:14 +0200
commit0bccd9c18c3c4b47a6d673ed921d0e6d53371947 (patch)
treed9a196ce1019d23139fc41ca19ca8369b17e57ec /apps/contacts
parentf6fefe9a36b83466bf551065296d8ff56e7ecbb2 (diff)
downloadnextcloud-server-0bccd9c18c3c4b47a6d673ed921d0e6d53371947.tar.gz
nextcloud-server-0bccd9c18c3c4b47a6d673ed921d0e6d53371947.zip
Contacts: Forgot to add the import template.
Diffstat (limited to 'apps/contacts')
-rw-r--r--apps/contacts/templates/part.importaddressbook.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/apps/contacts/templates/part.importaddressbook.php b/apps/contacts/templates/part.importaddressbook.php
new file mode 100644
index 00000000000..3efb90cd220
--- /dev/null
+++ b/apps/contacts/templates/part.importaddressbook.php
@@ -0,0 +1,34 @@
+<?php
+/**
+ * Copyright (c) 2012 Thomas Tanghus <thomas@tanghus.net>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+?>
+<td id="importaddressbook_dialog" title="<?php echo $l->t("Import Addressbook"); ?>" colspan="6">
+<table>
+<tr>
+ <th><?php echo $l->t('Select address book to import to:') ?></th>
+ <td>
+ <select id="book" name="book" class="float">
+ <?php
+ $contacts_options = OC_Contacts_Addressbook::all(OC_User::getUser());
+ echo html_select_options($contacts_options, $contacts_options[0]['id'], array('value'=>'id', 'label'=>'displayname'));
+ ?>
+ </select>
+ <span id="import_drop_target" class="droptarget float"><?php echo $l->t("Drop a VCF file to import contacts."); ?> (Max. <?php echo $_['uploadMaxHumanFilesize']; ?>)</span>
+ <a class="svg upload float" title="<?php echo $l->t('Select from HD'); ?>"></a>
+ </td>
+</tr>
+</table>
+<form id="import_upload_form" action="ajax/uploadimport.php" method="post" enctype="multipart/form-data" target="import_upload_target">
+<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_['uploadMaxFilesize'] ?>" id="max_upload">
+<input id="import_upload_start" type="file" accept="text/*" name="importfile" />
+<input id="close_button" style="float: left;" type="button" onclick="Contacts.UI.Addressbooks.cancel(this);" value="<?php echo $l->t("Cancel"); ?>">
+<iframe name="import_upload_target" id='import_upload_target' src=""></iframe>
+</form>
+</td>
+<script type="text/javascript">
+Contacts.UI.Addressbooks.loadImportHandlers();
+</script> \ No newline at end of file