<div id="modal1" class="modal">
    {{ form_start(form, {'action':route}) }}
    <div class="modal-content">
        <h4>Note</h4>
        {{ form_rest(form) }}
        <input type="hidden" value="">
    </div>
    <div class="modal-footer">
        {% if action is defined and action == 'edit' %}
            <a href="{{ path('note_remove',{'id':id}) }}" class="btn btn-dark">Supprimer</a>
        {% endif %}
        <button class="modal-action btn btn-default" type="submit">Enregistrer</button>
    </div>
    {{ form_end(form) }}
</div>