{% extends 'USBackendBundle::layout.html.twig' %} {% block stylesheets %} {{parent()}} {% stylesheets filter='cssrewrite' 'bundles/usbackend/js/jquery-simple-combobox/css/jquery.scombobox.css' 'bundles/usbackend/js/TimeScheduler/css/jquery-ui.css' 'bundles/usbackend/js/TimeScheduler/css/jquery.ui.theme.css' 'bundles/usbackend/js/TimeScheduler/css/timelineScheduler.css' 'bundles/usbackend/js/TimeScheduler/css/timelineScheduler.styling.css' 'bundles/usbackend/js/TimeScheduler/css/calendar.css' %} {% endstylesheets %} {% endblock %} {% block content_class 'content backend simpletimeline edit' %} {% block content_id 'timeline_edit' %} {% block content -%} {{ form_start(form, {'attr' : {'class' : 'form-horizontal timelineForm'}}) }} {{ form_errors(form) }} {{ form_start(form,{'attr':{'class':'form-horizontal'} }) }}
{#Título#}
{{ form_label(form.title, 'Título', {'label_attr' : {'class' : 'title'}}) }} {{ form_widget(form.title, {'attr' : {'class' : 'field'} }) }}
{#Descripción#}
{{ form_label(form.description, 'Descripción', {'label_attr' : {'class' : 'title'}}) }} {{ form_widget(form.description, {'attr' : {'class' : 'field'} }) }}
{#Acogido, responsable y mentor#}
{{ form_label(form.user, 'Responsable', {'label_attr' : {'class' : 'title'}}) }} {% if entity.user == null %} {{ form_widget(form.user, {'attr' : {'class' : 'field'} }) }} {% else %} {{ form_widget(form.user, {'attr' : {'class' : 'field'} }) }} {% endif %}
{#Activo y layout#}
{{ form_widget(form.isLayout) }} {{ form_label(form.isLayout, 'Es una plantilla?') }}
{# {{ form_row(form.timelineActions) }} #} {% set i = 0 %} {% for tla in form.timelineActions%}
{{ form_label(tla.action, null , {'label_attr' : {'class' : 'col-md-2'}}) }} {{ form_widget(tla.action, {'attr' : {'class' : 'hide'} }) }} {# {{ form_label(tla.roles, null , {'label_attr' : {'class' : 'col-md-9'}}) }} #} {{ form_widget(tla.roles, {'attr' : {'class' : 'col-md-9'} }) }} {% set i = i+1 %}
{% endfor %}
Cancelar
{{ form_widget(form.submit) }}
{{ form_rest(form) }}
{{ form_end(form) }}  Añadir Actividad
{% endblock %} {% block bottom_scripts %} {{parent()}} {#librerias para que funcione el input date html5 en firefox todo: cargar solo para los navegadores que no lo soportan #} {% javascripts 'bundles/usbackend/js/TimeScheduler/js/moment.js' 'bundles/usbackend/js/TimeScheduler/js/timelineScheduler.js' 'bundles/usbackend/js/TimeScheduler/js/calendar.js' 'bundles/usbackend/js/jquery-simple-combobox/js/missed.js' 'bundles/usbackend/js/jquery-simple-combobox/js/jquery.scombobox.min.js' 'bundles/usbackend/js/jquery-simple-combobox/js/jquery.easing.min.js' 'bundles/usbackend/js/js-webshim/minified/modernizr-custom.js' %} {% endjavascripts %} {% endblock %}