{% extends '@ajax-layout/layout.twig' %}

{% block body %}
    <form 
        method="post"
        action="{{ path('Evaluation.Campaign.publierSyntheseUpdate', {idCamp: id})  }}"
        onsubmit="return ajaxSubmit(event)"
        data-onsuccess="pageRefresh"
        class="form-default"
    >
        <div class="modal-body clearfix">

                <div class="row">
                    {{ inputAdvance('DATE', {
                        'titre' : 'Date de publication' | trad,
                        'name' : 'DTEPUBLICATION_SYNTHFOUR',
                        'value' : dateDuJour,
                        'obligatoire' : true,
                        'pathValidator' : path('Ajax.validator.date')
                    }) }}
                </div>
        </div>
        <div class="modal-footer">
            <a type="button" class="button secondaire" data-dismiss="modal" onClick="desactivePopup()">{{ 'Fermer'|trad }}</a>
            <button type="submit" class="button principal">{{ 'Confirmer'|trad }}</button>
        </div>
    </form>
{% endblock %}