templates/frontend/index/customer-package/package.html.twig line 1

Open in your IDE?
  1. <div class="rts-location-section section-gap mb-5" id="donation-areas">
  2.     <div class="container">
  3.         <div class="top-wrap">
  4.             <div class="section-title-area section-title-area-inner text-start mb--50">
  5.                 <h2 class="section-title">Bande erwerben</h2>
  6.             </div>
  7.             <a class="btn direction-btn btn-customer" href="{{ path('app_frontend_sponsor_list') }}#sponsor-list">
  8.                 Sponsorenliste <i class="far fa-long-arrow-right ml--5"></i>
  9.             </a>
  10.         </div>
  11.         <div class="row">
  12.             <div class="col-12">
  13.                 <div class="">
  14.                     <div class="package-wrapper" id="customer-package-{{ customerPackage.id }}">
  15.                         <div class="row m-0 p-0">
  16.                             <div class="col-1 m-0 p-0"></div>
  17.                             <div class="col-10 m-0  p-0">
  18.                                 <div class="row m-0 p-0">
  19.                                     <div class="col-12 m-0 p-0 text-center" id="TOP_TIER_TOP">
  20.                                         {% if sortedAreasArray.TOP_TIER is defined and sortedAreasArray.TOP_TIER.TOP is defined %}
  21.                                             {% set width = 100/sortedAreasArray.TOP_TIER.TOP|length %}
  22.                                             {% for area in sortedAreasArray.TOP_TIER.TOP  %}
  23.                                                 {% include 'frontend/index/customer-package/area.html.twig' with {
  24.                                                     'horizontal': true,
  25.                                                     'width': width,
  26.                                                     'area': area
  27.                                                 } %}
  28.                                             {% endfor %}
  29.                                         {% else %}
  30.                                             {# Oberrang #}
  31.                                         {% endif %}
  32.                                     </div>
  33.                                     <div class="col-12 m-0 p-0 text-center" id="MIDDLE_TIER_TOP">
  34.                                         {% if sortedAreasArray.MIDDLE_TIER is defined and sortedAreasArray.MIDDLE_TIER.TOP is defined %}
  35.                                             {% set width = 100/sortedAreasArray.MIDDLE_TIER.TOP|length %}
  36.                                             {% for area in sortedAreasArray.MIDDLE_TIER.TOP  %}
  37.                                                 {% include 'frontend/index/customer-package/area.html.twig' with {
  38.                                                     'horizontal': true,
  39.                                                     'width': width,
  40.                                                     'area': area
  41.                                                 } %}
  42.                                             {% endfor %}
  43.                                         {% else %}
  44.                                             {# Mittelrang #}
  45.                                         {% endif %}
  46.                                     </div>
  47.                                     <div class="col-12 m-0 p-0 text-center" id="LOWER_TIER_TOP">
  48.                                         {% if sortedAreasArray.LOWER_TIER is defined and sortedAreasArray.LOWER_TIER.TOP is defined %}
  49.                                             {% set width = 100/sortedAreasArray.LOWER_TIER.TOP|length %}
  50.                                             {% for area in sortedAreasArray.LOWER_TIER.TOP  %}
  51.                                                 {% include 'frontend/index/customer-package/area.html.twig' with {
  52.                                                     'horizontal': true,
  53.                                                     'width': width,
  54.                                                     'area': area
  55.                                                 } %}
  56.                                             {% endfor %}
  57.                                         {% else %}
  58.                                             {# Unterrang #}
  59.                                         {% endif %}
  60.                                     </div>
  61.                                 </div>
  62.                             </div>
  63.                             <div class="col-1 m-0 p-0"></div>
  64.                         </div>
  65.                         <div class="row h-100 m-0 p-0">
  66.                             <div class="col-1 m-0 p-0">
  67.                                 <div class="row h-100 m-0 p-0">
  68.                                     <div class="col-4 m-0 p-0" id="TOP_TIER_LEFT">
  69.                                         {% if sortedAreasArray.TOP_TIER is defined and sortedAreasArray.TOP_TIER.LEFT is defined %}
  70.                                             {% set height = 100/sortedAreasArray.TOP_TIER.LEFT|length %}
  71.                                             {% for area in sortedAreasArray.TOP_TIER.LEFT  %}
  72.                                                 {% include 'frontend/index/customer-package/area.html.twig' with {
  73.                                                     'horizontal': false,
  74.                                                     'width': height,
  75.                                                     'area': area
  76.                                                 } %}
  77.                                             {% endfor %}
  78.                                         {% else %}
  79.                                             {# <div class="vertical-text">Oberrang</div> #}
  80.                                         {% endif %}
  81.                                     </div>
  82.                                     <div class="col-4 m-0 p-0" id="MIDDLE_TIER_LEFT">
  83.                                         {% if sortedAreasArray.MIDDLE_TIER is defined and sortedAreasArray.MIDDLE_TIER.LEFT is defined %}
  84.                                             {% set height = 100/sortedAreasArray.MIDDLE_TIER.LEFT|length %}
  85.                                             {% for area in sortedAreasArray.MIDDLE_TIER.LEFT  %}
  86.                                                 {% include 'frontend/index/customer-package/area.html.twig' with {
  87.                                                     'horizontal': false,
  88.                                                     'width': height,
  89.                                                     'area': area
  90.                                                 } %}
  91.                                             {% endfor %}
  92.                                         {% else %}
  93.                                             {# <div class="vertical-text">Mittelrang</div> #}
  94.                                         {% endif %}
  95.                                     </div>
  96.                                     <div class="col-4 m-0 p-0 text-center" id="LOWER_TIER_LEFT">
  97.                                         {% if sortedAreasArray.LOWER_TIER is defined and sortedAreasArray.LOWER_TIER.LEFT is defined %}
  98.                                             {% set height = 100/sortedAreasArray.LOWER_TIER.LEFT|length %}
  99.                                             {% for area in sortedAreasArray.LOWER_TIER.LEFT  %}
  100.                                                 {% include 'frontend/index/customer-package/area.html.twig' with {
  101.                                                     'horizontal': false,
  102.                                                     'width': height,
  103.                                                     'area': area
  104.                                                 } %}
  105.                                             {% endfor %}
  106.                                         {% else %}
  107.                                             {# <div class="vertical-text">Unterrang</div> #}
  108.                                         {% endif %}
  109.                                     </div>
  110.                                 </div>
  111.                             </div>
  112.                             <div class="col-10 m-0 p-0">
  113.                                 <img src="{{ asset(customerPackage.packageImage.image.src) }}" class="img-fluid" alt="Paket Bild"/>
  114.                             </div>
  115.                             <div class="col-1 m-0 p-0">
  116.                                 <div class="row m-0 p-0 h-100">
  117.                                     <div class="col-4 m-0 p-0 text-center" id="LOWER_TIER_RIGHT">
  118.                                         {% if sortedAreasArray.LOWER_TIER is defined and sortedAreasArray.LOWER_TIER.RIGHT is defined %}
  119.                                             {% set height = 100/sortedAreasArray.LOWER_TIER.RIGHT|length %}
  120.                                             {% for area in sortedAreasArray.LOWER_TIER.RIGHT  %}
  121.                                                 {% include 'frontend/index/customer-package/area.html.twig' with {
  122.                                                     'horizontal': false,
  123.                                                     'width': height,
  124.                                                     'area': area
  125.                                                 } %}
  126.                                             {% endfor %}
  127.                                         {% else %}
  128.                                             {# <div class="vertical-text">Unterrang</div> #}
  129.                                         {% endif %}
  130.                                     </div>
  131.                                     <div class="col-4 m-0 p-0 text-center" id="MIDDLE_TIER_RIGHT">
  132.                                         {% if sortedAreasArray.MIDDLE_TIER is defined and sortedAreasArray.MIDDLE_TIER.RIGHT is defined %}
  133.                                             {% set height = 100/sortedAreasArray.MIDDLE_TIER.RIGHT|length %}
  134.                                             {% for area in sortedAreasArray.MIDDLE_TIER.RIGHT  %}
  135.                                                 {% include 'frontend/index/customer-package/area.html.twig' with {
  136.                                                     'horizontal': false,
  137.                                                     'width': height,
  138.                                                     'area': area
  139.                                                 } %}
  140.                                             {% endfor %}
  141.                                         {% else %}
  142.                                             {# <div class="vertical-text">Mittelrang</div> #}
  143.                                         {% endif %}
  144.                                     </div>
  145.                                     <div class="col-4 m-0 p-0 text-center" id="TOP_TIER_RIGHT">
  146.                                         {% if sortedAreasArray.TOP_TIER is defined and sortedAreasArray.TOP_TIER.RIGHT is defined %}
  147.                                             {% set height = 100/sortedAreasArray.TOP_TIER.RIGHT|length %}
  148.                                             {% for area in sortedAreasArray.TOP_TIER.RIGHT  %}
  149.                                                 {% include 'frontend/index/customer-package/area.html.twig' with {
  150.                                                     'horizontal': false,
  151.                                                     'width': height,
  152.                                                     'area': area
  153.                                                 } %}
  154.                                             {% endfor %}
  155.                                         {% else %}
  156.                                             {# <div class="vertical-text">Oberrang</div> #}
  157.                                         {% endif %}
  158.                                     </div>
  159.                                 </div>
  160.                             </div>
  161.                         </div>
  162.                         <div class="row h-100 m-0 p-0">
  163.                             <div class="col-1 m-0 p-0"></div>
  164.                             <div class="col-10 m-0 p-0">
  165.                                 <div class="row m-0 p-0">
  166.                                     <div class="col-12 m-0 p-0 text-center" id="LOWER_TIER_BOTTOM">
  167.                                         {% if sortedAreasArray.LOWER_TIER is defined and sortedAreasArray.LOWER_TIER.BOTTOM is defined %}
  168.                                             {% set width = 100/sortedAreasArray.LOWER_TIER.BOTTOM|length %}
  169.                                             {% for area in sortedAreasArray.LOWER_TIER.BOTTOM  %}
  170.                                                 {% include 'frontend/index/customer-package/area.html.twig' with {
  171.                                                     'horizontal': true,
  172.                                                     'width': width,
  173.                                                     'area': area
  174.                                                 } %}
  175.                                             {% endfor %}
  176.                                         {% else %}
  177.                                             {# Unterrang #}
  178.                                         {% endif %}
  179.                                     </div>
  180.                                     <div class="col-12 m-0 p-0 text-center" id="MIDDLE_TIER_BOTTOM">
  181.                                         {% if sortedAreasArray.MIDDLE_TIER is defined and sortedAreasArray.MIDDLE_TIER.BOTTOM is defined %}
  182.                                             {% set width = 100/sortedAreasArray.MIDDLE_TIER.BOTTOM|length %}
  183.                                             {% for area in sortedAreasArray.MIDDLE_TIER.BOTTOM  %}
  184.                                                 {% include 'frontend/index/customer-package/area.html.twig' with {
  185.                                                     'horizontal': true,
  186.                                                     'width': width,
  187.                                                     'area': area
  188.                                                 } %}
  189.                                             {% endfor %}
  190.                                         {% else %}
  191.                                             {# Mittelrang #}
  192.                                         {% endif %}
  193.                                     </div>
  194.                                     <div class="col-12 m-0 p-0 text-center" id="TOP_TIER_BOTTOM">
  195.                                         {% if sortedAreasArray.TOP_TIER is defined and sortedAreasArray.TOP_TIER.BOTTOM is defined %}
  196.                                             {% set width = 100/sortedAreasArray.TOP_TIER.BOTTOM|length %}
  197.                                             {% for area in sortedAreasArray.TOP_TIER.BOTTOM  %}
  198.                                                 {% include 'frontend/index/customer-package/area.html.twig' with {
  199.                                                     'horizontal': true,
  200.                                                     'width': width,
  201.                                                     'area': area
  202.                                                 } %}
  203.                                             {% endfor %}
  204.                                         {% else %}
  205.                                             {# Oberrang #}
  206.                                         {% endif %}
  207.                                     </div>
  208.                                 </div>
  209.                             </div>
  210.                             <div class="col-1 m-0 p-0"></div>
  211.                         </div>
  212.                     </div>
  213.                 </div>
  214.             </div>
  215.         </div>
  216.         <div class="row mt-5">
  217.             <div class="col-md-3"><div class="p-3 text-light" style="background-color: {{ customerPackage.colorFree|raw }}">Verfügbar</div></div>
  218.             <div class="col-md-3"><div class="p-3 text-light" style="background-color: {{ customerPackage.colorReserved|raw }}">Reserviert</div></div>
  219.             <div class="col-md-3"><div class="p-3 text-light" style="background-color: {{ customerPackage.colorSold|raw }}">Vergeben</div></div>
  220.             <div class="col-md-3"><div class="p-3 text-light" style="background-color: {{ customerPackage.colorBlocked|raw }}">Blockiert</div></div>
  221.         </div>
  222.     </div>
  223. </div>