{% block form %} {{ sonata_block_render_event('sonata.admin.edit.form.top', { 'admin': admin, 'object': object }) }} {% set url = objectId is not null ? 'edit' : 'create' %} {% if objectId is not null %}
Esta eximición posee valores no editables
{% endif %} {% if not admin.hasRoute(url) %}
{{ "form_not_available"|trans({}, "SonataAdminBundle") }}
{% else %}
{{ include('@SonataAdmin/Helper/render_form_dismissable_errors.html.twig') }} {% block sonata_pre_fieldsets %}
{% endblock %} {% block sonata_tab_content %} {% import "examenes/eximiciones/base_edit_form_macro.html.twig" as form_helper %} {% set formtabs = admin.getformtabs() %} {% set has_tab = ((formtabs|length == 1 and formtabs|keys[0] != 'default') or formtabs|length > 1 ) %}
{% if has_tab %} {% set tab_prefix = 'tab_' ~ admin.uniqid ~ '_' ~ random() %} {% set tab_query_index = app.request.query.get('_tab', 0)|split("_")|last %} {% elseif formtabs['default'] is defined %} {{ form_helper.render_groups(admin, form, formtabs['default'].groups, has_tab) }} {% endif %}
{% endblock %} {% block sonata_post_fieldsets %}
{% endblock %} {{ form_rest(form) }} {% block formactions %}
{% block sonata_form_actions %} {% if app.request.isxmlhttprequest %} {% if objectId is not null %} {% if admin.hasRoute('delete') and admin.hasAccess('delete', object) %} {% block btn_delete %} {{ 'delete_or'|trans({}, 'SonataAdminBundle') }} {{ 'link_delete'|trans({}, 'SonataAdminBundle') }} {% endblock %} {% endif %} {% else %} {% block btn_create %} {% endblock %} {% endif %} {% else %} {% if admin.supportsPreviewMode %} {% block btn_preview %} {% endblock %} {% endif %} {% if objectId is not null %} {% block btn_update_and_edit %} {% endblock %} {% if admin.hasRoute('list') and admin.hasAccess('list') %} {% block btn_update_and_list %} {% endblock %} {% endif %} {% if admin.hasRoute('delete') and admin.hasAccess('delete', object) %} {{ block('btn_delete') }} {% endif %} {% if admin.isAclEnabled() and admin.hasRoute('acl') and admin.hasAccess('acl', object) %} {% block btn_acl %} {{ 'link_edit_acl'|trans({}, 'SonataAdminBundle') }} {% endblock %} {% endif %} {% else %} {% if admin.hasroute('edit') and admin.hasAccess('edit') %} {% block btn_create_and_edit %} {% endblock %} {% endif %} {% if admin.hasroute('list') and admin.hasAccess('list') %} {% block btn_create_and_list %} {% endblock %} {% endif %} {% block btn_create_and_create %} {% endblock %} {% endif %} {% endif %} {% endblock %}
{% endblock formactions %}
{% endif %} {{ sonata_block_render_event('sonata.admin.edit.form.bottom', { 'admin': admin, 'object': object }) }} {% endblock %}