Preview Mode
============
Preview Mode is an optional view of an object before it is persisted or updated.
The preview step can be enabled for an admin entity by overriding the public property
``$supportsPreviewMode`` and setting it to true.
.. code-block:: php
{{ block('parentForm') }}
{% endblock %}
{% block formactions %}
{% endblock %}
Keep in mind that the whole edit form will now appear in your view.
Hiding the fieldset tags with css ``display:none`` will be enough to only show the buttons
(which still have to be styled according to your wishes) and create a nice preview-workflow:
.. code-block:: css
.sonata-preview-form-container .row {
display: none;
};
Or if you prefer less:
.. code-block:: scss
div.sonata-preview-form-container {
.row {
display: none;
};
}