diff --git a/core/lib/Thelia/Config/Resources/routing/admin.xml b/core/lib/Thelia/Config/Resources/routing/admin.xml index 50b622451..af7b7e445 100755 --- a/core/lib/Thelia/Config/Resources/routing/admin.xml +++ b/core/lib/Thelia/Config/Resources/routing/admin.xml @@ -405,17 +405,26 @@ - + Thelia\Controller\Admin\ShippingZoneController::indexAction - - Thelia\Controller\Admin\ShippingZoneController::createAction + + Thelia\Controller\Admin\ShippingZoneController::updateAction + \d+ - - Thelia\Controller\Admin\ShippingZoneController::updateAction - \d+ + + + + + + Thelia\Controller\Admin\ShippingConfigurationController::indexAction + + + + Thelia\Controller\Admin\ShippingConfigurationController::updateAction + \d+ diff --git a/core/lib/Thelia/Controller/Admin/ShippingConfigurationController.php b/core/lib/Thelia/Controller/Admin/ShippingConfigurationController.php new file mode 100644 index 000000000..71aa0ba2f --- /dev/null +++ b/core/lib/Thelia/Controller/Admin/ShippingConfigurationController.php @@ -0,0 +1,46 @@ +. */ +/* */ +/*************************************************************************************/ + +namespace Thelia\Controller\Admin; + +/** + * Class ShippingConfigurationController + * @package Thelia\Controller\Admin + * @author Manuel Raynaud + */ +class ShippingConfigurationController extends BaseAdminController +{ + public function indexAction() + { + if (null !== $response = $this->checkAuth("admin.shipping-configuration.view")) return $response; + return $this->render("shipping-configuration", array("display_shipping_configuration" => 20)); + } + + public function updateAction($shipping_configuration_id) + { + + return $this->render("shipping-configuration-edit", array( + "shipping_configuration_id" => $shipping_configuration_id + )); + } +} \ No newline at end of file diff --git a/core/lib/Thelia/Controller/Admin/ShippingZoneController.php b/core/lib/Thelia/Controller/Admin/ShippingZoneController.php index 8be799a73..ee34d11bd 100644 --- a/core/lib/Thelia/Controller/Admin/ShippingZoneController.php +++ b/core/lib/Thelia/Controller/Admin/ShippingZoneController.php @@ -24,7 +24,7 @@ namespace Thelia\Controller\Admin; /** - * Class FolderController + * Class ShippingZoneController * @package Thelia\Controller\Admin * @author Manuel Raynaud */ diff --git a/templates/admin/default/shipping-configuration.html b/templates/admin/default/shipping-configuration.html new file mode 100644 index 000000000..e69de29bb diff --git a/templates/admin/default/shipping-zones.html b/templates/admin/default/shipping-zones.html index 7d9af91fe..9cb7fbc59 100644 --- a/templates/admin/default/shipping-zones.html +++ b/templates/admin/default/shipping-zones.html @@ -44,7 +44,7 @@ {if ! $SECURED}
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.shipping-zones.change"} - + {/loop}
{else} @@ -61,7 +61,7 @@ {if ! $SECURED}
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.shipping-zones.change"} - + {/loop}
{else} @@ -78,7 +78,7 @@ {if ! $SECURED}
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.shipping-zones.change"} - + {/loop}
{else} @@ -113,7 +113,7 @@ dialog_title = {intl l="Delete shipping zone"} dialog_message = {intl l="Do you really want to delete this shipping zone ?"} - form_action = {url path='/admin/configuration/shipping-zones/delete'} + form_action = {url path='/admin/configuration/shipping_zones/delete'} form_content = {$smarty.capture.delete_dialog nofilter} } {/block} \ No newline at end of file