diff options
author | Bart Visscher <bartv@thisnet.nl> | 2011-11-24 21:36:14 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2011-11-24 21:36:35 +0100 |
commit | 53ff85e2ad631b03b8f1ee788d0019be9a8e8aa1 (patch) | |
tree | c7980a1afbcdb91c7fe740b8936dee71a856eb94 | |
parent | 6ce6cbf4894a34c4e5bf1dd13a75be661e5ab520 (diff) | |
download | nextcloud-server-53ff85e2ad631b03b8f1ee788d0019be9a8e8aa1.tar.gz nextcloud-server-53ff85e2ad631b03b8f1ee788d0019be9a8e8aa1.zip |
Contacts: layout updates
-rw-r--r-- | apps/contacts/css/styles.css | 3 | ||||
-rw-r--r-- | apps/contacts/templates/part.details.php | 4 | ||||
-rw-r--r-- | apps/contacts/templates/part.setpropertyform.php | 4 |
3 files changed, 6 insertions, 5 deletions
diff --git a/apps/contacts/css/styles.css b/apps/contacts/css/styles.css index e226c48ae54..f351589fe12 100644 --- a/apps/contacts/css/styles.css +++ b/apps/contacts/css/styles.css @@ -3,9 +3,10 @@ #contacts_deletecard {position:absolute;top:15px;right:0;} #contacts_details_list { list-style:none; } +#contacts_details_list li { overflow:visible; } #contacts_details_list li p.contacts_property_name { width:25%; float:left;text-align:right;padding-right:0.3em;color:#666; } #contacts_details_list li p.contacts_property_data, #contacts_details_list li ul.contacts_property_data { width:72%;float:left; } -#contacts_addproperty_button, #contacts_setproperty_button { margin-left:25%; } +#contacts_setproperty_button { margin-left:25%; } .contacts_property_data ul, ol.contacts_property_data { list-style:none; } .contacts_property_data li { overflow: hidden; } diff --git a/apps/contacts/templates/part.details.php b/apps/contacts/templates/part.details.php index 5e9a5c56741..f6d69005a08 100644 --- a/apps/contacts/templates/part.details.php +++ b/apps/contacts/templates/part.details.php @@ -29,12 +29,12 @@ <select name="name" size="1"> <?php echo html_select_options($_['property_types'], 'EMAIL') ?> </select> + <br> + <input id="contacts_addproperty_button" type="submit" value="<?php echo $l->t('Add'); ?>"> </p> <p class="contacts_property_data" id="contacts_generic"> <input type="text" name="value" value=""> </p> - <br> - <input id="contacts_addproperty_button" type="submit" value="<?php echo $l->t('Add'); ?>"> </form> <div id="contacts_addcontactsparts" style="display:none;"> <ul class="contacts_property_data" id="contacts_addresspart"> diff --git a/apps/contacts/templates/part.setpropertyform.php b/apps/contacts/templates/part.setpropertyform.php index d31bde009a0..f216a55f5e9 100644 --- a/apps/contacts/templates/part.setpropertyform.php +++ b/apps/contacts/templates/part.setpropertyform.php @@ -42,8 +42,8 @@ <?php elseif($_['property']['name']=='TEL'): ?> <p class="contacts_property_name"><label for="tel"><?php echo $l->t('Phone'); ?></label></p> <p class="contacts_property_data"><input id="tel" type="phone" name="value" value="<?php echo $_['property']['value'] ?>"> - <select id="tel_type<?php echo $_['property']['checksum'] ?>" name="parameters[TYPE][]" multiple="multiple"> - <?php echo html_select_options($_['phone_types'], ($_['property']['parameters']['TYPE'])) ?> + <select id="tel_type<?php echo $_['property']['checksum'] ?>" name="parameters[TYPE][]" multiple="multiple" data-placeholder="<?php echo $l->t('Type') ?>"> + <?php echo html_select_options($_['phone_types'], isset($_['property']['parameters']['TYPE'])?$_['property']['parameters']['TYPE']:'') ?> </select></p> <?php elseif($_['property']['name']=='EMAIL'): ?> <p class="contacts_property_name"><label for="email"><?php echo $l->t('Email'); ?></label></p> |