<commit_before>{#

This file is part of the Sonata package.

(c) <NAME> <<EMAIL>>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

#}

{% extends 'SonataAdminBundle:CRUD:edit.html.twig' %}

{% block actions %}
{% endblock %}

{% block side_menu %}
{% endblock %}

{% block formactions %}
    <input class="btn btn-success" type="submit" name="btn_preview_approve" value="{% trans from 'SonataAdminBundle' %}btn_preview_approve{% endtrans %}"/>
    <input class="btn btn-danger" type="submit" name="btn_preview_decline" value="{% trans from 'SonataAdminBundle' %}btn_preview_decline{% endtrans %}"/>
{% endblock %}

{% block preview %}
        <div class="sonata-ba-view">
            {% for name, view_group in admin.showgroups %}
                <table class="table table-bordered">
                    {% if name %}
                        <tr class="sonata-ba-view-title">
                            <td colspan="2">
                                {{ admin.trans(name) }}
                            </td>
                        </tr>
                    {% endif %}
    
                    {% for field_name in view_group.fields %}
                        <tr class="sonata-ba-view-container">
                            {% if admin.show[field_name] is defined %}
                                {{ admin.show[field_name]|render_view_element(object) }}
                            {% endif %}
                        </tr>
                    {% endfor %}
                </table>
            {% endfor %}
        </div>
{% endblock %}
    
{% block form %}
    
    <div class="sonata-preview-form-container">
        {{parent()}}
    </div>
{% endblock %}<commit_msg>Re-indented preview block and added missing whitespace to comply with the twig CS.<commit_after>{#

This file is part of the Sonata package.

(c) <NAME> <<EMAIL>>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

#}

{% extends 'SonataAdminBundle:CRUD:edit.html.twig' %}

{% block actions %}
{% endblock %}

{% block side_menu %}
{% endblock %}

{% block formactions %}
    <input class="btn btn-success" type="submit" name="btn_preview_approve" value="{% trans from 'SonataAdminBundle' %}btn_preview_approve{% endtrans %}"/>
    <input class="btn btn-danger" type="submit" name="btn_preview_decline" value="{% trans from 'SonataAdminBundle' %}btn_preview_decline{% endtrans %}"/>
{% endblock %}

{% block preview %}
    <div class="sonata-ba-view">
        {% for name, view_group in admin.showgroups %}
            <table class="table table-bordered">
                {% if name %}
                    <tr class="sonata-ba-view-title">
                        <td colspan="2">
                            {{ admin.trans(name) }}
                        </td>
                    </tr>
                {% endif %}

                {% for field_name in view_group.fields %}
                    <tr class="sonata-ba-view-container">
                        {% if admin.show[field_name] is defined %}
                            {{ admin.show[field_name]|render_view_element(object) }}
                        {% endif %}
                    </tr>
                {% endfor %}
            </table>
        {% endfor %}
    </div>
{% endblock %}
    
{% block form %}
    <div class="sonata-preview-form-container">
        {{ parent() }}
    </div>
{% endblock %}
{'fraction_non_alphanumeric': 0.13884107860011474, 'fraction_numerical': 0.0005737234652897303, 'mean_word_length': 1.8030546623794212, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5270903', 'n_tokens_mistral': 1065, 'n_tokens_neox': 933, 'n_words': 234}