templates/Components/Form/term.html.twig line 1

  1. <div class="col-md-12 col-sm-12">
  2.     <div class="cruise-list-view">
  3.         <div class="col-md-4 col-sm-6 clear-padding">
  4.             <div class="text-center" style="margin-top: 10px">
  5.                 <strong>Čislo zájezdu</strong><br/>
  6.                 {{ term.number }}<br/>
  7.                 <br/>
  8.                 <strong>Počet nocí / dní</strong><br/>
  9.                 {{ term.numberOfDays }}<br/>
  10.                 <br/>
  11.                 <strong>Den odjezdu</strong><br/>
  12.                 {{ term.departureDay }}<br/>
  13.             </div>
  14.         </div>
  15.         <div class="col-md-8 col-sm-8">
  16.             <h4>{{ term.start|date('d. m. Y') }} - {{ term.end|date('d. m. Y') }}</h4>
  17.             <br />
  18.             {% if(term.destination.generatePriceTable) %}
  19.                 <a style="background-color: transparent;color: #d2494c;text-decoration: underline" href="{{ path('app_pricetable_pdf', {'id':term.destination.id}) }}" target="_blank">Zobrazit aktualní dostupnost</a>
  20.             {% endif %}
  21.             {% if(term.termPrices|length > 0) %}
  22.                 <table class="table">
  23.                     {% if(term.priceType=='term') %}
  24.                         <tr>
  25.                             <th>Typ ubytování</th>
  26.                             <th>
  27.                                 Cena za zájezd
  28.                             </th>
  29.                             <th></th>
  30.                         </tr>
  31.                     {% endif %}
  32.                     {% for termPrice in contractOrderService.getTermPricesForTerm(term) %}
  33.                         {% if(contractOrderService.canOrderTermPrice(termPrice)) %}
  34.                             <tr>
  35.                                 <td style="padding:5px;">{{ termPrice.accommodation.name }}</td>
  36.                                 <td style="padding:5px;">{{ termPrice.price|format_currency('CZK') }}</td>
  37.                                 {% if(termPrice.term.priceType=='person') and loop.first %}
  38.                                     {% if(termPrice.term.destination.id==4) %}
  39.                                         <td rowspan="{{ term.termPrices|length }}" style="vertical-align: center; padding:5px;"
  40.                                             style="width: 100px" class="text-center">
  41.                                             <a
  42.                                                     href="{{ path('form_select_term_accommodation', {'termId': term.id , 'id':42}) }}">Vybrat standard pokoj</a>
  43.                                             <br />
  44.                                             <br />
  45.                                             {% if(termPrice.term.canOrderAccommodation(43)) %}
  46.                                                 <a href="{{ path('form_select_term_accommodation', {'termId': term.id , 'id':43}) }}">Vybrat De luxe pokoj</a>
  47.                                             {% endif %}
  48.                                         </td>
  49.                                     {% else %}
  50.                                         <td rowspan="{{ term.termPrices|length }}" style="vertical-align: center; padding:5px;"
  51.                                             style="width: 100px" class="text-center"><a
  52.                                                     href="{{ path('form_select_term', {'id':term.id}) }}">Vybrat</a></td>
  53.                                     {% endif %}
  54.                                 {% endif %}
  55.                                 {% if(termPrice.term.priceType=='term') %}
  56.                                     <td style="padding:5px;" style="width: 100px" class="text-center"><a
  57.                                                 href="{{ path('form_select_term_price', {'id':termPrice.id}) }}">Vybrat</a>
  58.                                     </td>
  59.                                 {% endif %}
  60.                             </tr>
  61.                         {% endif %}
  62.                     {% endfor %}
  63.                 </table>
  64.             {% else %}
  65.                 <table class="table">
  66.                     <tr>
  67.                         <th>Typ ubytování</th>
  68.                         <th></th>
  69.                     </tr>
  70.                     {% for accommodation in term.destination.accommodations %}
  71.                         {% if(term.number=='2702' or     term.number=='2902' ) %} {# Benatky #}
  72.                             {% if(accommodation.id!=26) %}
  73.                                 <tr>
  74.                                     <td style="padding:5px;">{{ accommodation.name }}</td>
  75.                                     <td style="padding:5px;" style="width: 100px" class="text-center"><a
  76.                                                 href="{{ path('form_select_term_accommodation', {'termId': term.id , 'id':accommodation.id}) }}">Vybrat</a>
  77.                                     </td>
  78.                                 </tr>
  79.                             {% endif %}
  80.                         {% else %}
  81.                             <tr>
  82.                                 <td style="padding:5px;">{{ accommodation.name }}</td>
  83.                                 <td style="padding:5px;" style="width: 100px" class="text-center"><a
  84.                                             href="{{ path('form_select_term_accommodation', {'termId': term.id , 'id':accommodation.id}) }}">Vybrat</a>
  85.                                 </td>
  86.                             </tr>
  87.                         {% endif %}
  88.                     {% endfor %}
  89.                 </table>
  90.             {% endif %}
  91.         </div>
  92.     </div>
  93.     <div class="clearfix-sm"></div>
  94. </div>