{% extends estXHR is defined and estXHR ? 'page-xhr.html.twig' : 'page.html.twig' %} {% block title %}Composants{% endblock %} {% block style %} {% endblock %} {% block page %}
{{ statuts[composant.statut] }}
{% if is_granted('ROLE_PUSH') and estDeployable %} Deployer {% endif %} Dupliquer Modifier
Informations
Réference
{{ composant.code }}
Libellé
{{ composant.nom }}
Description
{{ composant.description }}
Date début validité
{{ composant.dateValiditeDebut ? composant.dateValiditeDebut | date('d/m/Y') : '-' }}
Date fin validité
{{ composant.dateValiditeFin ? composant.dateValiditeFin | date('d/m/Y') : '-' }}
Frais annexes
{% if composant.fraisFixes != null %}{{ composant.fraisFixes }} €{% endif %}
Taux taxe
{% if composant.tauxTaxe != null %}{{ composant.tauxTaxe }} %{% endif %}
Taux d'assiette taxable
{% if composant.tauxAssietteTaxable != null %}{{ composant.tauxAssietteTaxable }} %{% endif %}
Commentaires
{{ composant.commentaires }}
{% if composant.idTypeComposant.peutAvoirFormat %}
Format de résultat
{{ composant.formatResultat ? composant.formatResultat.getLibelle : '' }}
Format de résultat pour Webservice
{{ composant.formatResultatWs ? composant.formatResultatWs.getLibelle : '' }}
{% endif %}
Sélection multiple (composants enfants)
{{ composant.childSelectionMultiple ? 'Oui' : 'Non' }}
Sélection obligatoire (composants enfants)
{{ composant.childSelectionRequired ? 'Oui' : 'Non' }}
Sélection facultative (composants enfants)
{{ composant.childSelectionOptional ? 'Oui' : 'Non' }}
Critères
{% if criteres | length == 0 %}
Aucun critère
{% endif %} {% for critere in criteres %} {% if critere.active == 1 %} {{ critere.code }} - {{ critere.libelle }} {% if critere.idType != null %}({{ critere.idType.libelle }}){% endif %} {% if criteresvaleursDefaultByCritereId[critere.id] is defined %} - Défaut : {{ criteresvaleursDefaultByCritereId[critere.id] }}{% endif %} {% endif %} {% endfor %}
Variables
{% if variables | length == 0 %}
Aucune variable
{% endif %} {% for variable in variables %} {{ variable.code }} - {{ variable.libelle }} {% if variable.idType != null %}({{ variable.idType.libelle }}){% endif %} {% if variable.valeurDefaut %} - Défaut : {{ variable.valeurDefaut }}{% endif %} {% endfor %}
Formule
{% if composant.idFormule %} {{ composant.idFormule.libelle }}

{{ composant.idFormule.description }}

Modifier Dissocier
{% else %}
{% set values = [] %} {% for formule in formules %} {% set values = values | merge([{'label': formule.libelle, 'value': formule.id}]) %} {% endfor %}
{% if is_granted('ROLE_FORMULE') %}
Nouvelle formule
{% endif %} {% endif %}
{% endblock %}