{% extends 'layout.twig' %}

{% block body %}
<section class="contenu clearfix"  id="listeFormat">
	<h1>
		{{ 'Format' | trad }}
	</h1>
		
    {{ ariane() }}

	<div class="tab-content" id="tab-content">
        <h4>{{ 'Paramétrage du format' }} : {{ idFormat }}</h4>

		{% include '@catalogue/ParametrageFormat/_arianeSub.twig' %}

		<table class="table table-hover" id="mainTableCde">
			<thead class="thead-dark">
				<tr>
					<th scope="col" width="">{{ 'Catalogue' | trad }}</th>
					<th scope="col" width="">{{ 'Version' | trad }}</th>
					<th scope="col" width="">{{ 'Statut' | trad }}</th>
					<th scope="col" width="">{{ 'URL de connexion' | trad }}</th>
					<th scope="col" width="">{{ 'Mode de déploiement' | trad }}</th>
					{% if blocEntete.format.TYPDATAS == 'OCI' %}
						<th scope="col" width="">{{ 'Version OCI' | trad }}</th>
					{% elseif blocEntete.format.TYPDATAS == 'cXML' %}
						<th scope="col" width="">{{ 'Identifiant du serveur Ariba' | trad }}</th>
						<th scope="col" width="">{{ 'ShardeSecret' | trad }}</th>
						<th scope="col" width="">{{ 'URL du site frs pour soumission' | trad }}</th>
					{% endif %}
				</tr>
			</thead>
			<tbody>
				{% for catalogue in listeCatalogue %}
					<tr>
						<td>{{ catalogue.DESCRIPTION_CATA }} ({{ catalogue.ID_CATAL }})</td>
						<td>{{ catalogue.VERSCATA }}</td>
						<td>{{ statutVersion[catalogue.STATUT] }}</td>
						<td>{{ catalogue.URL_CONNECT }}</td>
						<td>{{ ModeDeploiement[catalogue.MODEPLOY] }}</td>
						{% if blocEntete.format.TYPDATAS == 'OCI' %}
							<td>{{ catalogue.VERSION_OCI }}</td>
						{% elseif blocEntete.format.TYPDATAS == 'cXML' %}
							<td>{{ catalogue.IDSRVARIBA }}</td>
							<td>{{ catalogue.IDFOURPUNCH }}</td>
							<td>{{ catalogue.URLSITEFOUR }}</td>
						{% endif %}
					</tr>
				{% endfor %}
			</tbody>
		</table>

	</div>
</section>
{% include '@catalogue/ParametrageFormat/_script.twig' %}
{% endblock %}
