diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-03-07 16:39:56 +0100 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-03-07 16:39:56 +0100 |
commit | 75323b86d157c48031b9ac8c151e4a41577a1481 (patch) | |
tree | 6e047d81b17a4bcbd15e9799ef8c5209c96a0ea5 /apps/contacts/templates/part.contact.php | |
parent | faf6055baa224fbf4248a70d28ae4416c9c7eb1c (diff) | |
download | nextcloud-server-75323b86d157c48031b9ac8c151e4a41577a1481.tar.gz nextcloud-server-75323b86d157c48031b9ac8c151e4a41577a1481.zip |
Contacts: UI updates and ajax methods for categories.
Diffstat (limited to 'apps/contacts/templates/part.contact.php')
-rw-r--r-- | apps/contacts/templates/part.contact.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/apps/contacts/templates/part.contact.php b/apps/contacts/templates/part.contact.php index 5be20964f4b..59bb6c2cc29 100644 --- a/apps/contacts/templates/part.contact.php +++ b/apps/contacts/templates/part.contact.php @@ -13,6 +13,7 @@ $id = isset($_['id']) ? $_['id'] : ''; <li><a data-type="TEL"><?php echo $l->t('Phone'); ?></a></li> <li><a data-type="EMAIL"><?php echo $l->t('Email'); ?></a></li> <li><a data-type="ADR"><?php echo $l->t('Address'); ?></a></li> + <li><a data-type="NOTE"><?php echo $l->t('Note'); ?></a></li> </ul> </div> <img onclick="Contacts.UI.Card.export();" class="svg action" id="contacts_downloadcard" src="<?php echo image_path('', 'actions/download.svg'); ?>" title="<?php echo $l->t('Download contact');?>" /> @@ -45,7 +46,7 @@ $id = isset($_['id']) ? $_['id'] : ''; <dt><label for="fn"><?php echo $l->t('Display name'); ?></label></dt> <dd class="propertycontainer" data-element="FN"> <select id="fn_select" title="<?php echo $l->t('Format custom, Short name, Full name, Reverse or Reverse with comma'); ?>" style="width:16em;"> - </select><a id="edit_name" class="edit" title="<?php echo $l->t('Edit name details'); ?>"></a> + </select><a id="edit_name" class="action edit" title="<?php echo $l->t('Edit name details'); ?>"></a> </dd> <dt style="display:none;" id="org_label" data-element="ORG"><label for="org"><?php echo $l->t('Organization'); ?></label></dt> <dd style="display:none;" class="propertycontainer" id="org_value" data-element="ORG"><input id="org" required="required" name="value[ORG]" type="text" class="contacts_property" style="width:16em;" name="value" value="" placeholder="<?php echo $l->t('Organization'); ?>" /><a class="delete" onclick="$(this).tipsy('hide');Contacts.UI.Card.deleteProperty(this, 'single');" title="<?php echo $l->t('Delete'); ?>"></a></dd> @@ -53,8 +54,19 @@ $id = isset($_['id']) ? $_['id'] : ''; <dd style="display:none;" class="propertycontainer" id="nickname_value" data-element="NICKNAME"><input id="nickname" required="required" name="value[NICKNAME]" type="text" class="contacts_property" style="width:16em;" name="value" value="" placeholder="<?php echo $l->t('Enter nickname'); ?>" /><a class="delete" onclick="$(this).tipsy('hide');Contacts.UI.Card.deleteProperty(this, 'single');" title="<?php echo $l->t('Delete'); ?>"></a></dd> <dt style="display:none;" id="bday_label" data-element="BDAY"><label for="bday"><?php echo $l->t('Birthday'); ?></label></dt> <dd style="display:none;" class="propertycontainer" id="bday_value" data-element="BDAY"><input id="bday" required="required" name="value" type="text" class="contacts_property" value="" placeholder="<?php echo $l->t('dd-mm-yyyy'); ?>" /><a class="delete" onclick="$(this).tipsy('hide');Contacts.UI.Card.deleteProperty(this, 'single');" title="<?php echo $l->t('Delete'); ?>"></a></dd> + <dt id="categories_label" data-element="CATEGORIES"><label for="categories"><?php echo $l->t('Categories'); ?></label></dt> + <dd class="propertycontainer" id="categories_value" data-element="CATEGORIES"> + <select class="contacts_property" multiple="multiple" id="categories" name="value[]"> + <?php echo html_select_options($_['categories'], array(), array('combine'=>true)) ?> + </select> + <a class="action edit" onclick="$(this).tipsy('hide');Categories.edit();" title="<?php echo $l->t('Edit categories'); ?>"></a> + </dd> </dl> </fieldset> + <fieldset id="note" class="formfloat propertycontainer" style="display:none;" data-element="NOTE"> + <legend><?php echo $l->t('Note'); ?></legend> + <textarea class="contacts_property note" name="value"></textarea> + </fieldset> </form> </div> |