1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-30 19:52:17 +01:00

Set data-owner in addressbook list.

This commit is contained in:
Thomas Tanghus 2012-09-06 02:09:36 +02:00
parent 742f175872
commit 35ce5f1afb

View File

@ -10,7 +10,10 @@
<dd class="addressbooks-settings hidden">
<table>
<?php foreach($_['addressbooks'] as $addressbook) { ?>
<tr class="addressbook" data-id="<?php echo $addressbook['id'] ?>" data-uri="<?php echo $addressbook['uri'] ?>">
<tr class="addressbook" data-id="<?php echo $addressbook['id'] ?>"
data-uri="<?php echo $addressbook['uri'] ?>"
data-owner="<?php echo $addressbook['userid'] ?>"
>
<td class="active">
<?php if($addressbook['permissions'] & OCP\Share::PERMISSION_UPDATE) { ?>
<input type="checkbox" <?php echo (($addressbook['active']) == '1' ? ' checked="checked"' : ''); ?> />