{extends file="admin-layout.tpl"} {block name="page-title"}{intl l='Currencies'}{/block} {block name="check-permissions"}admin.configuration.currencies.view{/block} {block name="main-content"}
{module_include location='currencies_top'}
{module_include location='currencies_table_header'} {loop name="currencies" type="currency" backend_context="1" lang=$lang_id order=$order} {module_include location='currencies_table_row'} {/loop} {elseloop rel="currencies"} {/elseloop}
{intl l='Currencies'} {loop type="auth" name="can_create" roles="ADMIN" permissions="admin.configuration.currencies.create"} {/loop}
{admin_sortable_header current_order=$order order='id' reverse_order='id_reverse' path='/admin/configuration/currencies' label="{intl l='ID'}" } {admin_sortable_header current_order=$order order='name' reverse_order='name_reverse' path='/admin/configuration/currencies' label="{intl l='Name'}" } {admin_sortable_header current_order=$order order='code' reverse_order='code_reverse' path='/admin/configuration/currencies' label="{intl l="ISO 4217 Code"}" } {admin_sortable_header current_order=$order order='symbol' reverse_order='symbol_reverse' path='/admin/configuration/currencies' label="{intl l="Symbol"}" } {admin_sortable_header current_order=$order order='rate' reverse_order='rate_reverse' path='/admin/configuration/currencies' label="{intl l="Rate in €"}" } {admin_sortable_header current_order=$order order='manual' reverse_order='manual_reverse' path='/admin/configuration/currencies' label="{intl l="Position"}" } {admin_sortable_header current_order=$order order='is_default' reverse_order='is_default_reverse' path='/admin/configuration/currencies' label="{intl l="Default"}" } {intl l='Actions'}
{$ID} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.currencies.change"} {$NAME} {/loop} {elseloop rel="can_change"} {$NAME} {/elseloop} {$ISOCODE} {$SYMBOL} {format_number number="$RATE" decimals="4"} {admin_position_block permission="admin.currencies.edit" path="/admin/configuration/currencies/update-position" url_parameter="currency_id" in_place_edit_class="currencyPositionChange" position="$POSITION" id="$ID" }
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.currencies.change"} {/loop} {loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.configuration.currencies.delete"} {/loop}
{intl l="No currency has been created yet. Click the + button to create one."}
{module_include location='currencies_bottom'}
{* Adding a new currency *} {form name="thelia.admin.currency.creation"} {* Capture the dialog body, to pass it to the generic dialog *} {capture "creation_dialog"} {form_hidden_fields form=$form} {form_field form=$form field='success_url'} {* on success, redirect to the edition page, _ID_ is replaced with the created currency ID, see controller *} {/form_field} {form_field form=$form field='name'}
{loop type="lang" name="default-lang" default_only="1"}
{intl l=$TITLE}
{intl l="Enter here the currency name in the default language ($TITLE)"}
{* Switch edition to the current locale *} {form_field form=$form field='locale'} {/form_field} {/loop}
{/form_field} {form_field form=$form field='code'}
{intl l='More information about ISO 4217'}
{/form_field} {form_field form=$form field='symbol'}
{/form_field} {form_field form=$form field='rate'}
{intl l="The rate from Euro (Price in Euro * rate = Price in this currency)"}
{/form_field} {/capture} {include file = "includes/generic-create-dialog.html" dialog_id = "creation_dialog" dialog_title = {intl l="Create a new currency"} dialog_body = {$smarty.capture.creation_dialog nofilter} dialog_ok_label = {intl l="Create this currency"} form_action = {url path='/admin/configuration/currencies/create'} form_enctype = {form_enctype form=$form} form_error_message = $form_error_message } {/form} {* Delete confirmation dialog *} {capture "delete_dialog"} {/capture} {include file = "includes/generic-confirm-dialog.html" dialog_id = "delete_dialog" dialog_title = {intl l="Delete currency"} dialog_message = {intl l="Do you really want to delete this currency ?"} form_action = {url path='/admin/configuration/currencies/delete'} form_content = {$smarty.capture.delete_dialog nofilter} } {/block} {block name="javascript-initialization"} {javascripts file='assets/js/bootstrap-switch/bootstrap-switch.js'} {/javascripts} {javascripts file='assets/js/bootstrap-editable/bootstrap-editable.js'} {/javascripts} {/block}