{extends file="admin-layout.tpl"} {block name="no-return-functions"} {$admin_current_location = 'configuration'} {/block} {block name="page-title"}{intl l='Edit a currency'}{/block} {block name="check-resource"}admin.configuration.currency{/block} {block name="check-access"}update{/block} {block name="main-content"}
{loop name="currency_edit" type="currency" id="$currency_id" backend_context="1" visible="*" lang="$edit_language_id"}
{hook name="currency-edit.top" currency_id=$currency_id}
{intl l='Edit currency "%name"' name={$NAME}}
{form name="thelia.admin.currency.modification"} {* Be sure to get the currency ID, even if the form could not be validated *} {include file="includes/inner-form-toolbar.html" close_url="{url path='/admin/configuration/currencies'}"} {form_hidden_fields} {form_field field='success_url'} {/form_field} {form_field field='locale'} {/form_field} {if $form_error}
{$form_error_message}
{/if}
{render_form_field field='name'} {form_field field='code'}
{$label}{if $required} *{/if} {$label_attr.help}
{/form_field}
{render_form_field field='symbol'} {form_field field='format'}
{$label}{if $required} *{/if} {$label_attr.help}
{/form_field} {render_form_field field='rate'}
{/form}
{hook name="currency-edit.bottom" currency_id=$currency_id} {/loop} {elseloop rel="currency_edit"}
{intl l="Sorry, currency ID=%id was not found." id={$currency_id}}
{/elseloop}
{/block} {block name="javascript-last-call"} {hook name="currency.edit-js" location="currency-edit-js" currency_id={$currency_id} } {/block}