<commit_before>{% extends "layout.html.twig" %}

{% block titleContent %}
    <h1>Page produit de : {{ product.title }} </h1>
{% endblock %}

{% block content %}
    <div class="box">
        <div class="box-header">
            <h3 class="box-title">Description du produit : {{ product.title }} </h3>
        </div>
        <div class="box-body">
            <table id="example1" class="table table-bordered table-striped">
                <thead>
                <tr>
                    <th>Intitulé</th>
                    <th>Description</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>ID</td>
                    <td>{{ product.id }}</td>
                </tr>
                <tr>
                    <td>Titre</td>
                    <td>{{ product.title|default('Produit sans nom') }}</td>
                </tr>

                <tr>
                    <td>Description</td>
                    <td>{{ product.description }}</td>
                </tr>
                <tr>
                    <td>Prix</td>
                    <td>{{ product.price }}</td>
                </tr>
                </tbody>
                <tfoot>
                </tfoot>

            </table>

            <a href="{{ path("show_product", { id:product.id }) }}" class="btn btn-primary">Modifier</a>
            <a href="#" class="btn btn-danger">Supprimer</a>
        </div>
    </div>
{% endblock %}<commit_msg>ajout BDD + modif, feedback terminer, création de produit<commit_after>{% extends "layout.html.twig" %}

{% block titleContent %}
    <h1>Page produit de : {{ product.title }} </h1>
{% endblock %}

{% block content %}
    <div class="box">
        <div class="box-header">
            <h3 class="box-title">Description du produit : {{ product.title }} </h3>
        </div>
        <div class="box-body">
            <table id="example1" class="table table-bordered table-striped">
                <thead>
                <tr>
                    <th>Intitulé</th>
                    <th>Description</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>ID</td>
                    <td>{{ product.id }}</td>
                </tr>
                <tr>
                    <td>Titre</td>
                    <td>{{ product.title|default('Produit sans nom') }}</td>
                </tr>

                <tr>
                    <td>Description</td>
                    <td>{{ product.description }}</td>
                </tr>
                <tr>
                    <td>Prix</td>
                    <td>{{ product.price }}</td>
                </tr>
                </tbody>
                <tfoot>
                </tfoot>

            </table>

            <a href="{{ path("show_product", { id:product.id }) }}" class="btn btn-primary">Modifier</a>
            <a href="#" class="btn btn-danger">Supprimer</a>
        </div> 
    </div>
{% endblock %}
{'fraction_non_alphanumeric': 0.16438812937645883, 'fraction_numerical': 0.003334444814938313, 'mean_word_length': 1.1126760563380282, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 107, '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': '3820922', 'n_tokens_mistral': 920, 'n_tokens_neox': 833, 'n_words': 169}