{% extends 'layout.twig' %}

{% block body %}
	
	<script type="text/javascript" src="{{ baseUrl('ext/highcharts/highcharts/highcharts.js') }}"></script>
    <script type="text/javascript" src="{{ baseUrl('ext/highcharts/highcharts/highcharts-more.js') }}"></script>
    <script type="text/javascript" src="{{ baseUrl('ext/highcharts/highcharts/modules/solid-gauge.js') }}"></script>
    <script type="text/javascript" src="{{ baseUrl('ext/highcharts/highcharts/modules/exporting.js') }}"></script>
    <script type="text/javascript" src="{{ baseUrl('ext/highcharts/highcharts/modules/offline-exporting.js') }}"></script>
	
	<div class="contenu clearfix"  id="fournisseurs">
    	<h1>{{ 'Fournisseurs' | trad }}</h1>
        {{ ariane() }}
         

        <h2>{{ 'Fournisseur' | trad }}  : {{ libelle_fournisseur }} ({{ code_fournisseur }})</h2>
        
        {% include '@API/BVD/block_note_bvd.twig' %}
        
        {{ arianeSub() }}

         
     	<div id="BVD" class="tab-pane fade in active clearfix">
        	<div class="padding15">

                {% include '@API/BVD/block_information.twig' %}

                <div class="tab-content clearfix">
               
               		<h2>Score de stabilité financière par CRIF Decision Solution Ltd</h2>
               
               		<div class="flex-center">
                   		<div class="colonne3">
                   			{{ Highcharts(dataHighchart1) }}
                   		</div> 
                   		
                   		<div class="colonne3" style="width:40%;margin-left:80px;">
                        	<div class="block_edition" style="height:100%;font-size: 14px;">
                        		<div class="informations clearfix">
                                	<p>
                                    	<span class="champs_label">{{ 'Principaux facteurs influençant' | trad }} :</span>
                                        <span class="resultat">
                                        	{% for raison in valueFrs.record.CRIF_DESCR_HIST.CRIF_DESCR_HIST %}
                                        		- {{ raison }} <br />
                                        	{% endfor %}
                                        </span>
                                    </p>
                                </div>
                                <div class="informations clearfix">
                                	<p>
                                    	<span class="champs_label">{{ 'Scores pour groupe de comparaison' | trad }} :</span>
                                        <span class="resultat">{{ valueFrs.record.CRIF_PEER_MIN }} {{ 'minimum' | trad }}</span>
                                        <span class="resultat">{{ valueFrs.record.CRIF_PEER_AVG }} {{ 'moyenne' | trad }}</span>
                                        <span class="resultat">{{ valueFrs.record.CRIF_PEER_MAX }} {{ 'maximum' | trad }}</span>
                                    </p>
                                </div>
                                <div class="informations clearfix">
                                	<p>
                                    	<span class="champs_label">{{ 'Activité' | trad }} :</span>
                                        <span class="resultat">{{ valueFrs.record.CRIF_PEER_DESCR }}</span>
                                    </p>
                                </div>
                        	</div>
                   		</div>
                    </div>
                </div>
                
            </div>
        </div>
    </div>
{% endblock %}