Working :

- Add product attributes edit routing
- Add product attributes edit action
This commit is contained in:
mespeche
2013-09-06 17:23:06 +02:00
parent eebe1d4f58
commit 771d9e6322
3 changed files with 17 additions and 5 deletions

View File

@@ -113,14 +113,19 @@
<default key="_controller">Thelia\Controller\Admin\CurrencyController::deleteAction</default> <default key="_controller">Thelia\Controller\Admin\CurrencyController::deleteAction</default>
</route> </route>
<route id="admin.configuration.attribute" path="/admin/configuration/product_attributes"> <route id="admin.configuration.currencies.update-position" path="/admin/configuration/currencies/update-position">
<default key="_controller">Thelia\Controller\Admin\AttributeController::defaultAction</default> <default key="_controller">Thelia\Controller\Admin\CurrencyController::updatePositionAction</default>
</route> </route>
<!-- attribute and feature routes management --> <!-- attribute and feature routes management -->
<route id="admin.configuration.currencies.update-position" path="/admin/configuration/product_attributes">
<default key="_controller">Thelia\Controller\Admin\CurrencyController::updatePositionAction</default> <route id="admin.configuration.attribute" path="/admin/configuration/product_attributes">
<default key="_controller">Thelia\Controller\Admin\AttributeController::defaultAction</default>
</route>
<route id="admin.configuration.attribute.edit" path="/admin/configuration/product_attributes/update">
<default key="_controller">Thelia\Controller\Admin\AttributeController::updateAction</default>
</route> </route>

View File

@@ -43,7 +43,7 @@ use Thelia\Form\MessageCreationForm;
class AttributeController extends BaseAdminController class AttributeController extends BaseAdminController
{ {
/** /**
* The default action is displaying the messages list. * The default action is displaying the attributes list.
* *
* @return Symfony\Component\HttpFoundation\Response the response * @return Symfony\Component\HttpFoundation\Response the response
*/ */
@@ -54,4 +54,10 @@ class AttributeController extends BaseAdminController
return $this->render('product-attributes'); return $this->render('product-attributes');
} }
public function updateAction() {
if (null !== $response = $this->checkAuth("admin.configuration.attributes.update")) return $response;
return $this->render('product-attributes-edit');
}
} }

View File

@@ -0,0 +1 @@
test