<div class="container enet-subshop--information {{ cls }}">
<div class="card">
<div class="card-body">
<div class="box-select">
{#
kann auch in ein template tag verpackt werden
evtl ist das sogar nötig um den :hot auszulösen
<template data-enet-subshopchange></template>
#}
<select class="custom-select" name="enet_subshop_select" data-enet-subshopchange="true">
<option value="">Bitte Wählen</option>
{% for channel in enet_subshop %}
{% if channel.maintance == false and channel.type.name == 'Storefront' %}
{# <pre>
id: {{ channel.id }}
name: {{ channel.translated.name }}
domains: <a href="{{ channel.domains.elements|first.url }}">{{ channel.domains.elements|first.url }}</a>
custom: {{ channel.translated.customFields.enet_postalcode }} {{ channel.translated.customFields.enet_adress_street }}
</pre> #}
<option value="{{ channel.id }}">
{% if channel.translated.customFields.enet_frontendname %}
{{ channel.translated.customFields.enet_frontendname }}
{% else %}
{{ channel.translated.name }}
{% endif %}
</option>
{% endif %}
{% endfor %}
</select>
</div>
<div class="box-information">
{% for channel in enet_subshop %}
{% if channel.maintance == false and channel.type.name == 'Storefront' %}
<div data-shopid="{{ channel.id }}">
<p class="info">
<b>
{% if channel.translated.customFields.enet_frontendname %}
{{ channel.translated.customFields.enet_frontendname }}
{% else %}
{{ channel.translated.name }}
{% endif %}
</b><br>
{{ channel.translated.customFields.enet_postalcode }}<br>
{{ channel.translated.customFields.enet_adress_street }}<br>
<hr>
{{ channel.translated.customFields.enet_adress_opentimes |raw }}<br><br>
</p>
{% if channel.active %}
<a href="{{ channel.domains.elements|first.url }}" class="btn btn-primary">zur Filiale</a>
{% else %}
<span class="btn btn-light">Filiale folgt in kürze</span>
{% endif %}
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
</div>