<commit_before>{# src/Carnaval/WebsiteBundle/Resources/views/Website/index.html.twig #}
 
{% extends "::layout.html.twig" %}
 
{% block title %}
  Admin - Boite de Réception - {{ parent() }}
{% endblock %}
 
{% block carnaval_contenu %}
    <table class="table table-bordered table-condensed" id="messageTable">
        <thead>
        <tr>
            <th>&nbsp;</th>
            <th>Reçu le</th>
            <th>Nom</th>
            <th>Email</th>
            <th>Objet</th>
            <th>&nbsp;</th>
        </tr>
        </thead>
        <tbody>
        {% for message in messages %}
            <tr>
                <td>
                    {% if message.isRead %}
                        <img src="{{ asset('img/read.png') }}" width="25px" />
                    {% else %}
                        <img src="{{ asset('img/unread.png') }}" width="25px" />
                    {% endif %}
                </td>
                <td>{{ message.receiveDate|date("d/m/Y \\à H:i") }}</td>
                <td>{{ message.lastName }} {{ message.firstName }}</td>
                <td>{{ message.email }}</td>
                <td>{{ message.objet }}</td>
                <td>
                    <div class="btn-group">
                        <a class="btn btn-info" href="{{ path('carnaval_website_adm_messages_read', {'id': message.id, 'return':'read'}) }}">Lire</a>
                        <a class="btn btn-warning" href="{{ path('carnaval_website_adm_messages_archive', {'id': message.id, 'return':'read'}) }}">Archiver</a>
                        <a class="btn btn-danger" href="{{ path('carnaval_website_adm_messages_delete', {'id': message.id, 'return':'read'}) }}">Supprimer</a>
                    </div>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
{% endblock %}

{% block javascripts %}
    <script>
        $(document).ready(function(){
            $('#messageTable').DataTable({
                paging: false
            });
        });
    </script>
{% endblock %}
<commit_msg>data tables<commit_after>{# src/Carnaval/WebsiteBundle/Resources/views/Website/index.html.twig #}
 
{% extends "::layout.html.twig" %}
 
{% block title %}
  Admin - Boite de Réception - {{ parent() }}
{% endblock %}
 
{% block carnaval_contenu %}
    <table class="table table-bordered table-condensed" id="messageTable">
        <thead>
            <tr>
                <th style="width: 10px;">&nbsp;</th>
                <th style="width: 90px;">Reçu le</th>
                <th>Nom</th>
                <th>Email</th>
                <th>Objet</th>
                <th style="width: 200px;">&nbsp;</th>
            </tr>
        </thead>
        <tbody>
        {% for message in messages %}
            <tr>
                <td>
                    {% if message.isRead %}
                        <img src="{{ asset('img/read.png') }}" width="25px" />
                    {% else %}
                        <img src="{{ asset('img/unread.png') }}" width="25px" />
                    {% endif %}
                </td>
                <td>{{ message.receiveDate|date("d/m/Y \\à H:i") }}</td>
                <td>{{ message.lastName }} {{ message.firstName }}</td>
                <td>{{ message.email }}</td>
                <td>{{ message.objet }}</td>
                <td>
                    <div class="btn-group">
                        <a class="btn btn-info" href="{{ path('carnaval_website_adm_messages_read', {'id': message.id, 'return':'read'}) }}">Lire</a>
                        <a class="btn btn-warning" href="{{ path('carnaval_website_adm_messages_archive', {'id': message.id, 'return':'read'}) }}">Archiver</a>
                        <a class="btn btn-danger" href="{{ path('carnaval_website_adm_messages_delete', {'id': message.id, 'return':'read'}) }}">Supprimer</a>
                    </div>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
{% endblock %}

{% block javascripts %}
    <script>
        $(document).ready(function(){
            $('#messageTable').DataTable({
                paging: false,
                "order": [[ 1, "desc" ]],
                "columns": [
                    null,
                    null,
                    null,
                    null,
                    null,
                    { "orderable": false }
                ]
            });
        });
    </script>
{% endblock %}

{'fraction_non_alphanumeric': 0.18325434439178515, 'fraction_numerical': 0.003610923042202663, 'mean_word_length': 1.4338275672707304, 'pattern_counts': {'":': 5, '<': 95, '<?xml version=': 0, '>': 95, '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': '1920505', 'n_tokens_mistral': 1422, 'n_tokens_neox': 1257, 'n_words': 240}