<div id="edit-account">
	<h1>{txt key=TEXT_EDIT_ACCOUNT}</h1>
	{$message}
	{form type=form name=edit_account action='dynamic' link_params='page_action=edit_customer' method=post conn=SSL}
	{form type=hidden name=action value=edit_account}
	{form type=hidden name=link_target value=customer}
	{form type=hidden name=password_required value=0}
	{form type=hidden name=privacy value=1}

    <fieldset>
        <legend>{txt key=TEXT_ACCOUNT_DATA}</legend>
        <div class="form-group">
            <label for="customers_email_address">{txt key=TEXT_EMAIL}*</label>
            {form id=customers_email_address type=email name=customers_email_address value=$customers_email_address readonly=true}
        </div>
        <div class="form-group">
            <!-- <label for="customers_email_address_confirm">{txt key=TEXT_EMAIL_CONFIRM}*</label> -->
            {form id=customers_email_address_confirm type=hidden name=customers_email_address_confirm value=$customers_email_address_confirm}
        </div>
        {if $show_company eq 1}
            {if $show_vat eq 1}
                <div class="form-group">
                    <label for="customers_vat_id">{txt key=TEXT_VAT_ID}</label>
                    {form id=customers_vat_id type=text name=customers_vat_id value=$customers_vat_id}
                </div>
            {/if}
        {/if}
        <div class="form-group">
            <label for="customers_default_language">{txt key=TEXT_DEFAULT_LANGUAGE}</label>
            {form class="form-control" params='id="customers_default_language"' type=select name=customers_default_language value=$lang_data default=$selected_lang}
        </div>
        <div class="form-group">
            <label for="customers_default_currency">{txt key=TEXT_DEFAULT_CURRENCY}</label>
            {form class="form-control" params='id="customers_default_currency"' type=select name=customers_default_currency value=$currency_data default=$selected_curr}
        </div>
    </fieldset>

    <fieldset>
        <legend>{txt key=TEXT_PASSWORD}</legend>
        <p class="info-text alert alert-info">{txt key=TEXT_PASSWORD_INFO}</p>
        <div class="form-group">
            <label for="customers_password_current">{txt key=TEXT_PASSWORD_CURRENT}</label>
            {form id=customers_password_current type=password name=customers_password_current}
        </div>
        <div class="form-group">
            <label for="customers_password">{txt key=TEXT_PASSWORD_ENTRY}</label>
            {form id=customers_password type=password name=customers_password value=$customers_password}
        </div>
        <div class="form-group">
            <label for="customers_password_confirm">{txt key=TEXT_PASSWORD_ENTRY_CONFIRM}</label>
            {form id=customers_password_confirm type=password name=customers_password_confirm value=$customers_password_confirm}
        </div>
    </fieldset>

    {hook key=edit_account_form}
    <p class="required pull-left">{txt key=TEXT_MUST}</p>

    <div class="form-submit pull-right text-right">
        <p>
            <a href="javascript:history.back();" class="button">{txt key=BUTTON_BACK}</a>
            <button type="submit" class="btn btn-primary">
                {txt key=BUTTON_NEXT}
            </button>
        </p>
    </div>

    <div class="clearfix"></div>

	{form type=formend}

</div><!-- #edit-account -->