nextcloud/apps/contacts/templates/index.php

30 lines
1.2 KiB
PHP
Raw Normal View History

<script type='text/javascript'>
2012-05-02 01:19:39 +04:00
var totalurl = '<?php echo OCP\Util::linkToAbsolute('contacts', 'carddav.php'); ?>/addressbooks';
var categories = <?php echo json_encode($_['categories']); ?>;
2012-05-02 17:54:34 +04:00
var lang = '<?php echo OCP\Config::getUserValue(OCP\USER::getUser(), 'core', 'lang', 'en'); ?>';
</script>
<div id="leftcontent" class="leftcontent">
<ul id="contacts">
2011-08-09 15:53:58 +04:00
<?php echo $this->inc("part.contacts"); ?>
</ul>
</div>
<div id="bottomcontrols">
<form>
2012-05-03 17:21:29 +04:00
<button class="svg" id="contacts_newcontact" title="<?php echo $l->t('Add Contact'); ?>"><img class="svg" src="<?php echo OCP\Util::linkTo('contacts', 'img/contact-new.svg'); ?>" alt="<?php echo $l->t('Add Contact'); ?>" /></button>
<button class="svg" id="chooseaddressbook" title="<?php echo $l->t('Addressbooks'); ?>"><img class="svg" src="core/img/actions/settings.svg" alt="<?php echo $l->t('Addressbooks'); ?>" /></button>
</form>
</div>
2011-08-11 12:08:02 +04:00
<div id="rightcontent" class="rightcontent" data-id="<?php echo $_['id']; ?>">
<?php
if ($_['id']){
2012-02-14 04:47:18 +04:00
echo $this->inc('part.contact');
}
else{
2012-02-14 04:47:18 +04:00
echo $this->inc('part.no_contacts');
}
?>
2011-08-07 00:32:06 +04:00
</div>
<!-- Dialogs -->
<div id="dialog_holder"></div>
<!-- End of Dialogs -->