part.editaddressbook.php 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Copyright (c) 2011 Bart Visscher <bartv@thisnet.nl>
  4. * This file is licensed under the Affero General Public License version 3 or
  5. * later.
  6. * See the COPYING-README file.
  7. */
  8. ?>
  9. <td id="<?php echo $_['new'] ? 'new' : 'edit' ?>addressbook_dialog" title="<?php echo $_['new'] ? $l->t("New Addressbook") : $l->t("Edit Addressbook"); ?>" colspan="6">
  10. <table width="100%" style="border: 0;">
  11. <tr>
  12. <th><?php echo $l->t('Displayname') ?></th>
  13. <td>
  14. <input id="displayname_<?php echo $_['addressbook']['id'] ?>" type="text" value="<?php echo htmlspecialchars($_['addressbook']['displayname']) ?>">
  15. </td>
  16. </tr>
  17. <?php if (!$_['new']): ?>
  18. <tr>
  19. <td></td>
  20. <td>
  21. <input id="edit_active_<?php echo $_['addressbook']['id'] ?>" type="checkbox"<?php echo OC_Contacts_Addressbook::isActive($_['addressbook']['id']) ? ' checked="checked"' : '' ?>>
  22. <label for="edit_active_<?php echo $_['addressbook']['id'] ?>">
  23. <?php echo $l->t('Active') ?>
  24. </label>
  25. </td>
  26. </tr>
  27. <?php endif; ?>
  28. </table>
  29. <input style="float: left;" type="button" onclick="Contacts.UI.Addressbooks.submit(this, <?php echo $_['new'] ? "'new'" : $_['addressbook']['id'] ?>);" value="<?php echo $_['new'] ? $l->t("Save") : $l->t("Submit"); ?>">
  30. <input style="float: left;" type="button" onclick="Contacts.UI.Addressbooks.cancel(this, <?php echo $_['new'] ? "'new'" : $_['addressbook']['id'] ?>);" value="<?php echo $l->t("Cancel"); ?>">
  31. </td>