2012-04-23 23:14:10 +04:00
|
|
|
<div id="chooseaddressbook_dialog" title="<?php echo $l->t("Configure Address Books"); ?>">
|
2011-12-04 23:25:46 +04:00
|
|
|
<table width="100%" style="border: 0;">
|
|
|
|
<?php
|
2012-05-01 20:50:31 +04:00
|
|
|
$option_addressbooks = OC_Contacts_Addressbook::all(OCP\USER::getUser());
|
2011-12-04 23:25:46 +04:00
|
|
|
for($i = 0; $i < count($option_addressbooks); $i++){
|
|
|
|
echo "<tr>";
|
|
|
|
$tmpl = new OC_Template('contacts', 'part.chooseaddressbook.rowfields');
|
|
|
|
$tmpl->assign('addressbook', $option_addressbooks[$i]);
|
2011-12-09 18:10:51 +04:00
|
|
|
$tmpl->assign('active', OC_Contacts_Addressbook::isActive($option_addressbooks[$i]['id']));
|
2011-12-04 23:25:46 +04:00
|
|
|
$tmpl->printpage();
|
|
|
|
echo "</tr>";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<tr>
|
2012-01-19 19:04:39 +04:00
|
|
|
<td colspan="5" style="padding: 0.5em;">
|
|
|
|
<a class="button" href="#" onclick="Contacts.UI.Addressbooks.newAddressbook(this);"><?php echo $l->t('New Address Book') ?></a>
|
2012-04-23 23:14:10 +04:00
|
|
|
<a class="button" href="#" onclick="Contacts.UI.Addressbooks.importAddressbook(this);"><?php echo $l->t('Import from VCF') ?></a>
|
2011-12-04 23:25:46 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="5">
|
|
|
|
<p style="margin: 0 auto;width: 90%;"><input style="display:none;width: 90%;float: left;" type="text" id="carddav_url" onmouseover="$('#carddav_url').select();" title="<?php echo $l->t("CardDav Link"); ?>"><img id="carddav_url_close" style="height: 20px;vertical-align: middle;display: none;" src="../../core/img/actions/delete.svg" alt="close" onclick="$('#carddav_url').hide();$('#carddav_url_close').hide();"/></p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|