{% extends 'administration/base.html.twig' %} {% block title %}{{ 'admin.edit_category'|trans }}{% endblock %} {% block body %}
{% if content_lock_blocked|default(false) %}
{{ 'admin.content_lock_blocked'|trans({'%user%': content_lock_blocked_by|default('?')}) }}
{% endif %}

{{ 'admin.edit_category'|trans }}

{{ 'admin.category.edit_description'|trans }}

{{ 'admin.category.back'|trans }} {{ 'admin.revisions.title'|trans }}
{{ 'admin.preview_options'|trans }}
{{ form_start(form, {'attr': {'id': 'form'}}) }}

{{ 'admin.category.basic_info'|trans }}

{{ form_label(form.title, 'form.category.title'|trans, {'label_attr': {'class': 'form-label fw-semibold text-primary'}}) }} {{ form_widget(form.title, {'attr': {'class': 'form-control form-control-lg', 'required': 'true'}}) }}
{{ form_label(form.parent, 'form.category.parent'|trans, {'label_attr': {'class': 'form-label fw-semibold text-primary'}}) }} {{ form_widget(form.parent, {'attr': {'class': 'form-control'}}) }}
{{ form_label(form.priority, 'form.category.priority'|trans, {'label_attr': {'class': 'form-label fw-semibold text-primary'}}) }} {{ form_widget(form.priority, {'attr': {'class': 'form-control'}}) }}
{{ form_label(form.routePath, 'form.category.route'|trans, {'label_attr': {'class': 'form-label fw-semibold text-primary'}}) }} {{ form_widget(form.routePath, {'attr': {'class': 'form-control'}}) }} URL-Pfad der Kategorie, z.B. "category/news"
{{ form_widget(form.active, {'attr': {'class': 'form-check-input'}}) }} {{ form_label(form.active, 'form.category.active'|trans, {'label_attr': {'class': 'form-check-label fw-semibold'}}) }}
{{ form_widget(form.showListingMethods, {'attr': {'class': 'form-check-input'}}) }} {{ form_label(form.showListingMethods, 'form.category.show_listing_methods'|trans, {'label_attr': {'class': 'form-check-label fw-semibold'}}) }}
{{ form_label(form.permissionRequired, 'form.page.permission_required'|trans, {'label_attr': {'class': 'form-label fw-semibold text-primary'}}) }} {{ form_widget(form.permissionRequired, {'attr': {'class': 'form-control'}}) }}

{{ 'admin.category.content_section'|trans }}

{{ form_label(form.view, 'form.page.content'|trans, {'label_attr': {'class': 'form-label fw-semibold text-primary'}}) }} {{ form_widget(form.view, {'attr': {'class': 'form-control wysiwyg-editor', 'rows': 5, 'data-ce-title': 'form.page.content'|trans }}) }}
{{ form_label(form.navigation, 'form.page.navigation'|trans, {'label_attr': {'class': 'form-label fw-semibold text-primary'}}) }} {{ form_widget(form.navigation, {'attr': {'class': 'form-control wysiwyg-editor', 'rows': 5, 'data-ce-title': 'form.page.navigation'|trans }}) }}
{% import 'administration/custom_fields/tabs.html.twig' as customFields %} {{ customFields.custom_field_tabs(form, 'category', category.id) }} {{ form_end(form) }}
{% endblock %}