mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-30 19:52:17 +01:00
Contacts: Re-arrange address book management.
This commit is contained in:
parent
cd12448c77
commit
ed9fec3b1d
@ -717,7 +717,6 @@ OC.Contacts = OC.Contacts || {
|
||||
this.bindEvents();
|
||||
this.$toggleAll.show();
|
||||
this.showActions(['addcontact']);
|
||||
OC.Share.loadIcons('addressbook');
|
||||
|
||||
// Wait 2 mins then check if contacts are indexed.
|
||||
setTimeout(function() {
|
||||
|
@ -53,17 +53,6 @@
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><h3 class="export"><?php echo $l->t('Export'); ?></h3>
|
||||
<ul class="hidden">
|
||||
<?php foreach($_['addressbooks'] as $addressbook): ?>
|
||||
<li>
|
||||
<a role="button" href="<?php echo OCP\Util::linkToAbsolute('contacts', 'export.php'); ?>?bookid=<?php echo $addressbook['id'] ?>">
|
||||
<?php echo $addressbook['displayname'] ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@ -379,3 +368,14 @@
|
||||
</li>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<script id="addressbookTemplate" class="hidden" type="text/template">
|
||||
<li data-id="{id}">
|
||||
<label class="float">{displayname}</label>
|
||||
<span class="actions">
|
||||
<a title="<?php echo $l->t('Share'); ?>" class="share action" data-possible-permissions="{permissions}" data-item="{id}" data-item-type="addressbook"></a>
|
||||
<a title="<?php echo $l->t('Export'); ?>" class="download action" href="<?php echo OCP\Util::linkTo('contacts', 'export.php'); ?>?bookid=' + {id}"></a>
|
||||
<a title="<?php echo $l->t('CardDAV link'); ?>" class="globe action"></a>
|
||||
<a title="<?php echo $l->t('Delete'); ?>" class="delete action"></a>
|
||||
</span></li>
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user