{% extends "partials/base.html.twig" %} {% set object = form.object %} {% if object is null %} {% throw 404 'Not Found' %} {% endif %} {% if form.flash.exists() %} {% set draft = true %} {% try %} {% set object = form.updateObject() %} {% catch %} {% endcatch %} {% endif %} {% if header.title %} {% do page.title('Edit ' ~ object.title) %} {% endif %} {% block content %} {% include 'partials/messages.html.twig' ignore missing %} {{ page.content()|raw }} {# You have unsaved changes #} {% include "forms/form.html.twig" %} {% block modals %} {# {% if form.buttons.preview %} {% include 'modals/flex-preview.html.twig' %} {% endif %} #} {% endblock %} {% endblock %}