+--------------------------------------------------------------------+
*}
{if !empty($form.address.$blockId.street_address)}
- <tr id="streetAddress_{$blockId}">
- <td colspan="2">
- {$form.address.$blockId.street_address.label} {help id="id-street-address" file="CRM/Contact/Form/Contact.hlp"}<br />
- {$form.address.$blockId.street_address.html}
- {if $parseStreetAddress eq 1 && $action eq 2}
- <a href="#" title="{ts}Edit Address Elements{/ts}" onClick="processAddressFields( 'addressElements' , '{$blockId}', 1 );return false;">{ts}Edit Address Elements{/ts}</a>
- {help id="id-edit-street-elements" file="CRM/Contact/Form/Contact.hlp"}
- {/if}
- </td>
- </tr>
+ <tr id="streetAddress_{$blockId}">
+ <td colspan="2">
+ {$form.address.$blockId.street_address.label} {help id="id-street-address" file="CRM/Contact/Form/Contact.hlp"}<br />
+ {$form.address.$blockId.street_address.html}
+ {if $parseStreetAddress eq 1 && ($action eq 1 || $action eq 2)}
+ <a href="#" title="{ts}Edit Address Elements{/ts}" onClick="processAddressFields( 'addressElements' , '{$blockId}', 1 );return false;">{ts}Edit Address Elements{/ts}</a>
+ {help id="id-edit-street-elements" file="CRM/Contact/Form/Contact.hlp"}
+ {/if}
+ </td>
+ </tr>
- {if $parseStreetAddress eq 1 && $action eq 2}
- <tr id="addressElements_{$blockId}" class=hiddenElement>
- <td>
- {$form.address.$blockId.street_number.label}<br />
- {$form.address.$blockId.street_number.html}
- </td>
+ {if $parseStreetAddress eq 1 && ($action eq 1 || $action eq 2)}
+ <tr id="addressElements_{$blockId}" class=hiddenElement>
+ <td>
+ {$form.address.$blockId.street_number.label}<br />
+ {$form.address.$blockId.street_number.html}
+ </td>
- <td>
- {$form.address.$blockId.street_name.label}<br />
- {$form.address.$blockId.street_name.html}<br />
- </td>
+ <td>
+ {$form.address.$blockId.street_name.label}<br />
+ {$form.address.$blockId.street_name.html}<br />
+ </td>
- <td colspan="2">
- {$form.address.$blockId.street_unit.label}<br />
- {$form.address.$blockId.street_unit.html}
- <a href="#" title="{ts}Edit Street Address{/ts}" onClick="processAddressFields( 'streetAddress', '{$blockId}', 1 );return false;">{ts}Edit Complete Street Address{/ts}</a>
- {help id="id-edit-complete-street" file="CRM/Contact/Form/Contact.hlp"}
- </td>
- </tr>
- {/if}
+ <td colspan="2">
+ {$form.address.$blockId.street_unit.label}<br />
+ {$form.address.$blockId.street_unit.html}
+ <a href="#" title="{ts}Edit Street Address{/ts}" onClick="processAddressFields( 'streetAddress', '{$blockId}', 1 );return false;">{ts}Edit Complete Street Address{/ts}</a>
+ {help id="id-edit-complete-street" file="CRM/Contact/Form/Contact.hlp"}
+ </td>
+ </tr>
+ {/if}
{if $parseStreetAddress eq 1}
{literal}