{% extends 'USBackendBundle::layout.html.twig' %} {% block content_id 'activity_new'%} {% block content -%} {% form_theme form ':Form:form_embed_horizontal.html.twig' %} {{ form_start(form,{'attr':{'class':'form-horizontal', 'id':'us_timelinebundle_timelineactivity'} }) }}
Nueva actividad
{{ form_label(form.type, 'Tipo', {'label_attr' : {'class' : 'title'}}) }} {{ form_widget(form.type, {'attr' : {'class' : 'field'} }) }}
{{ form_label(form.activity, 'Actividad', {'label_attr' : {'class' : 'title'}}) }} {{ form_widget(form.activity, {'attr' : {'class' : 'field'} }) }}
{{ form_label(form.startDate, 'Fecha de inicio', {'label_attr' : {'class' : 'title'}}) }} {{ form_widget(form.startDate, {'attr' : {'class' : 'field'} }) }}
{{ form_label(form.endDate, 'Fecha de caducidad', {'label_attr' : {'class' : 'title'}}) }} {{ form_widget(form.endDate, {'attr' : {'class' : 'field'} }) }}
{{ form_label(form.user, 'Usuario', {'label_attr' : {'class' : 'title'}}) }} {{ form_widget(form.user, {'attr' : {'class' : 'field'} }) }}
{{form_widget(form.submit)}}
{{ form_rest(form) }}
{# {{ form(form, {'attr' : {'id':'us_timelinebundle_timelineactivity','class' : 'form-horizontal'}}) }}#} {% endblock %}