Fix setproperty form

This commit is contained in:
Bart Visscher 2011-10-25 20:01:40 +02:00
parent abf33d32b9
commit 715e376cd2
1 changed files with 9 additions and 9 deletions

View File

@ -7,40 +7,40 @@
<ol class="contacts_property_data" id="contacts_addresspart"> <ol class="contacts_property_data" id="contacts_addresspart">
<li> <li>
<label for="adr_pobox"><?php echo $l->t('PO Box'); ?></label> <label for="adr_pobox"><?php echo $l->t('PO Box'); ?></label>
<input id="adr_pobox" type="text" name="value[0]" value=""> <input id="adr_pobox" type="text" name="value[0]" value="<?php echo $_['property']['value'][0] ?>">
</li> </li>
<li> <li>
<label for="adr_extended"><?php echo $l->t('Extended'); ?></label> <label for="adr_extended"><?php echo $l->t('Extended'); ?></label>
<input id="adr_extended" type="text" name="value[1]" value=""> <input id="adr_extended" type="text" name="value[1]" value="<?php echo $_['property']['value'][1] ?>">
</li> </li>
<li> <li>
<label for="adr_street"><?php echo $l->t('Street'); ?></label> <label for="adr_street"><?php echo $l->t('Street'); ?></label>
<input id="adr_street" type="text" name="value[2]" value=""> <input id="adr_street" type="text" name="value[2]" value="<?php echo $_['property']['value'][2] ?>">
</li> </li>
<li> <li>
<label for="adr_city"><?php echo $l->t('City'); ?></label> <label for="adr_city"><?php echo $l->t('City'); ?></label>
<input id="adr_city" type="text" name="value[3]" value=""> <input id="adr_city" type="text" name="value[3]" value="<?php echo $_['property']['value'][3] ?>">
</li> </li>
<li> <li>
<label for="adr_region"><?php echo $l->t('Region'); ?></label> <label for="adr_region"><?php echo $l->t('Region'); ?></label>
<input id="adr_region" type="text" name="value[4]" value=""> <input id="adr_region" type="text" name="value[4]" value="<?php echo $_['property']['value'][4] ?>">
</li> </li>
<li> <li>
<label for="adr_zipcode"><?php echo $l->t('Zipcode'); ?></label> <label for="adr_zipcode"><?php echo $l->t('Zipcode'); ?></label>
<input id="adr_zipcode" type="text" name="value[5]" value=""> <input id="adr_zipcode" type="text" name="value[5]" value="<?php echo $_['property']['value'][5] ?>">
</li> </li>
<li> <li>
<label for="adr_country"><?php echo $l->t('Country'); ?></label> <label for="adr_country"><?php echo $l->t('Country'); ?></label>
<input id="adr_country" type="text" name="value[6]" value=""> <input id="adr_country" type="text" name="value[6]" value="<?php echo $_['property']['value'][6] ?>">
</li> </li>
</ol> </ol>
<?php elseif($_['property']['name']=='TEL'): ?> <?php elseif($_['property']['name']=='TEL'): ?>
<p class="contacts_property_name"><label for="tel"><?php echo $l->t('Address'); ?></label></p> <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']; ?>"></p> <p class="contacts_property_data"><input id="tel" type="phone" name="value" value="<?php echo $_['property']['value']; ?>"></p>
<?php elseif($_['property']['name']=='EMAIL'): ?> <?php elseif($_['property']['name']=='EMAIL'): ?>
<p class="contacts_property_name"><label for="email"><?php echo $l->t('Email'); ?></label></p> <p class="contacts_property_name"><label for="email"><?php echo $l->t('Email'); ?></label></p>
<p class="contacts_property_data"><input id="email" type="text" name="value" value="<?php echo $_['property']['value']; ?>"></p> <p class="contacts_property_data"><input id="email" type="text" name="value" value="<?php echo $_['property']['value']; ?>"></p>
<?php elseif($_['property']['name']=='EMAIL'): ?> <?php elseif($_['property']['name']=='ORG'): ?>
<p class="contacts_property_name"><label for="org"><?php echo $l->t('Organization'); ?></label></p> <p class="contacts_property_name"><label for="org"><?php echo $l->t('Organization'); ?></label></p>
<p class="contacts_property_data"><input id="org" type="text" name="value" value="<?php echo $_['property']['value']; ?>"></p> <p class="contacts_property_data"><input id="org" type="text" name="value" value="<?php echo $_['property']['value']; ?>"></p>
<?php endif; ?> <?php endif; ?>