custom/apps/SwagDhlApp/Resources/views/storefront/component/dhl/find-station-modal.html.twig line 1

Open in your IDE?
  1. {% set trans = {
  2.     btnSetLocation: "dhlStore.modal.btnSetLocation"|trans
  3. } %}
  4. {% set mapStationOptions = {
  5.     googleApiKey: config('SwagDhlApp.config.googleMapApiKey'),
  6.     shopId: config('core.app.shopId').value,
  7.     countryCode: config('SwagDhlApp.config.countryCode'),
  8.     trans: trans
  9. } %}
  10. {% block dhl_find_station_modal_wrapper %}
  11.     <div class="modal fade find-station-modal"
  12.          id="dhlMapModal"
  13.          tabindex="-1"
  14.          role="dialog"
  15.          aria-hidden="true"
  16.          data-map-station="true"
  17.          data-map-station-options="{{ mapStationOptions|json_encode|raw|escape('html_attr') }}"
  18.     >
  19.         {% block dhl_find_station_modal %}
  20.             <div class="modal-dialog modal-lg" role="document">
  21.                 {% block dhl_find_station_modal_content %}
  22.                     <div class="modal-content">
  23.                         {% block dhl_find_station_modal_header %}
  24.                             <div class="modal-header">
  25.                                 <h5 class="modal-title">
  26.                                     {{ "dhlStore.modal.title"|trans|sw_sanitize }}
  27.                                 </h5>
  28.                                 <button type="button" class="close"
  29.                                         data-dismiss="modal"
  30.                                         aria-label="Close">
  31.                                     <span aria-hidden="true">&times;</span>
  32.                                 </button>
  33.                             </div>
  34.                         {% endblock %}
  35.                         {% block dhl_find_station_modal_body %}
  36.                             <div class="modal-body">
  37.                                 {% block dhl_find_station_modal_body_search %}
  38.                                     <div class="form-row">
  39.                                         {% block dhl_find_station_modal_location_search_label %}
  40.                                             <div class="form-group col-md-12">
  41.                                                 <div class="find-dhl-pack-station">
  42.                                                     <label for="location">
  43.                                                         {{ "dhlStore.modal.labelLocation"|trans|sw_sanitize }}
  44.                                                     </label>
  45.                                                     <input
  46.                                                         class="form-control js-dhl-location-search"
  47.                                                         type="text"
  48.                                                         name="location"
  49.                                                         id="location"
  50.                                                         value=""
  51.                                                         placeholder="{{ "dhlStore.modal.locationPlaceholder"|trans|sw_sanitize }}"/>
  52.                                                 </div>
  53.                                             </div>
  54.                                         {% endblock %}
  55.                                     </div>
  56.                                 {% endblock %}
  57.                                 {% block dhl_find_station_modal_location %}
  58.                                     <div class="form-row">
  59.                                         {% block dhl_find_station_modal_my_location_button %}
  60.                                             <div class="form-group col-md-4">
  61.                                                 <button type="button"
  62.                                                         class="btn btn-primary btn-sm"
  63.                                                         id="dhl-use-my-location"
  64.                                                 >
  65.                                                     {% sw_icon 'target-big' %}
  66.                                                     {{ "dhlStore.modal.btnUseMyLocation"|trans|sw_sanitize }}
  67.                                                 </button>
  68.                                             </div>
  69.                                         {% endblock %}
  70.                                         {% block dhl_find_station_modal_search_filters %}
  71.                                             <div
  72.                                                 class="form-group col-md-8 align-items-center justify-content-end">
  73.                                                 <div class="row justify-content-end m-1">
  74.                                                     <span class="mr-2">
  75.                                                         {{ "dhlStore.modal.textShowFilterCheckboxes"|trans|sw_sanitize }}
  76.                                                     </span>
  77.                                                     {% block dhl_find_station_modal_search_filters_pack_station %}
  78.                                                         <div
  79.                                                             class="custom-control custom-checkbox custom-control-inline">
  80.                                                             <input class="custom-control-input"
  81.                                                                    checked
  82.                                                                    type="checkbox"
  83.                                                                    name="station"
  84.                                                                    id="dhl-station-type"
  85.                                                                    value="station"
  86.                                                             />
  87.                                                             <label for="dhl-station-type"
  88.                                                                    class="custom-control-label">
  89.                                                                 {{ "dhlStore.modal.labelDhlPackStation"|trans|sw_sanitize }}
  90.                                                             </label>
  91.                                                         </div>
  92.                                                     {% endblock %}
  93.                                                     {% block dhl_find_station_modal_search_filters_post_office %}
  94.                                                         <div
  95.                                                             class="custom-control custom-checkbox custom-control-inline">
  96.                                                             <input class="custom-control-input"
  97.                                                                    checked
  98.                                                                    type="checkbox"
  99.                                                                    name="dhl-post-type"
  100.                                                                    id="dhl-post-type"
  101.                                                                    value="office"
  102.                                                             />
  103.                                                             <label for="dhl-post-type"
  104.                                                                    class="custom-control-label">
  105.                                                                 {{ "dhlStore.modal.labelDhlPostOffice"|trans|sw_sanitize }}
  106.                                                             </label>
  107.                                                         </div>
  108.                                                     {% endblock %}
  109.                                                     {% block dhl_find_station_modal_search_filters_service_point %}
  110.                                                         <div
  111.                                                             class="custom-control custom-checkbox custom-control-inline">
  112.                                                             <input class="custom-control-input"
  113.                                                                    checked
  114.                                                                    type="checkbox"
  115.                                                                    name="dhl-servicepoint-type"
  116.                                                                    id="dhl-servicepoint-type"
  117.                                                                    value="servicepoint"
  118.                                                             />
  119.                                                             <label for="dhl-servicepoint-type"
  120.                                                                    class="custom-control-label">
  121.                                                                 {{ "dhlStore.modal.labelDhlServicePoint"|trans|sw_sanitize }}
  122.                                                             </label>
  123.                                                         </div>
  124.                                                     {% endblock %}
  125.                                                 </div>
  126.                                             </div>
  127.                                         {% endblock %}
  128.                                     </div>
  129.                                 {% endblock %}
  130.                                 {% block dhl_find_station_modal_google_map_wrapper %}
  131.                                     <div class="dhl-google-map-wrapper">
  132.                                         {% block dhl_find_station_modal_google_map %}
  133.                                             <div id="dhl-google-map"></div>
  134.                                         {% endblock %}
  135.                                     </div>
  136.                                 {% endblock %}
  137.                             </div>
  138.                         {% endblock %}
  139.                     </div>
  140.                 {% endblock %}
  141.             </div>
  142.         {% endblock %}
  143.     </div>
  144. {% endblock %}