{% extends "Global/layout.html.twig" %} {% set pagetitle = 'Add a new category' | trans %} {% if category.id %}{% set pagetitle = 'Update the category' | trans %}{% endif %} {% block title %}{{pagetitle}}{% endblock %} {% block content %} {% set navigation = [{ "dashboard_index": ('Dashboard' | trans), "dashboard_administrator_category": ('Manage categories' | trans), "current":(pagetitle) }] %} {% include "Global/navigation.html.twig" with navigation %}
{{ form_start(form, {'attr': {'novalidate': 'novalidate'}}) }} {{ form_widget(form) }} {{ form_end(form) }}
{% endblock %}