mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-02-11 05:54:27 +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) {
|
$('.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)) {
|
if(wrongKey(event)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1088,7 +1090,7 @@ OC.Contacts = OC.Contacts || {
|
|||||||
self.hideActions();
|
self.hideActions();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.export').on('click keydown', function(event) {
|
$('.export,.import').on('click keydown', function(event) {
|
||||||
if(wrongKey(event)) {
|
if(wrongKey(event)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,24 @@
|
|||||||
<div id="contacts-settings">
|
<div id="contacts-settings">
|
||||||
<ul>
|
<ul>
|
||||||
<li><button class="settings" title="<?php echo $l->t('Settings'); ?>"></button></li>
|
<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>
|
<li><h3 class="export"><?php echo $l->t('Export'); ?></h3>
|
||||||
<ul class="hidden">
|
<ul class="hidden">
|
||||||
<?php foreach($_['addressbooks'] as $addressbook): ?>
|
<?php foreach($_['addressbooks'] as $addressbook): ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user