# This file is part of the Sylius package.
# (c) Paweł Jędrzejewski

sylius_backend_taxonomy_index:
    path: /
    methods: [GET]
    defaults:
        _controller: sylius.controller.taxonomy:indexAction
        _sylius:
            template: SyliusWebBundle:Backend/Taxonomy:index.html.twig
            sortable: true
            paginate: 50

sylius_backend_taxonomy_create:
    path: /new
    methods: [GET, POST]
    defaults:
        _controller: sylius.controller.taxonomy:createAction
        _sylius:
            template: SyliusWebBundle:Backend/Taxonomy:create.html.twig
            redirect: sylius_backend_taxonomy_show

sylius_backend_taxonomy_update:
    path: /{id}/edit
    methods: [GET, PUT]
    defaults:
        _controller: sylius.controller.taxonomy:updateAction
        _sylius:
            template: SyliusWebBundle:Backend/Taxonomy:update.html.twig
            redirect: sylius_backend_taxonomy_show

sylius_backend_taxonomy_delete:
    path: /{id}
    methods: [DELETE]
    defaults:
        _controller: sylius.controller.taxonomy:deleteAction
        _sylius:
            template: SyliusWebBundle:Backend/Misc:delete.html.twig
            redirect: sylius_backend_taxonomy_index

sylius_backend_taxonomy_show:
    path: /{id}
    methods: [GET]
    defaults:
        _controller: sylius.controller.taxonomy:showAction
        _sylius:
            template: SyliusWebBundle:Backend/Taxonomy:show.html.twig

# This file is part of the Sylius package.
# (c) Paweł Jędrzejewski

sylius_backend_taxonomy_index:
    path: /
    methods: [GET]
    defaults:
        _controller: sylius.controller.taxonomy:indexAction
        _sylius:
            template: SyliusWebBundle:Backend/Taxonomy:index.html.twig
            sortable: true
            paginate: 50
            sorting:
                name: asc

sylius_backend_taxonomy_create:
    path: /new
    methods: [GET, POST]
    defaults:
        _controller: sylius.controller.taxonomy:createAction
        _sylius:
            template: SyliusWebBundle:Backend/Taxonomy:create.html.twig
            redirect: sylius_backend_taxonomy_show

sylius_backend_taxonomy_update:
    path: /{id}/edit
    methods: [GET, PUT]
    defaults:
        _controller: sylius.controller.taxonomy:updateAction
        _sylius:
            template: SyliusWebBundle:Backend/Taxonomy:update.html.twig
            redirect: sylius_backend_taxonomy_show

sylius_backend_taxonomy_delete:
    path: /{id}
    methods: [DELETE]
    defaults:
        _controller: sylius.controller.taxonomy:deleteAction
        _sylius:
            template: SyliusWebBundle:Backend/Misc:delete.html.twig
            redirect: sylius_backend_taxonomy_index

sylius_backend_taxonomy_show:
    path: /{id}
    methods: [GET]
    defaults:
        _controller: sylius.controller.taxonomy:showAction
        _sylius:
            template: SyliusWebBundle:Backend/Taxonomy:show.html.twig

Sort taxonomies on backend list view by name
Sort taxonomies on backend list view by name
