{% extends 'USBackendBundle::layout.html.twig' %} {% use('::feedbackBox.html.twig') %} {% block content_id 'question_edit'%} {% block content -%} {% form_theme form ':Form:form_embed_horizontal.html.twig' %} {{ form_start(form,{'attr':{'class':'form-horizontal','id':'question-form'} }) }}
{{'question.create.title'|trans({},"USBackendBundle")|upper}}
{{ form_label(form.title, 'Título', {'label_attr' : {'class' : 'title'}}) }} {{ form_widget(form.title, {'attr' : {'class' : 'field'} }) }}
{% if class != "form" and class != "satisfaction_survey" %}
{{ form_label(form.type, 'Tipo', {'label_attr' : {'class' : 'title'}}) }} {{ form_widget(form.type, {'attr' : {'class' : 'field'} }) }}
{% endif %} {% if class == "test" %}
{{ form_label(form.weight, 'Peso', {'label_attr' : {'class' : 'title'}}) }} {{ form_widget(form.weight, {'attr' : {'class' : 'field'} }) }}
{% endif %}
{% if class != 'form' %}
{{'answers.title'|trans({},"USBackendBundle")|upper}}
    {% for answer in form.answers %}
  • {{ form_row(answer.content) }} {{ form_row(answer.type) }}
  • {% endfor %}
{% endif %}
{{form_widget(form.submit)}}
{{form_rest(form)}}
{{ form_end(form) }} {% endblock %}