{% extends 'manage/news/master.twig' %} {% from 'macros.twig' import container_title %} {% from '_layout/input.twig' import input_hidden, input_csrf, input_text, input_checkbox %} {% set is_new = category is not defined %} {% block manage_content %}
{{ container_title(is_new ? 'New Category' : 'Editing ' ~ category_info.name) }} {{ input_csrf() }} {{ input_hidden('category[id]', category_info.id|default(0)) }}
Name {{ input_text('category[name]', '', category_info.name|default(), 'text', '', true) }}
Description
Is Hidden {{ input_checkbox('category[hidden]', '', category_info.isHidden|default(false)) }}
{% endblock %}