{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"}
{module_include 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}
{module_include location='shipping_zones_table_header'} {loop type="module" module_type="2" active="*" name="delivery.list" backend_context="1"} {module_include location='shipping_zones_table_row'} {/loop}
{intl l='Shipping zones'}
{intl l="Delivery module"} {intl l="Shipping zones for this module"}{intl l="Actions"}
{$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"} {$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}
{loop type="auth" name="can_change" role="ADMIN" resource="admin.configuration.shipping-zone" access="UPDATE"} {/loop}
{module_include location='shipping_zones_bottom'}
{/block} {block name="javascript-last-call"} {module_include location='shipping-zones-js'} {/block}