<commit_before>{% extends "TroiswaBackBundle::layout-admin.html.twig" %}

{% block title %}Fiche produit{% endblock %}

{% block h1 %}<i class="fa fa-cube"></i> Fiche produit{% endblock %}

{% block breadcrumb %}
    {{ parent() }}
    <li>
        <a href="{{ path('troiswa_back_product_list') }}"><i class="fa fa-cube"></i> Lister les produits</a>
    </li>
    <li class="active">
        <i class="fa fa-cube"></i> Fiche produit
    </li>
{% endblock %}

{% block content %}
    <div class="panel panel-info">

        <div class="panel-heading">
            <h3 class="panel-title">{{ product.title }}</h3>
        </div>
        <div class="panel-body">

            <div class="row">

            {% if product.cover is null %}
                {% set image = '/assets/images/default.png' %}
            {% else %}
                {% set image =  product.cover.getwebpath('thumb-small') %}
            {% endif %}
            <figure class="col-lg-5">
                <img src="{{ asset(image) }}" class="img-thumbnail" />
            </figure>

            <div class="well col-lg-6">
                <p>{{ product.description }}</p>
            </div>

            </div>

            <ul class="list-group">
                <li class="list-group-item">Marque : {% if product.marque.title is defined %} {{ product.marque.title }}{% endif %}</li>
                <li class="list-group-item">Catégorie : {% if product.cat.titre is defined %} {{ product.cat.titre }} {% endif %}</li>
                <li class="list-group-item">Quantité :  {{ product.quantity }}</li>
                <li class="list-group-item">Prix : {{ product.price | number_format(2, '.', ' ') }} €</li>
                {% if product.active %}
                    {% set actif = "oui" %}<commit_msg>mise en page de la description et de l'image<commit_after>{% extends "TroiswaBackBundle::layout-admin.html.twig" %}

{% block title %}Fiche produit{% endblock %}

{% block h1 %}<i class="fa fa-cube"></i> Fiche produit{% endblock %}

{% block breadcrumb %}
    {{ parent() }}
    <li>
        <a href="{{ path('troiswa_back_product_list') }}"><i class="fa fa-cube"></i> Lister les produits</a>
    </li>
    <li class="active">
        <i class="fa fa-cube"></i> Fiche produit
    </li>
{% endblock %}

{% block content %}
    <div class="panel panel-info">

        <div class="panel-heading">
            <h3 class="panel-title">{{ product.title }}</h3>
        </div>
        <div class="panel-body">

            <div class="well row">

            {% if product.cover is null %}
                {% set image = '/assets/images/default.png' %}
            {% else %}
                {% set image =  product.cover.getwebpath('thumb-small') %}
            {% endif %}
            <figure class="col-lg-3">
                <img src="{{ asset(image) }}" alt="{{ product.cover.alt }}" title="{{ product.cover.alt }}" class="img-thumbnail" />
            </figure>

            <div class="col-lg-8">
                <p>{{ product.description }}</p>
            </div>

            </div>

            <ul class="list-group">
                <li class="list-group-item">Marque : {% if product.marque.title is defined %} {{ product.marque.title }}{% endif %}</li>
                <li class="list-group-item">Catégorie : {% if product.cat.titre is defined %} {{ product.cat.titre }} {% endif %}</li>
                <li class="list-group-item">Quantité :  {{ product.quantity }}</li>
                <li class="list-group-item">Prix : {{ product.price | number_format(2, '.', ' ') }} €</li>
                {% if product.active %}
                    {% set actif = "oui" %}
{'fraction_non_alphanumeric': 0.19407082075212737, 'fraction_numerical': 0.0032939884710403516, 'mean_word_length': 1.9795584627964022, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 75, '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': '3521097', 'n_tokens_mistral': 1218, 'n_tokens_neox': 1105, 'n_words': 244}