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

{% block body %}
<script>

function sendForm(id)
{
	activeLoader();
    $.ajax({
    	url : '{{ path('Facture.popup.blocNote', {'numFact' : numFact }) }}',
        type: 'POST',
        data: $("#form_bloc_notes").serialize(),
        success: function (data) {
        	reloadGestionFacture('{{ path('Facture.GestionFacture.index') }}');
        }
    });
}
</script>

	<div class="modal-body">
        <form method="post" name="form_bloc_notes" id="form_bloc_notes" class="box-form">
            <div class="row">
                <label for="bloc_note">{{ 'Facture n°' | trad }}<span class="gras">{{ numFact }}</span></label>
                <textarea class="form-control" name="bloc_note" id="bloc_note">{{ note.CONTMEMO }}</textarea>
                <input type="hidden" name="codeMemo" value="{{ codeMemo }}" />
            </div>
          	<div class="modal-footer">
                <button type="button" class="button secondaire" data-dismiss="modal" onclick="desactivePopup ();">{{ 'Annuler' | trad }}</button>
                <button type="button" class="button principal"  onclick="sendForm('form_bloc_notes');">{{ 'Enregistrer' | trad }}</button>
        	</div>
        </form>
	</div>

{% endblock %}