{txt key=TEXT_EDIT_ADDRESS}

{form type=form name=edit_address action='dynamic' link_params='page_action=edit_address' method=post conn=SSL} {form type=hidden name=action value=edit_address} {if $address_book_id}{form type=hidden name=address_book_id value=$address_book_id}{/if} {$message} {hook key=account_tpl_edit_address_center}
{txt key=TEXT_PERSONAL} {if $show_gender eq 1}
{form class="form-control" type=select name=customers_gender value=$gender_data default=$customers_gender}
{/if} {if $show_company eq 1}
{form id=customers_company type=text name=customers_company value=$customers_company}
{form id=customers_company_2 type=text name=customers_company_2 value=$customers_company_2}
{form id=customers_company_3 type=text name=customers_company_3 value=$customers_company_3}
{/if} {if $show_title eq 1} {$title_dd = false} {if is_array($title_data) && count($title_data)>0}{$title_dd = true}{/if}
{if $title_dd} {/if} {/if}
{form id=customers_firstname type=text name=customers_firstname value=$customers_firstname}
{form id=customers_lastname type=text name=customers_lastname value=$customers_lastname}
{if $show_birthdate eq 1}
{form id=customers_dob type=text name=customers_dob value=$customers_dob}
{/if}
{txt key=TEXT_ADDRESS} {hook key=account_tpl_edit_address_address_top}
{form id=customers_street_address type=text name=customers_street_address value=$customers_street_address}
{form id=customers_address_addition type=text name=customers_address_addition value=$customers_address_addition}
{if $show_suburb eq 1}
{form id=customers_suburb type=text name=customers_suburb value=$customers_suburb}
{/if}
{form id=customers_postcode type=text name=customers_postcode value=$customers_postcode}
{form id=customers_city type=text name=customers_city value=$customers_city}
{form type=select name=customers_country_code value=$country_data default=$selected_country}
{if $show_federal_states eq 1}
{foreach item='country' from=$country_data} {if $country.federal_states} {/if} {/foreach}
{/if} {if $show_state eq 1}
{form type=select name=customers_zone_code value=$customers_zone_code default=$selected_zone}
{/if} {if $show_county eq 1}
{$INPUT_COUNTY}
{/if} {hook key=account_tpl_edit_address_address_bottom}
{txt key=TEXT_CONTACT}
{form id=customers_phone type=text name=customers_phone value=$customers_phone}
{form id=customers_mobile_phone type=text name=customers_mobile_phone value=$customers_mobile_phone}
{form id=customers_fax type=text name=customers_fax value=$customers_fax}
{if $adType} {form type=hidden name=address_class value=$adType} {form type=hidden name=adType value=$adType} {else}
{form id=old_address_class type=hidden name=old_address_class value=$old_address_class} {form class="form-control" type=select name=address_class value=$address_type default=$address_class}
{/if}

{txt key=TEXT_MUST}

{if $adType eq 'shipping'} {txt key=BUTTON_BACK} {/if} {if $adType eq 'payment'} {txt key=BUTTON_BACK} {/if} {if !$adType} {txt key=BUTTON_BACK} {/if}

{form type=formend} {literal} {/literal}