summaryrefslogtreecommitdiffstats
path: root/apps/contacts/templates/part.property.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/contacts/templates/part.property.php')
-rw-r--r--apps/contacts/templates/part.property.php36
1 files changed, 22 insertions, 14 deletions
diff --git a/apps/contacts/templates/part.property.php b/apps/contacts/templates/part.property.php
index 1a4266b3a2b..1611e54b65f 100644
--- a/apps/contacts/templates/part.property.php
+++ b/apps/contacts/templates/part.property.php
@@ -1,40 +1,48 @@
-<div class="contacts_property" x-line="<?php echo $_['property']['line']; ?>" x-checksum="<?php echo $_['property']['checksum']; ?>">
+<div class="contacts_property" data-checksum="<?php echo $_['property']['checksum']; ?>">
<?php if($_['property']['name'] == 'FN'): ?>
<div class="contacts_propertyname"><?php echo $l->t('Name'); ?></div>
<div class="contacts_propertyvalue">
- <span style="display:none;" x-use="edit"><img src="../../core/img/actions/rename.png"></span>
<?php echo $_['property']['value']; ?>
+ <span style="display:none;" data-use="edit"><img src="../../core/img/actions/rename.png"></span>
</div>
<?php elseif($_['property']['name'] == 'BDAY'): ?>
<div class="contacts_propertyname"><?php echo $l->t('Birthday'); ?></div>
<div class="contacts_propertyvalue">
<?php echo $l->l('date',new DateTime($_['property']['value'])); ?>
- <span style="display:none;" x-use="edit"><img src="../../core/img/actions/rename.png"></span>
- <span style="display:none;" x-use="delete"><img src="../../core/img/actions/delete.png"></span>
+ <span style="display:none;" data-use="delete"><img src="../../core/img/actions/delete.png"></span>
</div>
<?php elseif($_['property']['name'] == 'ORG'): ?>
<div class="contacts_propertyname"><?php echo $l->t('Organisation'); ?></div>
<div class="contacts_propertyvalue">
<?php echo $_['property']['value']; ?>
- <span style="display:none;" x-use="edit"><img src="../../core/img/actions/rename.png"></span>
- <span style="display:none;" x-use="delete"><img src="../../core/img/actions/delete.png"></span>
+ <span style="display:none;" data-use="edit"><img src="../../core/img/actions/rename.png"></span>
+ <span style="display:none;" data-use="delete"><img src="../../core/img/actions/delete.png"></span>
</div>
<?php elseif($_['property']['name'] == 'EMAIL'): ?>
<div class="contacts_propertyname"><?php echo $l->t('Email'); ?></div>
<div class="contacts_propertyvalue">
<?php echo $_['property']['value']; ?>
- <span style="display:none;" x-use="edit"><img src="../../core/img/actions/rename.png"></span>
- <span style="display:none;" x-use="delete"><img src="../../core/img/actions/delete.png"></span>
+ <span style="display:none;" data-use="edit"><img src="../../core/img/actions/rename.png"></span>
+ <span style="display:none;" data-use="delete"><img src="../../core/img/actions/delete.png"></span>
</div>
<?php elseif($_['property']['name'] == 'TEL'): ?>
- <div class="contacts_propertyname"><?php echo $l->t('Telefon'); ?></div>
+ <div class="contacts_propertyname"><?php echo $l->t('Telephone'); ?></div>
<div class="contacts_propertyvalue">
<?php echo $_['property']['value']; ?>
- <span style="display:none;" x-use="edit"><img src="../../core/img/actions/rename.png"></span>
- <span style="display:none;" x-use="delete"><img src="../../core/img/actions/delete.png"></span>
+ <?php if(isset($_['property']['parameters']['TYPE'])): ?>
+ (<?php echo $l->t('tel_'.strtolower($_['property']['parameters']['TYPE'])); ?>)
+ <?php endif; ?>
+ <span style="display:none;" data-use="edit"><img src="../../core/img/actions/rename.png"></span>
+ <span style="display:none;" data-use="delete"><img src="../../core/img/actions/delete.png"></span>
</div>
<?php elseif($_['property']['name'] == 'ADR'): ?>
- <div class="contacts_propertyname"><?php echo $l->t('Address'); ?></div>
+ <div class="contacts_propertyname">
+ <?php echo $l->t('Address'); ?>
+ <?php if(isset($_['property']['parameters']['TYPE'])): ?>
+ <br>
+ (<?php echo $l->t('adr_'.strtolower($_['property']['parameters']['TYPE'])); ?>)
+ <?php endif; ?>
+ </div>
<div class="contacts_propertyvalue">
<?php echo $l->t('PO Box'); ?> <?php echo $_['property']['value'][0]; ?><br>
<?php echo $l->t('Extended Address'); ?> <?php echo $_['property']['value'][1]; ?><br>
@@ -43,8 +51,8 @@
<?php echo $l->t('Region'); ?> <?php echo $_['property']['value'][4]; ?><br>
<?php echo $l->t('Postal Code'); ?> <?php echo $_['property']['value'][5]; ?><br>
<?php echo $l->t('Country'); ?> <?php echo $_['property']['value'][6]; ?>
- <span style="display:none;" x-use="edit"><img src="../../core/img/actions/rename.png"></span>
- <span style="display:none;" x-use="delete"><img src="../../core/img/actions/delete.png"></span>
+ <span style="display:none;" data-use="edit"><img src="../../core/img/actions/rename.png"></span>
+ <span style="display:none;" data-use="delete"><img src="../../core/img/actions/delete.png"></span>
</div>
<?php endif; ?>
</div>