mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-29 18:52:18 +01:00
Contacts: Add stub for import functionality.
This commit is contained in:
parent
c9f2fc867f
commit
6dfc569400
@ -1081,6 +1081,8 @@ OC.Contacts = OC.Contacts || {
|
||||
});
|
||||
|
||||
$('.import').on('click keydown', function(event) {
|
||||
// NOTE: Test if document title changes. If so there's a fix in
|
||||
// https://github.com/owncloud/apps/pull/212#issuecomment-10516723
|
||||
if(wrongKey(event)) {
|
||||
return;
|
||||
}
|
||||
@ -1088,7 +1090,7 @@ OC.Contacts = OC.Contacts || {
|
||||
self.hideActions();
|
||||
});
|
||||
|
||||
$('.export').on('click keydown', function(event) {
|
||||
$('.export,.import').on('click keydown', function(event) {
|
||||
if(wrongKey(event)) {
|
||||
return;
|
||||
}
|
||||
|
@ -25,7 +25,24 @@
|
||||
<div id="contacts-settings">
|
||||
<ul>
|
||||
<li><button class="settings" title="<?php echo $l->t('Settings'); ?>"></button></li>
|
||||
<li><h3 class="import" role="button"><?php echo $l->t('Import'); ?></h3></li>
|
||||
<li><h3 class="import" role="button"><?php echo $l->t('Import'); ?></h3>
|
||||
<ul class="hidden">
|
||||
<li>
|
||||
<input type="file" accept="text/vcard,text/x-vcard,text/directory" multiple="multiple" />
|
||||
<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_['uploadMaxFilesize'] ?>" id="max_upload">
|
||||
</li>
|
||||
<li><?php echo $l->t('Import into:'); ?></li>
|
||||
<li>
|
||||
<select>
|
||||
<?php foreach($_['addressbooks'] as $addressbook) {
|
||||
if($addressbook['permissions'] & OCP\PERMISSION_CREATE) {
|
||||
?>
|
||||
<option value="<?php echo $addressbook['id'] ?>"><?php echo $addressbook['displayname'] ?></option>
|
||||
<?php }} ?>
|
||||
</select>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><h3 class="export"><?php echo $l->t('Export'); ?></h3>
|
||||
<ul class="hidden">
|
||||
<?php foreach($_['addressbooks'] as $addressbook): ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user