{% extends 'FLCoreBundle:Base:modal.html.twig' %} {% if form is defined %} {% form_theme form 'FLCoreBundle:Form:fields_modal.html.twig' %} {% endif %} {% set random = date() %} {% block modal_title %}Nuevo{% endblock %} {% set modal_form_action = (modal_form_action is defined)?modal_form_action:path(config.prefix~'_create') %} {% block modal_body %}
{% block modal_alert %}{% endblock %}
{% block modal_form %} {{ form_start(form, {'attr': {'id': 'fl-modal-form-'~( random | date('YmdHis') ), 'action': modal_form_action, 'role': 'form'}}) }} {% block modal_form_widget %} {{ form_widget(form) }} {% endblock %} {% block form_inputs %} {% endblock %} {{ form_end(form) }} {% endblock modal_form %} {% endblock modal_body %} {% block modal_footer %} {% endblock modal_footer %} {% block modal_script %} {% endblock modal_script%}