{% do setAriane(1, 'Détail incident' | trad) %}
{% extends 'layout.twig' %}

{% block body %}
<section class="contenu">
    <h1>{{ 'Facture' | trad }}</h1>
    {{ ariane() }}
    
    <header class="bs-row flex-y-center">
        <h2 class="bs-col">{{ strBuild(
            'Litige sur la facture N°@1@' | trad,
            [incident.NO_FACT]
        ) }}</h2>
        <div class="bs-col text-right">
            {{ menuContextuel(false, false, menuContextuel, 5) }}
        </div>
    </header>
    <article class="block_edition">
        <div class="titre_block">{{ 'Detail' | trad }}</div>
        <div class="bs-row p-base">
            <div class="bs-col-half">
                <dl class="dl-info">
                    <dt>{{ 'Type d’incident' | trad }}</dt>
                    <dd>{{ incident.Type.LIBELLE }}</dd>
                    <dt>{{ 'Responsable du litige' | trad }}</dt>
                    <dd>{{ entityLabel(incident.Responsable, 'CODE', 'NOM') }}</dd>
                    <dt>{{ 'Commentaire' | trad }}</dt>
                    <dd>{{ shortLibelle(incident.DESCRIPT, 200) }}</dd>
                    {% if isLitige %}
                        <dt>{{ 'Facture' | trad }}</dt>
                        <dd><a href="{{ path(
                            'Facture.GestionFacture.detail',
                            {numFact: incident.NO_FACT}
                        ) }}">
                            {{- strBuild('Facture N°@1@' | trad, [incident.NO_FACT]) -}}
                        </a></dd>
                    {% endif %}
                </dl>
            </div>
            <div class="bs-col-half">
                <dl class="dl-info">
                    <dt>{{ 'Contacts fournisseur' | trad }}</dt>
                    <dd>{{ shortLibelle(incident.MAILS_CONTFOUR, 200) }}</dd>
                    <dt>{{ 'Contact comptable' | trad }}</dt>
                    <dd>{{ entityLabel(incident.Comptable, 'CODE', 'NOM') }}</dd>
                </dl>
            </div>
        </div>
    </article>
</section>
{% endblock %}