{% extends 'manage/changelog/master.twig' %} {% from 'macros.twig' import container_title %} {% from '_layout/input.twig' import input_csrf, input_text, input_select, input_checkbox %} {% if change is not null %} {% set site_link = url('changelog-change', {'change': change.id}) %} {% endif %} {% block manage_content %}
{{ input_csrf() }} {{ container_title(change is not null ? 'Editing #' ~ change.id : 'Adding a new change') }}
{{ input_select('change[action]', change_actions, change.action|default(0), 'action_name', 'action_id') }} {{ input_text('change[log]', '', change.header|default(''), 'text', '', true, {'maxlength':255,'style':'flex-grow:1'}) }}
{% for tag in change_tags %} {% endfor %}
{% endblock %}