diff --git a/static/css/styles.css b/static/css/styles.css index 4101854..ee97cdd 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -392,6 +392,17 @@ footer>div { line-height: 22px; margin-bottom: 8px; } +.four-column>div>div>a{ + color: #FFF; + /* Body text 2 */ + font-family: Inter; + font-size: 16px; + font-style: normal; + font-weight: 400; + line-height: 22px; + margin-bottom: 8px; + +} @@ -1638,7 +1649,7 @@ button.confirm_remove{ font-style: normal; font-weight: 600; margin-right: 3px; - padding: 5px 0px 5px 0px; + /*padding: 5px 0px 5px 0px;*/ font-size: 16px; } @@ -1649,7 +1660,7 @@ button.cancel_remove{ color: #808080cc; font-style: normal; font-weight: 600; - padding: 5px 0px 5px 0px; + /*padding: 5px 0px 5px 0px;*/ font-size: 16px; } @@ -1675,6 +1686,8 @@ span#sub_title_static{ font-weight: 500; line-height: 22px; } + + button#more_button{ display: inline-block; height: 60px; @@ -1741,9 +1754,9 @@ button#more_button{ padding: 0px 40px 0px 40px; } -.mid_block_static>span{ +.mid_block_static>.text_wrapper>span{ display: block; - width: 47%; + width: 50%; padding-bottom: 20px; } .benefit_img{ @@ -1784,6 +1797,10 @@ button#more_button{ margin-top: 120px; padding: 0px 40px 0px 40px; } +.bottom_block_static>#sub_title_static>p{ + /*перенос строки в верстке из переноса в html*/ + white-space: pre; +} .bottom_block_static>form>.inputs_l{ margin: auto; padding: 0px 10px 10px 10px; @@ -1822,6 +1839,49 @@ button#more_button{ text-align: center; margin-bottom: 10px; } + +.map_wrapper{ + position: absolute; + right: 8%; + top: 69%; + z-index: -1; + +} + +.text_wrapper{ + float: left; +} + +.feedback_form{ + margin-top: 120px; + padding: 0px 40px 0px 40px; + +} + +.feedback_form>form{ + width: 60%; + margin: 0 auto; +} +.left_inputs_form{ + float: left; + width: 45%; +} +.right_inputs_form{ + float: right; + width: 50%; +} + +.counter-box{ + position: relative; + display: inline-block; +} +.counter-text{ + position: absolute; + right: 10px; + bottom: 5px; +} + + /*end_static_pages*/ /*my routes END*/ diff --git a/static/js/user_profile.js b/static/js/user_profile.js index 2f8ecb4..3416a0a 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -700,10 +700,10 @@ function hideMenu(event) { } function checkDate() { - var dateDeparture = document.getElementById('id_departure_DT'); + let dateDeparture = document.getElementById('id_departure_DT'); let dateArrival = document.getElementById('id_arrival_DT'); - var DateStart = new Date(dateDeparture.value); - var DateEnd = new Date(dateArrival.value); + let DateStart = new Date(dateDeparture.value); + let DateEnd = new Date(dateArrival.value); if (DateEnd < DateStart) { // alert("End date cannot be less than Start date."); @@ -714,11 +714,12 @@ function checkDate() { errorMessage.textContent = "Дата прибытия, не может быть установлена раньше даты отправки" errorMessage.classList.add('errorlist') arrivalDiv.appendChild(errorMessage); - - - } - return true; + else if (DateEnd > DateStart){ + let arrivalDiv = document.getElementById('arrival_div'); + let errorMessage = document.querySelector('.errorlist'); + arrivalDiv.removeChild((errorMessage)) + } } @@ -755,6 +756,15 @@ function RequestCommercialOffer (el){ +function counterText(evt) { + const ta = document.querySelector('.feedback_form_message') + const counter = document.querySelector('.counter-text__current') + const text_l = evt.target.value.length + counter.innerText = text_l + + +} + diff --git a/templates/blocks/b_footer.html b/templates/blocks/b_footer.html index b898cef..2f36f06 100644 --- a/templates/blocks/b_footer.html +++ b/templates/blocks/b_footer.html @@ -42,9 +42,15 @@
+ {% translate "Приглашаем к сотрудничесту и развитию, вместе с большой и сильной командой. Мы предлагам" %} + {% translate "Вам вместе с нами развивать сервис и стать партнером" %} +
+ + +