templates/dossier/pattern/_rooming_no_head.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. {% for segmentId, roomingList in liste %}
  15.     {% 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() %}
  16.         {% set isData = true %}
  17.         {% set currentPaxesActifs = roomingList.dossierSegmentPaxesActifs %}
  18.         <div class="tartenpion">
  19.             <div id="details-container">
  20.                 {% if roomingList.dossierSegmentPaxesActifs|length %}
  21.                     <span style="font-size:{{ fontSize }}!important;">{{ roomingList.dossierSegmentPaxesActifs|length }} PAX</span>
  22.                 {% endif %}
  23.                 {% if roomingList.dossierSegmentGuidesActifs|length %}
  24.                     <span style="font-size:{{ fontSize }}!important;">+&nbsp;{{ roomingList.dossierSegmentGuidesActifs|length }} {{ 'guide'|trans({"deepl": true}, null, app.request.locale)|upper }}</span>
  25.                 {% endif %}
  26.                 {% set separator = '-' %}
  27.                 {% if roomingList.roomingDataBis.sg_count %}
  28.                     <span style="font-size:{{ fontSize }}!important;">&nbsp;{{ separator  }}&nbsp;{{ roomingList.roomingDataBis.sg_count }} {{ 'single'|trans({"deepl": true}, null, app.request.locale)|upper }}</span>
  29.                     {% set separator = '/' %}
  30.                 {% endif %}
  31.                 {% if roomingList.roomingDataBis.db_count %}
  32.                     <span style="font-size:{{ fontSize }}!important;">&nbsp;{{ separator  }}&nbsp;{{ roomingList.roomingDataBis.db_count }} {{ 'double'|trans({"deepl": true}, null, app.request.locale)|upper }}</span>
  33.                     {% set separator = '/' %}
  34.                 {% endif %}
  35.                 {% if roomingList.roomingDataBis.tw_count %}
  36.                     <span style="font-size:{{ fontSize }}!important;">&nbsp;{{ separator  }}&nbsp;{{ roomingList.roomingDataBis.tw_count }} {{ 'twin'|trans({"deepl": true}, null, app.request.locale)|upper }}</span>
  37.                     {% set separator = '/' %}
  38.                 {% endif %}
  39.                 {% if roomingList.roomingDataBis.trp_count %}
  40.                     <span style="font-size:{{ fontSize }}!important;">&nbsp;{{ separator  }}&nbsp;{{ roomingList.roomingDataBis.trp_count }} {{ 'triple'|trans({"deepl": true}, null, app.request.locale)|upper }}</span>
  41.                     {% set separator = '/' %}
  42.                 {% endif %}
  43.                 {% if roomingList.roomingDataBis.qd_count %}
  44.                     <span style="font-size:{{ fontSize }}!important;">&nbsp;{{ separator  }}&nbsp;{{ roomingList.roomingDataBis.qd_count }} {{ 'quadruple'|trans({"deepl": true}, null, app.request.locale)|upper }}</span>
  45.                     {% set separator = '/' %}
  46.                 {% endif %}
  47.                 {% if roomingList.roomingDataBis.qt_count %}
  48.                     <span style="font-size:{{ fontSize }}!important;">&nbsp;{{ separator  }}&nbsp;{{ roomingList.roomingDataBis.qt_count }} {{ 'quintuple'|trans({"deepl": true}, null, app.request.locale)|upper }}</span>
  49.                 {% endif %}
  50.             </div>
  51.         </div>
  52.     {% endif %}
  53. {% endfor %}