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

{% block title %}{% if not edit %}Новый тег{% else %}Редактирование тега{% endif %}{% endblock %}

{% block body %}
{% form_theme form 'NeagMainBundle:Form:fields.html.twig' %}

<style>
#form-tag #form_synonyms {
    width: 400px;    
}
</style>

<form class="form" id="form-tag" 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 %}
