Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Wigen <alex@wigen.net>2011-09-09 17:54:29 +0400
committerAlexander Wigen <awigen@editshare.com.au>2011-09-11 14:52:40 +0400
commit72aa1bf75c0b1ca6c02e912f9095eb07b18b1649 (patch)
tree9870cce3cfa0a932474f976312c167ae71ee000e /apps/contacts
parent647fab07c76840fba282705dac2fe4b61922e2f7 (diff)
Only show used address attributes in contact view
Diffstat (limited to 'apps/contacts')
-rw-r--r--apps/contacts/templates/part.property.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/contacts/templates/part.property.php b/apps/contacts/templates/part.property.php
index 9e2a5cabad4..d0d2b773ef3 100644
--- a/apps/contacts/templates/part.property.php
+++ b/apps/contacts/templates/part.property.php
@@ -44,13 +44,27 @@
<?php endif; ?>
</td>
<td class="contacts_details_right">
+ <?php if(!empty($_['property']['value'][0])): ?>
<?php echo $l->t('PO Box'); ?> <?php echo $_['property']['value'][0]; ?><br>
+ <?php endif; ?>
+ <?php if(!empty($_['property']['value'][1])): ?>
<?php echo $l->t('Extended Address'); ?> <?php echo $_['property']['value'][1]; ?><br>
+ <?php endif; ?>
+ <?php if(!empty($_['property']['value'][2])): ?>
<?php echo $l->t('Street Name'); ?> <?php echo $_['property']['value'][2]; ?><br>
+ <?php endif; ?>
+ <?php if(!empty($_['property']['value'][3])): ?>
<?php echo $l->t('City'); ?> <?php echo $_['property']['value'][3]; ?><br>
+ <?php endif; ?>
+ <?php if(!empty($_['property']['value'][4])): ?>
<?php echo $l->t('Region'); ?> <?php echo $_['property']['value'][4]; ?><br>
+ <?php endif; ?>
+ <?php if(!empty($_['property']['value'][5])): ?>
<?php echo $l->t('Postal Code'); ?> <?php echo $_['property']['value'][5]; ?><br>
+ <?php endif; ?>
+ <?php if(!empty($_['property']['value'][6])): ?>
<?php echo $l->t('Country'); ?> <?php echo $_['property']['value'][6]; ?>
+ <?php endif; ?>
<span style="display:none;" data-use="edit"><img class="svg action" src="<?php echo image_path('', 'actions/rename.svg'); ?>" /></span>
<span style="display:none;" data-use="delete"><img class="svg action" src="<?php echo image_path('', 'actions/delete.svg'); ?>" /></span>
</td>