From b7ff089ccab12cd7ee8c98fd2df2b94af4bf889e Mon Sep 17 00:00:00 2001 From: ArtemB Date: Fri, 11 Aug 2023 18:05:53 +0300 Subject: [PATCH] 0.0.90 --- static/css/styles.css | 24 ++++++++++++++- static/js/user_profile.js | 9 ++++++ templates/blocks/b_header.html | 2 +- templates/blocks/profile/b_new_route.html | 36 +++++++++++++++-------- 4 files changed, 56 insertions(+), 15 deletions(-) diff --git a/static/css/styles.css b/static/css/styles.css index ad52fbe..ecf0bec 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -106,6 +106,16 @@ html, body{ height: 100%; } +input::-webkit-outer-spin-button, +input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; +} + +input[type='number'] { + -moz-appearance: textfield; +} + @@ -925,6 +935,7 @@ select { line-height: 22px; appearance: none; background: white url("/static/img/png/icon-arrow.svg") no-repeat calc(100% - 15px) center; + margin-top: 10px; } @@ -947,6 +958,13 @@ select#id_type_transport{ font-weight: 400; line-height: 22px; appearance: none; + margin-top: 10px; + +} +select#id_type_transport>option{ + font-size: 16px; + font-family: Inter; + } @@ -1010,6 +1028,7 @@ div.from_to_country>div>input:nth-child(3){ background: white url("/static/img/png/icon-arrow.svg") no-repeat calc(100% - 15px) center; width: 392px; height: 60px; + margin-top: 10px; } @@ -1028,7 +1047,8 @@ div.departure_arrival>div>input{ width: 392px; height: 60px; padding-left: 2px; - /*background: white url("/static/img/svg/Calendar.svg") no-repeat calc(100% - 3px) center;*/ + margin-top: 10px; + } @@ -1138,6 +1158,7 @@ div.from_to_place>div>select{ font-weight: 400; line-height: 22px; appearance: none; + margin-top: 20px; } @@ -1157,6 +1178,7 @@ input#id_extra_phone font-weight: 400; line-height: 22px; appearance: none; + margin-top: 10px; } diff --git a/static/js/user_profile.js b/static/js/user_profile.js index 603e7be..cda6a96 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -370,6 +370,13 @@ function sendRoute(el, routeID = null){ }); } +// function maxLength(el) { +// if (el.value.length > el.maxLength){ +// el.value = el.value.slice(0, el.maxLength); +// } +// +// } + @@ -528,3 +535,5 @@ function getRoute(el){ + + diff --git a/templates/blocks/b_header.html b/templates/blocks/b_header.html index 7b35d1b..0c1f35f 100644 --- a/templates/blocks/b_header.html +++ b/templates/blocks/b_header.html @@ -13,7 +13,7 @@ - Профиль + {{ user.username }} {% endif %} diff --git a/templates/blocks/profile/b_new_route.html b/templates/blocks/profile/b_new_route.html index 2edcd21..9784610 100644 --- a/templates/blocks/profile/b_new_route.html +++ b/templates/blocks/profile/b_new_route.html @@ -6,24 +6,28 @@
{% csrf_token %}

Разместить объявление о перевозке посылки

-
- -
+ + +
+ {% if not errors_off and form.errors and form.errors.type_transport %} {{ form.errors.type_transport }} @@ -217,7 +221,13 @@
- +