templates/dossier/pattern/_rooming.html.twig line 1

Open in your IDE?
  1. {% trans_default_domain 'walkinn' %}
  2. {% set isData = false %}
  3. {% set isParams = params is defined ? true : false %}
  4. {% set defaultFontSize = "12px" %}
  5. {% set fontSize = isParams ? "12px" : defaultFontSize %}
  6. {% if fontTaille is defined %}
  7. {% set fontSize = fontTaille %}
  8. {% endif %}
  9. {% set freeWidth = 0 %}
  10. {% set currentPaxesActifs = false %}
  11. {% if locale is not defined %}
  12.     {% set locale = 'fr_fr' %}
  13. {% endif %}
  14. <h4 class="fake-item" style="text-align: center;" >{{ 'rooming'|trans({"deepl": true}, null, locale)|upper }}</h4><br>
  15. {% for segmentId, roomingList in liste %}
  16.     {% if supplierSegmentsData is not defined or supplierSegmentsData is null or (supplierSegmentsData is defined and supplierSegmentsData[segmentId] is defined and supplierSegmentsData[segmentId]) and currentPaxesActifs|json_encode() != roomingList.dossierSegmentPaxesActifs|json_encode() %}
  17.         {% set isData = true %}
  18.         {% set currentPaxesActifs = roomingList.dossierSegmentPaxesActifs %}
  19.         <div class="tartenpion">
  20.             <div id="details-container">
  21.                 {% if roomingList.dossierSegmentPaxesActifs|length %}
  22.                     <span style="font-size:{{ fontSize }}!important;">{{ roomingList.dossierSegmentPaxesActifs|length }} PAX</span>
  23.                 {% endif %}
  24.                 {% if roomingList.dossierSegmentGuidesActifs|length %}
  25.                     <span style="font-size:{{ fontSize }}!important;">+&nbsp;{{ roomingList.dossierSegmentGuidesActifs|length }} {{ 'guide'|trans({"deepl": true}, null, locale)|upper }}</span>
  26.                 {% endif %}
  27.                 {% set separator = '-' %}
  28.                 {% if roomingList.roomingDataBis.sg_count %}
  29.                     <span style="font-size:{{ fontSize }}!important;">&nbsp;{{ separator  }}&nbsp;{{ roomingList.roomingDataBis.sg_count }} {{ 'single'|trans({"deepl": true}, null, locale)|upper }}</span>
  30.                     {% set separator = '+' %}
  31.                 {% endif %}
  32.                 {% if roomingList.roomingDataBis.db_count %}
  33.                     <span style="font-size:{{ fontSize }}!important;">&nbsp;{{ separator  }}&nbsp;{{ roomingList.roomingDataBis.db_count }} {{ 'double'|trans({"deepl": true}, null, locale)|upper }}</span>
  34.                     {% set separator = '+' %}
  35.                 {% endif %}
  36.                 {% if roomingList.roomingDataBis.tw_count %}
  37.                     <span style="font-size:{{ fontSize }}!important;">&nbsp;{{ separator  }}&nbsp;{{ roomingList.roomingDataBis.tw_count }} {{ 'twin'|trans({"deepl": true}, null, locale)|upper }}</span>
  38.                     {% set separator = '+' %}
  39.                 {% endif %}
  40.                 {% if roomingList.roomingDataBis.trp_count %}
  41.                     <span style="font-size:{{ fontSize }}!important;">&nbsp;{{ separator  }}&nbsp;{{ roomingList.roomingDataBis.trp_count }} {{ 'triple'|trans({"deepl": true}, null, locale)|upper }}</span>
  42.                     {% set separator = '+' %}
  43.                 {% endif %}
  44.                 {% if roomingList.roomingDataBis.qd_count %}
  45.                     <span style="font-size:{{ fontSize }}!important;">&nbsp;{{ separator  }}&nbsp;{{ roomingList.roomingDataBis.qd_count }} {{ 'quadruple'|trans({"deepl": true}, null, locale)|upper }}</span>
  46.                     {% set separator = '+' %}
  47.                 {% endif %}
  48.                 {% if roomingList.roomingDataBis.qt_count %}
  49.                     <span style="font-size:{{ fontSize }}!important;">&nbsp;{{ separator  }}&nbsp;{{ roomingList.roomingDataBis.qt_count }} {{ 'quintuple'|trans({"deepl": true}, null, locale)|upper }}</span>
  50.                 {% endif %}
  51.             </div>
  52.         </div>
  53.     {% endif %}
  54. {% endfor %}
  55. <br><br>