{extends file="admin-layout.tpl"} {block name="page-title"}{intl l='Edit a customer'}{/block} {block name="check-permissions"}admin.customer.edit{/block} {block name="main-content"}
{loop name="customer_edit" type="customer" current="false" id="$customer_id" backend_context="1" lang="$edit_language_id"}
{intl l="Edit customer $FIRSTNAME $LASTNAME"}
{form name="thelia.customer.modification"}
{* Be sure to get the customer ID, even if the form could not be validated *} {include file="includes/inner-form-toolbar.html"} {form_hidden_fields form=$form} {form_field form=$form field='success_url'} {/form_field} {if $form_error}
{$form_error_message}
{/if}
{form_field form=$form field='title'}
{/form_field} {form_field form=$form field='firstname'}
{/form_field} {form_field form=$form field='lastname'}
{/form_field}
{loop name="address" type="address" customer="$customer_id" backend_context="1"} {form_field form=$form field='address1'}
{/form_field} {form_field form=$form field='address2'}
{/form_field} {form_field form=$form field='address3'}
{/form_field} {form_field form=$form field='zipcode'}
{/form_field} {form_field form=$form field='city'}
{/form_field} {form_field form=$form field='country'}
{/form_field} {/loop}
{/form}
{/loop} {elseloop rel="customer_edit"}
{intl l="Sorry, customer ID=$customer_id was not found."}
{/elseloop}
{/block}