{extends file="admin-layout.tpl"} {block name="no-return-functions"} {$admin_current_location = 'configuration'} {/block} {block name="page-title"}{intl l='Thelia Shipping zones'}{/block} {block name="check-resource"}admin.configuration.shipping-zone{/block} {block name="check-access"}view{/block} {block name="main-content"}
{hook name="shipping-zones.top" location="shipping_zones_top" }
{ifloop rel="area-not-attached"}
{intl l='Warning, some of your shipping zones are not attached to any delivery module:'} {loop name="area-not-attached" type="area" unassigned=true} {$NAME}{if $LOOP_COUNT < $LOOP_TOTAL},{else}.{/if} {/loop}
{/ifloop}
{hook name="shipping-zones.table-header" location="shipping_zones_table_header" } {loop type="module" module_type="2" active="*" name="delivery.list" backend_context="1" order="code"} {hook name="shipping-zones.table-row" location="shipping_zones_table_row" module_id={$ID} } {/loop} {elseloop rel="delivery.list"} {/elseloop}
{intl l='Shipping configuration'}
{intl l="Delivery module"} {intl l="Shipping zones for this module"}{intl l="Actions"}
{$CODE} - {$TITLE} {loop name="area.module.associated" type="area" with_zone=$ID backend_context="1"} {$countries = ''} {loop name="country-area" type="country" area=$ID backend_context="1" visible="*"} {$countries = "$countries, $TITLE"} {/loop} {$countries = ltrim($countries, ', ')} {$NAME}{if $LOOP_COUNT < $LOOP_TOTAL},{/if} {/loop} {elseloop rel="area.module.associated"} {intl l="There are no shipping zones attached to this module."} {/elseloop} {include file='renderer/buttons.html' buttons=[ [ 'type' => 'edit', 'class' => 'shipping-zones-change', 'title' => {intl l='Change this shipping zone'}, 'href' => {url path="/admin/configuration/shipping_zones/update/%id" id=$ID}, 'auth' => ['resource' => 'admin.configuration.shipping-zone'] ] ]}
{intl l="No shipping zone defined yet. Click the + button to create one."}
{hook name="shipping-zones.bottom" location="shipping_zones_bottom" }
{/block} {block name="javascript-last-call"} {hook name="shipping-zones.js" location="shipping-zones-js" } {/block}