Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
<div class="modal default-select-region-modal_new" id="default-select-region-modal" tabindex="-1" role="dialog" data-curr-region={{current_region.id}}> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-content-wrapper"> <div class="modal-header"> <div class="modal-header__block"> <h5 class="modal-title" id="exampleModalLongTitle"> {{'site_templates.default.dialogs.select_region.select_city' | ft}}</h5> <span class="modal-subtitle" id="exampleModalLongTitle"> {{'site_templates.default.dialogs.select_region.select_city_list' | ft}}</span> </div> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <div class="modal-region__inner"> <div id="map_new" style="display: none;"></div> <script src="https://api-maps.yandex.ru/2.1/?lang=ru_RU" type="text/javascript"></script> <ul class="modal-region-cities"> {% for list_region in regions %} {% assign region_lat = list_region.latitude %} {% assign region_lng = list_region.longitude %} <li class="modal-region-cities__item" data-name="{{list_region.name}}" > <div class="modal-region-cities__title">{{list_region.name}}</div> <a href="#" class="{% if current_region.id == list_region.id %}active{% endif %} modal-region-cities__btn"></a> <ul class="modal-region-cities-address"> {% for delivery_point in list_region.delivery_points %} {% assign link_href = "?current_delivery_point_id=" | append: delivery_point.id %} {% assign point_lat = delivery_point.lat %} {% assign point_lng = delivery_point.lng %} <li class="modal-region-cities-address__item" data-region-item data-objectID="{{delivery_point.id}}" {% if point_lat != null and point_lng != null and point_lat != '' and point_lng != '' %} {% assign is_delivery_point = true %} data-cord="{{point_lat}},{{point_lng}}" {% endif %} {% if delivery_point.address != '' %} data-address="{{delivery_point.address}}" {% endif %} {% if delivery_point.phone != '' %} data-phone="{{delivery_point.phone}}" {% endif %} {% if delivery_point.work != '' %} data-work="{{delivery_point.work_mode}}" {% endif %}> <div class="modal-region-cities__block"> <div class="modal-region-cities__address">{{delivery_point.address}}</div> <div class="modal-region-cities__phone">{{delivery_point.phone}}</div> <div class="modal-region-cities__mode">{{delivery_point.work_mode}}</div> </div> <a href="{{ link_href }}" class="delivery-item {% if current_delivery_point.id == delivery_point.id %}active{% endif %} modal-region-cities-address__btn"></a> <div class="modal-region__check"> <input type="checkbox" onclick="location.href = '{{ link_href }}'" {% if current_delivery_point.id == delivery_point.id %}checked{% endif %}> <label></label> </div> </li> {% endfor %} <a href="#" class="modal-region__btn">Выбрать другой город</a> </ul> </li> {% endfor %} </ul> </div> </div> </div> </div> </div> {% if site_config.enable_delivery_point_select %} {% if current_customer %} <script type="text/javascript"> $(document).ready(function (event) { $('.rmc-choice-city-link').on('click', function(e){ e.preventDefault(); $('#default-select-region-modal').modal('show'); }) }); </script> {% endif %} {% unless current_delivery_point %} {% assign cookie_current_delivery_point_id = 'current_delivery_point_id' | cookie_by_code %} {% unless cookie_current_delivery_point_id %} <script type="text/javascript"> $(document).ready(function (event) { $('#default-select-region-modal').modal('show'); }); </script> {% endunless %} {% endunless %} {% endif %}