<commit_before>{# Formulaire d'ajout d'un contact client #}

{{ form_start(form) }}

<table class="table table-bordered table-striped standard">
    <tr>
        <th>{{ form_label(form.faitPar) }}</th>
        <td>{{ form_widget(form.faitPar) }}</td>
    </tr>
    <tr>
        <th>{{ form_label(form.date) }}</th>
        <td>{{ form_widget(form.date) }}</td>
    </tr>
    <tr>
        <th>{{ form_label(form.objet) }}</th>
        <td>{{ form_widget(form.objet) }}</td>
    </tr>
    <tr>
        <th>{{ form_label(form.contenu) }}</th>
        <td>{{ form_widget(form.contenu) }}</td>
    </tr>
    <tr>
        <th>{{ form_label(form.moyenContact) }}</th>
        <td>{{ form_widget(form.moyenContact) }}</td>
    </tr>
</table>
{{ form_widget(form) }}

<div class="row">
    <div class="col-md-3 col-sm-5 col-xs-6">
        <button type="submit" class="btn btn-success">
            {% if form.vars.data.id %}
                {{ 'suivi.contact_client_enregistrer'|trans({}, 'suivi') }}
            {% else %}
                {{ 'suivi.contact_client_nouveau_enregistrer'|trans({}, 'suivi') }}
            {% endif %}
        </button>
        {{ form_end(form) }}
    </div>

    {% if delete_form is not none %}
        <div class="col-md-3 col-sm-5 col-xs-6">
            <form class="bootbox-confirm"
                  data-content="{{ 'suivi.contact_client_supprimer_confirm'|trans({}, 'suivi') }}"
                  action="{{ path('MgateSuivi_clientcontact_delete', { 'id': clientcontact.id }) }}" method="post">
                {{ form_widget(delete_form) }}
                <button class="btn btn-danger">
                    {{ 'suivi.contact_client_supprimer' |trans({}, 'suivi') }}
                </button>
            </form>
        </div>
    {% endif %}

</div>
<commit_msg>Check if form_delete is defined on ClientContact form<commit_after>{# Formulaire d'ajout d'un contact client #}

{{ form_start(form) }}

<table class="table table-bordered table-striped standard">
    <tr>
        <th>{{ form_label(form.faitPar) }}</th>
        <td>{{ form_widget(form.faitPar) }}</td>
    </tr>
    <tr>
        <th>{{ form_label(form.date) }}</th>
        <td>{{ form_widget(form.date) }}</td>
    </tr>
    <tr>
        <th>{{ form_label(form.objet) }}</th>
        <td>{{ form_widget(form.objet) }}</td>
    </tr>
    <tr>
        <th>{{ form_label(form.contenu) }}</th>
        <td>{{ form_widget(form.contenu) }}</td>
    </tr>
    <tr>
        <th>{{ form_label(form.moyenContact) }}</th>
        <td>{{ form_widget(form.moyenContact) }}</td>
    </tr>
</table>
{{ form_widget(form) }}

<div class="row">
    <div class="col-md-3 col-sm-5 col-xs-6">
        <button type="submit" class="btn btn-success">
            {% if form.vars.data.id %}
                {{ 'suivi.contact_client_enregistrer'|trans({}, 'suivi') }}
            {% else %}
                {{ 'suivi.contact_client_nouveau_enregistrer'|trans({}, 'suivi') }}
            {% endif %}
        </button>
        {{ form_end(form) }}
    </div>

    {% if delete_form is defined and delete_form is not none %}
        <div class="col-md-3 col-sm-5 col-xs-6">
            <form class="bootbox-confirm"
                  data-content="{{ 'suivi.contact_client_supprimer_confirm'|trans({}, 'suivi') }}"
                  action="{{ path('MgateSuivi_clientcontact_delete', { 'id': clientcontact.id }) }}" method="post">
                {{ form_widget(delete_form) }}
                <button class="btn btn-danger">
                    {{ 'suivi.contact_client_supprimer' |trans({}, 'suivi') }}
                </button>
            </form>
        </div>
    {% endif %}

</div>

{'fraction_non_alphanumeric': 0.1978682700191309, 'fraction_numerical': 0.003279584585952446, 'mean_word_length': 2.1770833333333335, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 91, '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': '2278451', 'n_tokens_mistral': 1317, 'n_tokens_neox': 1250, 'n_words': 223}