{% extends 'USBackendBundle::layout.html.twig' %} {% block content_class "content backend activity form edit" %} {% block stylesheets %} {{parent()}} {% endblock %} {% block top_scripts %} {% endblock %} {% block content -%} {{ form_start(edit_form, {'attr' : {'class' : 'form-horizontal'}}) }}
Edición del formulario
{{ form_label(edit_form.title, 'Título', {'label_attr' : {'class' : 'title'}}) }} {{ form_widget(edit_form.title, {'attr' : {'class' : 'field'} }) }}
{{ form_label(edit_form.picture, 'Imagen', {'label_attr' : {'class' : 'title'}}) }} {{ form_widget(edit_form.picture, {'attr' : {'class' : 'field'} }) }}
{{ form_label(edit_form.description, 'Descripción', {'label_attr' : {'class' : 'title'}}) }} {{ form_widget(edit_form.description, {'attr' : {'class' : 'field'} }) }}
{{ form_widget(edit_form.isLayout, {'attr' : {'class' : ''} }) }} {{ form_label(edit_form.isLayout, 'Es una plantilla?', {'label_attr' : {'class' : ''}}) }}
Cancelar
{{ form_widget(edit_form.submit) }}
{{ form_rest(edit_form) }}
{{ form_end(edit_form) }} {#
Back to the list
#}
{{'questions'|trans({},"USBackendBundle")|upper}}  Añadir nueva pregunta
{{ render(controller('USBackendBundle:Question:list',{'class':'form', 'activityId':entity.id})) }}
{% endblock %} {% block bottom_scripts %} {{parent()}} {% endblock %}