{% 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.module, {'attr': {'class': 'form-control selectreadonlynn'}}) }}
{{form_errors(form.module)}}
{{ form_widget(form.note, {'attr': {'class': 'form-control'}}) }}
{{form_errors(form.note)}}
{% endmacro %}
Inscription
{{ form_start(form, {'attr': {'class': 'form theme-form'}}) }}
{{ form_widget(form.candidat, {'attr': {'class': 'form-control'}}) }}
{{form_errors(form.candidat)}}
{{ form_widget(form.session, {'attr': {'class': 'form-control'}}) }}
{{form_errors(form.session)}}
{{ form_widget(form.cycle, {'attr': {'class': 'form-control'}}) }}
{{form_errors(form.cycle)}}
{{ form_widget(form.groupe, {'attr': {'class': 'form-control'}}) }}
{{form_errors(form.groupe)}}
{% if button_label == "Update" %}
{{ form_widget(form.attestationFile, {'attr': {'class': 'form-control'}}) }}
{{form_errors(form.attestationFile)}}
{% for widget in form.inscriptionModules.children %} {{ _self.widget_prototype(widget, 'Remove Module') }} {% endfor %}
{% endif %} {{ form_row(form._token) }} {{ form_end(form, {'render_rest': false}) }}