{extends file="admin-layout.tpl"} {block name="no-return-functions"} {$admin_current_location = 'configuration'} {/block} {block name="page-title"}{intl l='Edit a system variable'}{/block} {block name="check-resource"}admin.configuration.variable{/block} {block name="check-access"}update{/block} {block name="main-content"}
{loop name="config_edit" type="config" hidden="*" id="$variable_id" backend_context="1" lang="$edit_language_id"}
{hook name="variables-edit.top" variable_id=$variable_id}
{intl l="Edit variable %name" name={$NAME}}
{form name="thelia.admin.config.modification"}
{* Be sure to get the variable ID, even if the form could not be validated *} {include file="includes/inner-form-toolbar.html" close_url="{url path='/admin/configuration/variables'}"} {form_hidden_fields} {form_field field='success_url'} {/form_field} {* We do not allow creation of hidden variables *} {form_field field='id'} {/form_field} {form_field field='hidden'} {/form_field} {form_field field='locale'} {/form_field} {if $form_error}
{$form_error_message}
{/if} {form_field field='name'}
{$label} :
{/form_field} {form_field field='value'}
{$label} :
{/form_field} {form_field field='secured'}
{$label}
{/form_field} {include file="includes/standard-description-form-fields.html"}

{intl l='Variable created on %date_create. Last modification: %date_change' date_create="{format_date date=$CREATE_DATE}" date_change="{format_date date=$UPDATE_DATE}"}

{/form}
{hook name="variables-edit.bottom" variable_id=$variable_id} {/loop} {elseloop rel="config_edit"}
{intl l="Sorry, variable ID=%id was not found." id={$variable_id}}
{/elseloop}
{/block} {block name="javascript-last-call"} {hook name="variable.edit-js" location="variable-edit-js" } {hook name="wysiwyg.js" location="wysiwyg-variable-edit-js" } {/block}