{% extends 'manage/news/master.twig' %} {% from 'macros.twig' import container_title %} {% from '_layout/input.twig' import input_hidden, input_csrf, input_text, input_checkbox, input_select %} {% block manage_content %}
{{ container_title(post_new ? 'New Post' : 'Editing ' ~ post_info.title) }} {{ input_csrf() }}
Name {{ input_text('np_title', '', post_info.title|default(), 'text', '', true) }}
Category {{ input_select('np_category', categories, post_info.categoryId|default(0)) }}
Is Featured {{ input_checkbox('np_featured', '', post_info.featured|default(false)) }}
{% if not post_new %} Delete {% endif %}
{% endblock %}