{% extends 'Customer/Delivery/base.html.twig' %}{% block javascripts %} {{ parent() }} {{ encore_entry_script_tags('customer/delivery-point-detail') }} <script src="https://api.mapy.cz/loader.js"></script> <script>Loader.load()</script>{% endblock %}{% block catchword %} {% trans %}Výdejní místo{% endtrans %} - {{ dp.name }}{% endblock %}{% block content %} <div class="row"> <div class="col"><a href="{{ path('customer_delivery_points') }}">{% trans %}Zpět na výpis výdejen{% endtrans %}</a> </div> </div> <div class="row"> {% if (dp.getGpsLongitude != false and dp.getGpsLatitude != false) or dp.images is not empty %} <div class="col-4"> {% if dp.getGpsLongitude != false and dp.getGpsLatitude != false %} <h5>{% trans from 'support' %}Mapa výdejny{% endtrans %}</h5> <div id="mapDiv" style="width:100%; height:400px;"></div> <span id='mapLatitude' class="d-none">{{ dp.gpsLatitude }}</span> <span id='mapLongitude' class="d-none">{{ dp.gpsLongitude }}</span> <div class="mt-2 d-flex justify-content-center"> {% if dp.gps is not null %} <a href="https://mapy.cz/zakladni?q={{ dp.gps }}">Mapy.cz</a> {% endif %} </div> <hr> {% endif %} {% if dp.images is not empty %} <h5>{% trans from 'support' %}Obrázky{% endtrans %}</h5> {% for image in dp.images %} <div class="mt-2"> <img alt="{% trans %}obrázek výdejny{% endtrans %}" width="100%" height="" src="{{ image.imageBase64 }}" class="image-object-fit-contain rounded"> </div> {% endfor %} {% endif %} </div> {% endif %} <div class="col-8"> <div class="row"> <table class="table table-borderless"> <tbody> <tr> <th style="width: 25%">{% trans from 'support' %}Kód výdejny{% endtrans %}</th> <td id="dp-code">{{ dp.code }}</td> </tr> <tr> <th style="width: 25%">{% trans from 'support' %}Název{% endtrans %}</th> <td id="dp-name">{{ dp.name }}</td> </tr> <tr> <th style="width: 25%">{% trans from 'support' %}Adresa{% endtrans %}</th> <td id="address">{{ dp.address.address1 ~ ', ' ~ dp.address.city ~ ', ' ~ (dp.address.district ? (dp.address.district ~ ', ')) ~ dp.address.zipCode }}</td> </tr> <tr> <th style="width: 25%">{% trans from 'support' %}Otevírací hodiny{% endtrans %}</th> <td id="dp-openingHours">{{ dp.openingHours }}</td> </tr> <tr> <th style="width: 25%">{% trans from 'support' %}Stav pobočky{% endtrans %}</th> <td id="dp-active">{{ dp.activeHandover ? 'Otevřeno' : 'Zavřeno' | trans }}</td> </tr> {% if dp.aboutUs is not empty %} <tr> <th style="width: 25%">{% trans from 'support' %}O nás{% endtrans %}</th> <td id="dp-aboutUs">{{ dp.aboutUs |nl2br }}</td> </tr> {% endif %} {% if dp.descriptionGeneral is not empty %} <tr> <th style="width: 25%">{% trans from 'support' %}Popis cesty{% endtrans %}</th> <td id="dp-descriptionGeneral">{{ dp.descriptionGeneral |nl2br }}</td> </tr> {% endif %} {% if dp.descriptionCar is not empty %} <tr> <th style="width: 25%">{% trans from 'support' %}Cesta autem{% endtrans %}</th> <td id="dp-descriptionCar">{{ dp.descriptionCar |nl2br }}</td> </tr> {% endif %} {% if dp.descriptionPublic is not empty %} <tr> <th style="width: 25%">{% trans from 'support' %}Cesta MHD{% endtrans %}</th> <td id="dp-descriptionPublic">{{ dp.descriptionPublic |nl2br }}</td> </tr> {% endif %} {% if dp.webSite is not empty and (dp.webSite starts with 'http') %} <tr> <th style="width: 25%">{% trans from 'support' %}Webová stránka výdejny{% endtrans %}</th> <td id="dp-webSite"><a href="{{ dp.webSite }}" target="_blank">{{ dp.webSite }}</a></td> </tr> {% endif %} </tbody> </table> </div> {% if holidays is not empty %} <div class="row"> <div class="col-lg-8 col-md-12 col-sm-12 col-12"> {% include 'Customer/Delivery/holidays_table.html.twig' with holidays %} </div> </div> {% endif %} </div> </div>{% endblock %}