{% extends 'USBackendBundle::layout.html.twig' %} {% block stylesheets %} {{parent()}} {% endblock %} {% block top_scripts %} {% endblock %} {% block content_class "content backend activity survey edit"%} {% block content -%} {{ form_start(edit_form, {'attr' : {'class' : 'form-horizontal'}}) }}
{{'survey'==class?'backend.edit.survey'|trans({},"USBackendBundle")}} {{'test'==class?'backend.edit.test'|trans({},"USBackendBundle")}} {{'form'==class?'backend.edit.form'|trans({},"USBackendBundle")}} {{'tasklist'==class?'backend.edit.tasklist'|trans({},"USBackendBundle")}} {{'satisfaction_survey'==class?'backend.edit.satisfactionsurvey'|trans({},"USBackendBundle")}}
{{ form_label(edit_form.title, 'Título', {'label_attr' : {'class' : 'title'}}) }} {{ form_widget(edit_form.title, {'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.picture, {'attr' : {'class' : 'field select_image_button_false'} }) }}
{{ 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
#} {{ form(edit_form,{'attr':{'class':'form-horizontal'} }) }}
{% if class == "tasklist" %} {{'questions'|trans({},"USBackendBundle")|upper}}  Añadir nueva pregunta
{{ render(controller('USBackendBundle:Task:list',{'activityId':entity.id, 'class':class})) }}
{% else %} {{'questions'|trans({},"USBackendBundle")|upper}}  Añadir nueva pregunta
{{ render(controller('USBackendBundle:Question:list',{'activityId':entity.id, 'class':class})) }}
{% endif %} {% endblock %} {% block bottom_scripts %} {{parent()}} {% if class != "test" %} {% endif %} {% endblock %}