custom/plugins/EnetSubshop/src/Resources/views/storefront/enet-subshop/start.html.twig line 1

Open in your IDE?
  1. <div class="container enet-subshop--information {{ cls }}">
  2.     <div class="card">
  3.         <div class="card-body">
  4.             <div class="box-select">
  5.                 {#
  6.                     kann auch in ein template tag verpackt werden
  7.                     evtl ist das sogar nötig um den :hot auszulösen
  8.                     <template data-enet-subshopchange></template>
  9.                 #}
  10.                 <select class="custom-select" name="enet_subshop_select" data-enet-subshopchange="true">
  11.                     <option value="">Bitte Wählen</option>
  12.                     {% for channel in enet_subshop %}
  13.                         {% if channel.maintance == false and channel.type.name == 'Storefront' %}
  14.                             {# <pre>
  15.                                 id: {{ channel.id }}
  16.                                 name: {{ channel.translated.name }}
  17.                                 domains: <a href="{{ channel.domains.elements|first.url }}">{{ channel.domains.elements|first.url }}</a>
  18.                                 custom: {{ channel.translated.customFields.enet_postalcode }} {{ channel.translated.customFields.enet_adress_street }}
  19.                             </pre> #}
  20.                                 <option value="{{ channel.id }}">
  21.                                     {% if channel.translated.customFields.enet_frontendname %}
  22.                                         {{ channel.translated.customFields.enet_frontendname }}
  23.                                     {% else %}
  24.                                         {{ channel.translated.name }}
  25.                                     {% endif %}
  26.                                 </option>
  27.                         {% endif %}
  28.                     {% endfor %}
  29.                 </select>
  30.             </div>
  31.             <div class="box-information">
  32.                 {% for channel in enet_subshop %}
  33.                     {% if channel.maintance == false and channel.type.name == 'Storefront' %}
  34.                             <div data-shopid="{{ channel.id }}">
  35.                                 <p class="info">
  36.                                     <b>
  37.                                         {% if channel.translated.customFields.enet_frontendname %}
  38.                                             {{ channel.translated.customFields.enet_frontendname }}
  39.                                         {% else %}
  40.                                             {{ channel.translated.name }}
  41.                                         {% endif %}
  42.                                     </b><br>
  43.                                     {{ channel.translated.customFields.enet_postalcode }}<br>
  44.                                     {{ channel.translated.customFields.enet_adress_street }}<br>
  45.                                     <hr>
  46.                                     {{ channel.translated.customFields.enet_adress_opentimes |raw }}<br><br>
  47.                                 </p>
  48.                                 {% if channel.active %}
  49.                                     <a href="{{ channel.domains.elements|first.url }}" class="btn btn-primary">zur Filiale</a>
  50.                                 {% else %}
  51.                                     <span class="btn btn-light">Filiale folgt in kürze</span>
  52.                                 {% endif %}
  53.                             </div>
  54.                     {% endif %}
  55.                 {% endfor %}
  56.             </div>
  57.         </div>
  58.     </div>
  59. </div>