<commit_before>{% extends "::base.html.twig" %}
{% block title %}Module Evenement{% endblock %}

{% block body %}
<h2>Les Evenements</h2> <a href="{{ path('ipez_party_create') }}"><button type="button" class="btn btn-primary">Créer un Evénement</button></a>
<table class="table table-striped table-hover ">
    <thead>
        <tr>
            <th>Nom Evenement</th>
            <th>Lieu</th>
            <th>Nombre Demande</th>
            <th>Participant</th>
            <th>Date</th>
            <th>Action</th>
        </tr>
    </thead>
    <tbody>
        {% for object in parties %}
        <tr>
            <td>{{ object.name }}</td>
            <td>{{ object.town }}</td>
            <td>
                {% set count = 0 %}
                {% for part in participation %}
                    {% if part.partyId == object.id and part.confirm == 0 %}
                        {% set count = count + 1 %}
                    {% endif %}
                {% endfor %}
                {{ count }}
            </td>
            <td>
                {% set count = 0 %}
                {% for part in participation %}
                    {% if part.partyId == object.id and part.confirm == 1 %}
                        {% set count = count + 1 %}
                    {% endif %}<commit_msg>Evenement - Ajout nombre de participant index<commit_after>{% extends "::base.html.twig" %}
{% block title %}Module Evenement{% endblock %}

{% block body %}
<h2>Les Evenements</h2> <a href="{{ path('ipez_party_create') }}"><button type="button" class="btn btn-primary">Créer un Evénement</button></a>
<table class="table table-striped table-hover ">
    <thead>
        <tr>
            <th>Nom Evenement</th>
            <th>Lieu</th>
            <th>Nombre d'invitation</th>
            <th>Nombre demande envoyé</th>
            <th>Participant confirmé</th>
            <th>Date</th>
            <th>Action</th>
        </tr>
    </thead>
    <tbody>
        {% for object in parties %}
        <tr>
            <td>{{ object.name }}</td>
            <td>{{ object.town }}</td>
            <td>{{ object.nbParticipant }}</td>
            <td>
                {% set count = 0 %}
                {% for part in participation %}
                    {% if part.partyId == object.id and part.confirm == 0 %}
                        {% set count = count + 1 %}
                    {% endif %}
                {% endfor %}
                {{ count }}
            </td>
            <td>
                {% set count = 0 %}
                {% for part in participation %}
                    {% if part.partyId == object.id and part.confirm == 1 %}
                        {% set count = count + 1 %}
                    {% endif %}
{'fraction_non_alphanumeric': 0.15913267181183388, 'fraction_numerical': 0.005880191106210952, 'mean_word_length': 1.346551724137931, 'pattern_counts': {'":': 2, '<': 71, '<?xml version=': 0, '>': 71, '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': '6200781', 'n_tokens_mistral': 868, 'n_tokens_neox': 745, 'n_words': 192}