<commit_before>{% extends "XvolutionsAdminBundle:template:backoffice.html.twig" %}

{% block title %}Secções - Backoffice{% endblock %}

{% block username %}{{ username }}{% endblock %}
{% block maincontent %}
    <h1>{{ "Secções"|trans }}</h1>
    {% if ok %}
        <div class="alert alert-success alert-dismissable">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
            {{ ok|trans }}
        </div>
    {% endif %}
    {% if error %}
        <div class="alert alert-danger alert-dismissable">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
            {{ error|trans }}
        </div>
    {% endif %}

    {% if sectionList|length > 0 %}
        <table class="table table-hover">
            <tr>
                <th></th>
                <th>{{ "Nome da Secção"|trans }}</th>
                <th>{{ "Opções"|trans }}</th>
            </tr>
            {% for section in sectionList %}
                <tr>
                    <td><input type="checkbox" value="{{section.id}}"></td>
                    <td>{{section.section}}</td>
                    <td><button type="submit" class="btn btn-primary btn-xs">{{ "Editar"|trans }}</button> <button type="reset" class="btn btn-danger btn-xs">{{ "Apagar"|trans }}</button></td>
                </tr>
            {% endfor %}
        </table>
        <p>
            <button type="reset" class="btn btn-danger btn-sm">{{ "Apagar Seleccionadas"|trans }}</button>
        </p> 
    {% endif %}

    {{ form_start(form) }}
        {{ form_errors(form) }}
        <div id="xvolutions_adminbundle_page">
            <div>
                {{ form_label( form.section ) }}
                {{ form_widget( form.section ) }}
            </div>
            {{ form_end(form) }}
	</div>
{% endblock %}
<commit_msg>- Changed the buttons by <a><commit_after>{% extends "XvolutionsAdminBundle:template:backoffice.html.twig" %}

{% block title %}Secções - Backoffice{% endblock %}

{% block username %}{{ username }}{% endblock %}
{% block maincontent %}
    <h1>{{ "Secções"|trans }}</h1>
    {% if ok %}
        <div class="alert alert-success alert-dismissable">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
            {{ ok|trans }}
        </div>
    {% endif %}
    {% if error %}
        <div class="alert alert-danger alert-dismissable">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
            {{ error|trans }}
        </div>
    {% endif %}

    {% if sectionList|length > 0 %}
        <table class="table table-hover">
            <tr>
                <th></th>
                <th>{{ "Nome da Secção"|trans }}</th>
                <th>{{ "Opções"|trans }}</th>
            </tr>
            {% for section in sectionList %}
                <tr>
                    <td><input type="checkbox" value="{{section.id}}"></td>
                    <td>{{section.section}}</td>
                    <td><a href="{{path('sections')}}/edit/{{section.id}}" type="submit" class="btn btn-primary btn-xs">{{ "Editar"|trans }}</a> <a href="{{path('sections')}}/remove/{{section.id}}" type="reset" class="btn btn-danger btn-xs">{{ "Apagar"|trans }}</a></td>
                </tr>
            {% endfor %}
        </table>
        <p>
            <a href="{{path('sections')}}/add" type="submit" class="btn btn-primary btn-sm">{{ "Criar uma nova secção"|trans }}</a> <a href="{{path('sections')}}/removeselected" type="reset" class="btn btn-danger btn-sm">{{ "Apagar Seleccionadas"|trans }}</a>
        </p> 
    {% endif %}

    {{ form_start(form) }}
        {{ form_errors(form) }}
        <div id="xvolutions_adminbundle_page">
            <div>
                {{ form_label( form.section ) }}
                {{ form_widget( form.section ) }}
            </div>
            {{ form_end(form) }}
	</div>
{% endblock %}

{'fraction_non_alphanumeric': 0.19634817408704353, 'fraction_numerical': 0.0015007503751875938, 'mean_word_length': 2.0808936825885977, 'pattern_counts': {'":': 0, '<': 88, '<?xml version=': 0, '>': 90, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5107750', 'n_tokens_mistral': 1304, 'n_tokens_neox': 1165, 'n_words': 243}