{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}

{intl l='Shipping configuration'}
{intl l="Delivery module"} | {intl l="Shipping zones for this module"} {hook name="shipping-zones.table-header" location="shipping_zones_table_header" } | {intl l="Actions"}
--- | --- | ---
{loop type="module" module_type="2" active="*" name="delivery.list" backend_context="1"}
{$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} {hook name="shipping-zones.table-row" location="shipping_zones_table_row" module_id={$ID} } | {loop type="auth" name="can_change" role="ADMIN" resource="admin.configuration.shipping-zone" access="UPDATE"} {/loop}
{/loop} {elseloop rel="delivery.list"}
{intl l="No shipping zone defined yet. Click the + button to create one."}
{/elseloop}

{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}