{% macro widget_prototype(widget, remove_text) %} {% if widget.vars.prototype is defined %} {% set form = widget.vars.prototype %} {% set name = widget.vars.prototype.vars.name %} {% else %} {% set form = widget %} {% set name = widget.vars.full_name %} {% endif %}
{{ form_widget(form.montant, {'attr': {'class': 'form-control'}}) }}
{{form_errors(form.montant)}}
{{ form_widget(form.datePaiementPrevue, {'attr': {'class': 'datepicker-here form-control digits', 'data-language': 'fr'}}) }}
{{form_errors(form.datePaiementPrevue)}}
{{ form_widget(form.datePaiement, {'attr': {'class': 'datepicker-here form-control digits', 'data-language': 'fr'}}) }}
{{form_errors(form.datePaiement)}}
{{ form_widget(form.etatPaiement, {'attr': {'class': 'form-control'}}) }}
{{form_errors(form.etatPaiement)}}
{% endmacro %}
Facture Candidat
{{ form_start(form, {'attr': {'class': 'form theme-form'}}) }}
{{ form_widget(form.inscription, {'attr': {'class': 'form-control '}}) }}
{{form_errors(form.inscription)}}
{{ form_widget(form.montant, {'attr': {'class': ' form-control'}}) }}
{{form_errors(form.montant)}}
{{ form_widget(form.etatPaiement, {'attr': {'class': 'form-control '}}) }}
{{form_errors(form.etatPaiement)}}
{% for widget in form.paiementCandidats.children %} {{ _self.widget_prototype(widget, 'Remove Module') }} {% endfor %}
{{ form_end(form) }}