{% extends "::admin.html.twig" %}

{% block title %}Новый раздел статей{% endblock %}

{% block body %}
{% form_theme form 'NeagMainBundle:Form:fields.html.twig' %}
<form class="form" action="{{ action }}" method="post" {{ form_enctype(form) }}>   
    
    {{ form_widget(form) }}

    {% if not edit %}
    <input type="submit" name="submit" value="Добавить новый раздел" class="form-submit" />
    {% else %}
    <input type="submit" name="submit" value="Внести изменения" class="form-submit" />
    {% endif %}
</form>
{% endblock %}
