{extends file="admin-layout.tpl"} {block name="no-return-functions"} {$admin_current_location = 'configuration'} {/block} {block name="page-title"}{intl l='Edit a shipping zone'}{/block} {block name="check-resource"}admin.configuration.shipping-zone{/block} {block name="check-access"}update{/block} {block name="main-content"}
{loop type="module" id="$delivery_module_id" active="*" name="module.name" backend_context="1"}
{hook name="shipping-zones-edit.top" delivery_module_id=$delivery_module_id}
{intl l='Shipping configuration of delivery module "%title"' title={$TITLE}}
{intl l='Close'}
{ifloop rel="area.module.not_associated"} {form name="thelia.shipping_zone_area"} {form_hidden_fields} {form_field field='success_url'} {* the url the user is redirected to on login success *} {/form_field} {form_field field='shipping_zone_id'} {/form_field} {form_field field='area_id'} {$label}
{/form_field} {/form} {/ifloop} {elseloop rel="area.module.not_associated"}
{intl l="This delivery module handles all shipping zones."}
{/elseloop}

{intl l="Shipping zone"} | {intl l="Actions"}
--- | ---
{loop type="area" name="area.module.associated" with_zone=$delivery_module_id}
{$NAME} |
{/loop} {elseloop rel="area.module.associated"}
{intl l="There are no shipping zones attached to this module."}
{/elseloop}

{hook name="shipping-zones-edit.bottom" delivery_module_id=$delivery_module_id} {/loop}
{* Delete related content confirmation dialog *} {capture "delete_zone_dialog"} {form name="thelia.shopping_zone_remove_area"} {form_hidden_fields} {form_field field='success_url'} {* the url the user is redirected to on login success *} {/form_field} {form_field field='shipping_zone_id'} {/form_field} {form_field field='area_id'} {/form_field} {hook name="zone.delete-form" location="zone_delete_form" module_id={$delivery_module_id} } {/form} {/capture} {include file = "includes/generic-confirm-dialog.html" dialog_id = "delete_zone_dialog" dialog_title = {intl l="Remove zone"} dialog_message = {intl l="Do you really want to remove this zone ?"} form_action = {url path='/admin/configuration/shipping_zones/area/remove'} form_content = {$smarty.capture.delete_zone_dialog nofilter} } {/block} {block name="javascript-initialization"} {javascripts file='assets/js/bootstrap-select/bootstrap-select.js'}
{/javascripts}
{/block} {block name="javascript-last-call"} {hook name="shipping-zones.edit-js" location="shipping-zones-edit-js" module_id={$delivery_module_id} } {/block}