{{ form_start(form, {
'attr' : {
'class':'registrationStepForm',
'novalidate': 'novalidate'
}
}) }}
{# A FOR LOOP GOING THROUGH ALL OF THE ELEMENTS IN A COLLECTIONTYPE IS REQUIRED FOR THEM TO SHOW UP #}
{% for surveyResultQuestion in form.surveyResultQuestions %}
{{ form_row(surveyResultQuestion.score) }}
{{ form_label(surveyResultQuestion.score) }}
{% if surveyResultQuestion.notApplicableFormField is defined %}
{{ form_widget(surveyResultQuestion.notApplicableFormField, { 'attr' : { 'class' : 'not_applicable_option', 'data-input-selector' : surveyResultQuestion.score.vars.id } }) }}
{% endif %}
{% for i in 0..4 %}
{% if surveyResultQuestion.score.vars.data is not null and ((i * 25) <= surveyResultQuestion.score.vars.data) %}
{% set star = 'fa-star' %}
{% set color = 'gold' %}
{% else %}
{% set star = 'fa-star-o' %}
{% set color = 'gray' %}
{% endif %}
{% endfor %}
{{ form_errors(surveyResultQuestion) }}
{% endfor %}
{% if form.comments is defined %}
{{ form_row(form.comments) }}
{% endif %}