Система регионов
This commit is contained in:
@@ -42,9 +42,16 @@ a:hover path{
|
||||
}
|
||||
|
||||
.logo {
|
||||
|
||||
|
||||
font-size: 30px;
|
||||
|
||||
|
||||
}
|
||||
.logo img {
|
||||
display: block;
|
||||
width: auto;
|
||||
height: auto;
|
||||
max-width: 100%;
|
||||
max-height: 48px;
|
||||
}
|
||||
|
||||
header .menu {
|
||||
@@ -102,9 +109,12 @@ header .menu>li:last-child {
|
||||
padding: 13px 8px;
|
||||
}
|
||||
.logo {
|
||||
|
||||
|
||||
font-size: 20px;
|
||||
|
||||
|
||||
}
|
||||
.logo img {
|
||||
max-height: 32px;
|
||||
}
|
||||
}
|
||||
.btn {
|
||||
|
||||
@@ -454,16 +454,15 @@ function citySelect(el){
|
||||
width: 400,
|
||||
});
|
||||
|
||||
$('.city-item').click(function(e){
|
||||
e.preventDefault();
|
||||
var cityId = $(this).data('city-id');
|
||||
var cityName = $(this).text();
|
||||
send.post('index.php?route=common/city/save', {city_id: cityId}, function(json){
|
||||
if (json.success) {
|
||||
$('.current-city-name').text(json.name);
|
||||
$('.modal').modal('hide');
|
||||
}
|
||||
});
|
||||
$('.city-item').click(function(e){
|
||||
e.preventDefault();
|
||||
var cityId = $(this).data('city-id');
|
||||
var saveUrl = $('.city-grid').data('save-url');
|
||||
send.post(saveUrl, {city_id: cityId, redirect: window.location.href}, function(json){
|
||||
if (json.success) {
|
||||
window.location.href = json.redirect;
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -597,4 +596,4 @@ function UpdatePage(elem, data = false, callback = false, url = '', anim = true)
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
</div>
|
||||
{% else %}
|
||||
<p>{{ text_empty }}</p>
|
||||
<a href="/" class="btn btn-dark">{{ button_continue }}</a>
|
||||
<a href="{{ continue }}" class="btn btn-dark">{{ button_continue }}</a>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
@@ -29,4 +29,4 @@
|
||||
|
||||
{{ content_bottom }}
|
||||
|
||||
{{ footer }}
|
||||
{{ footer }}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div class="city-grid">
|
||||
<div class="city-grid" data-save-url="{{ action }}">
|
||||
{% for zone in zones %}
|
||||
<button type="button" class="city-item{% if zone.active %} active{% endif %}" data-city-id="{{ zone.zone_id }}">{{ zone.name }}</button>
|
||||
{% endfor %}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<h1>{{ heading_title }}</h1>
|
||||
{% if categories %}
|
||||
<p><strong>{{ text_index }}</strong> {% for category in categories %}
|
||||
<a href="index.php?route=product/manufacturer#{{ category.name }}">{{ category.name }}</a> {% endfor %} </p>
|
||||
<a href="{{ manufacturer }}#{{ category.name }}">{{ category.name }}</a> {% endfor %} </p>
|
||||
{% for category in categories %}
|
||||
<h2 id="{{ category.name }}">{{ category.name }}</h2>
|
||||
{% if category.manufacturer %}
|
||||
@@ -53,7 +53,7 @@
|
||||
<h1>{{ heading_title }}</h1>
|
||||
{% if categories %}
|
||||
<p><strong>{{ text_index }}</strong> {% for category in categories %}
|
||||
<a href="index.php?route=product/manufacturer#{{ category.name }}">{{ category.name }}</a> {% endfor %} </p>
|
||||
<a href="{{ manufacturer }}#{{ category.name }}">{{ category.name }}</a> {% endfor %} </p>
|
||||
{% for category in categories %}
|
||||
<h2 id="{{ category.name }}">{{ category.name }}</h2>
|
||||
{% if category.manufacturer %}
|
||||
@@ -75,4 +75,4 @@
|
||||
</div>
|
||||
{{ footer }}
|
||||
|
||||
#}
|
||||
#}
|
||||
|
||||
Reference in New Issue
Block a user