0.0.258 small_upd for articles
This commit is contained in:
@@ -1571,6 +1571,8 @@ form.new_route>.button_register>#registration{
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
div.departure_arrival>div>input{
|
||||
display: block;
|
||||
border-radius: 15px;
|
||||
@@ -2167,6 +2169,10 @@ button#more_button{
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
figure{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bottom_block_static{
|
||||
padding: 40px 40px 0px 40px;
|
||||
position: relative;
|
||||
@@ -2185,7 +2191,7 @@ button#more_button{
|
||||
.bottom_block_static>form>.inputs_l{
|
||||
margin: auto;
|
||||
padding: 0px 10px 10px 10px;
|
||||
width: 30%;
|
||||
width: 40%;
|
||||
}
|
||||
.bottom_block_static>form>.button_register{
|
||||
margin: auto;
|
||||
@@ -2705,7 +2711,7 @@ details[open] summary ~ *{
|
||||
}
|
||||
|
||||
.news_item {
|
||||
width: 48%;
|
||||
width: 32%;
|
||||
margin-bottom: 2%;
|
||||
background-color: white;
|
||||
filter: drop-shadow(-1px 4px 10px rgba(198, 199, 203, 0.20)) drop-shadow(0px -1px 10px rgba(198, 199, 203, 0.20));
|
||||
@@ -2880,7 +2886,7 @@ details[open] summary ~ *{
|
||||
|
||||
.previous_next_news{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
/*justify-content: space-between;*/
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
|
||||
@@ -765,29 +765,29 @@ function showLang(el) {
|
||||
//
|
||||
// }
|
||||
|
||||
// function checkDate() {
|
||||
// let dateDeparture = document.getElementById('id_departure_DT');
|
||||
// let dateArrival = document.getElementById('id_arrival_DT');
|
||||
// let DateStart = new Date(dateDeparture.value);
|
||||
// let DateEnd = new Date(dateArrival.value);
|
||||
// if (DateEnd < DateStart) {
|
||||
//
|
||||
// // alert("End date cannot be less than Start date.");
|
||||
// dateArrival.value = ""
|
||||
//
|
||||
// let arrivalDiv = document.getElementById('arrival_div')
|
||||
// let errorMessage = document.createElement('span');
|
||||
// errorMessage.textContent = "Дата прибытия, не может быть установлена раньше даты отправки"
|
||||
// errorMessage.classList.add('errorlist')
|
||||
// arrivalDiv.appendChild(errorMessage);
|
||||
// }
|
||||
// else if (DateEnd > DateStart){
|
||||
// let arrivalDiv = document.getElementById('arrival_div');
|
||||
// let errorMessage = document.querySelector('.errorlist');
|
||||
// arrivalDiv.removeChild((errorMessage))
|
||||
// }
|
||||
//
|
||||
// }
|
||||
function checkDate() {
|
||||
let dateDeparture = document.getElementById('id_departure_DT');
|
||||
let dateArrival = document.getElementById('id_arrival_DT');
|
||||
let DateStart = new Date(dateDeparture.value);
|
||||
let DateEnd = new Date(dateArrival.value);
|
||||
if (DateEnd < DateStart) {
|
||||
|
||||
// alert("End date cannot be less than Start date.");
|
||||
dateArrival.value = ""
|
||||
|
||||
let arrivalDiv = document.getElementById('arrival_div')
|
||||
let errorMessage = document.createElement('span');
|
||||
errorMessage.textContent = "Дата прибытия, не может быть установлена раньше даты отправки"
|
||||
errorMessage.classList.add('errorlist')
|
||||
arrivalDiv.appendChild(errorMessage);
|
||||
}
|
||||
else if (DateEnd > DateStart){
|
||||
let arrivalDiv = document.getElementById('arrival_div');
|
||||
let errorMessage = document.querySelector('.errorlist');
|
||||
arrivalDiv.removeChild((errorMessage))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function RequestCommercialOffer (el){
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
{# {% if form.initial.departure_DT %}value="{{ form.initial.departure_DT.date|date:"Y-m-d" }}T{{ form.initial.departure_DT.time|date:"H:i" }}"{% endif %}#}
|
||||
{# />#}
|
||||
{# boris change input #}
|
||||
<input class="el_form_b_new_route" type="text" id="id_departure_DT" name="departure_DT" placeholder="{% translate "Выберите дату и время" %}" {% if form.initial.departure_DT %} value="{{ form.initial.departure_DT|date:"y.m.d H:m" }}"{% endif %}/>
|
||||
<input class="el_form_b_new_route" onchange="checkDate()" type="text" id="id_departure_DT" name="departure_DT" placeholder="{% translate "Выберите дату и время" %}" {% if form.initial.departure_DT %} value="{{ form.initial.departure_DT|date:"y.m.d H:m" }}"{% endif %}/>
|
||||
<div id="displayRegervation"></div>
|
||||
|
||||
{% if not errors_off and form.errors and form.errors.departure_DT %}
|
||||
@@ -96,7 +96,7 @@
|
||||
{# {% if form.initial.arrival_DT %}value="{{ form.initial.arrival_DT.date|date:"Y-m-d" }}T{{ form.initial.arrival_DT.time|date:"H:i" }}"{% endif %}#}
|
||||
{# />#}
|
||||
{# boris change input #}
|
||||
<input class="el_form_b_new_route" type="text" id="id_arrival_DT" name="arrival_DT" placeholder="{% translate "Выберите дату и время" %}" {% if form.initial.arrival_DT %} value="{{ form.initial.arrival_DT|date:"y.m.d H:m" }}"{% endif %}/>
|
||||
<input class="el_form_b_new_route" onchange="checkDate()" type="text" id="id_arrival_DT" name="arrival_DT" placeholder="{% translate "Выберите дату и время" %}" {% if form.initial.arrival_DT %} value="{{ form.initial.arrival_DT|date:"y.m.d H:m" }}"{% endif %}/>
|
||||
|
||||
<div id="displayRegervation"></div>
|
||||
{# end #}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
{% extends "tb_base.html" %}
|
||||
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="advertisement_block_news">
|
||||
@@ -20,7 +22,7 @@
|
||||
|
||||
|
||||
|
||||
|
||||
<h2 id="title_static">{% translate "Читайте также:" %}</h2>
|
||||
|
||||
<div class="previous_next_news">
|
||||
{% for item in arts_top %}
|
||||
|
||||
Reference in New Issue
Block a user