diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-07-15 12:20:26 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-07-15 12:28:29 +0200 |
commit | 8b49e304e0729b464975add486f527484cbfa7fb (patch) | |
tree | 731a73054890d694863774b8f5b9246c72251bd2 /apps/contacts/templates/index.php | |
parent | 48521fcfaa6d6b36f5e55ac5de936b82a8f60c19 (diff) | |
download | nextcloud-server-8b49e304e0729b464975add486f527484cbfa7fb.tar.gz nextcloud-server-8b49e304e0729b464975add486f527484cbfa7fb.zip |
Hide file form field behind image so it will maybe work with IE...
Diffstat (limited to 'apps/contacts/templates/index.php')
-rw-r--r-- | apps/contacts/templates/index.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/contacts/templates/index.php b/apps/contacts/templates/index.php index e13748ddde7..98cb67a26e7 100644 --- a/apps/contacts/templates/index.php +++ b/apps/contacts/templates/index.php @@ -11,13 +11,13 @@ </div> <div id="uploadprogressbar"></div> <div id="bottomcontrols"> - <form> + <form id="import_upload_form" action="<?php echo OCP\Util::linkTo('contacts', 'ajax/uploadimport.php'); ?>" method="post" enctype="multipart/form-data" target="import_upload_target"> <button class="svg" id="contacts_newcontact" title="<?php echo $l->t('Add Contact'); ?>"><img class="svg" src="<?php echo OCP\Util::imagePath('contacts', 'contact-new.svg'); ?>" alt="<?php echo $l->t('Add Contact'); ?>" /></button> - <button class="svg" id="contacts_import" title="<?php echo $l->t('Import'); ?>"><img class="svg" src="core/img/actions/upload.svg" alt="<?php echo $l->t('Import'); ?>" /></button> + <span class="svg" id="contacts_import" title="<?php echo $l->t('Import'); ?>"> + <input class="float" id="import_upload_start" type="file" accept="text/directory,text/vcard,text/x-vcard" name="importfile" /> + <img class="svg" src="core/img/actions/upload.svg" alt="<?php echo $l->t('Import'); ?>" /> + </span> <button class="svg" id="chooseaddressbook" title="<?php echo $l->t('Addressbooks'); ?>"><img class="svg" src="core/img/actions/settings.svg" alt="<?php echo $l->t('Addressbooks'); ?>" /></button> - </form> - <form id="import_upload_form" action="<?php echo OCP\Util::linkTo('contacts', 'ajax/uploadimport.php'); ?>" method="post" enctype="multipart/form-data" target="import_upload_target"> - <input class="float" id="import_upload_start" type="file" accept="text/*" name="importfile" /></a> <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_['uploadMaxFilesize'] ?>" id="max_upload"> </form> <iframe name="import_upload_target" id='import_upload_target' src=""></iframe> |