This commit is contained in:
2023-08-11 16:30:02 +03:00
parent 1962306282
commit 993daa4f82
4 changed files with 37 additions and 21 deletions

File diff suppressed because one or more lines are too long

View File

@@ -624,6 +624,7 @@ input.deactive {
background-size: 50% 50%;
}
.custom-checkbox:not(:disabled):not(:checked)+label:hover::before {
border-color: #FF613A;
}
@@ -650,6 +651,9 @@ input.deactive {
.custom-checkbox:disabled+label::before:hover {
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.12);
}
#img_msg_by_email{
margin-top: 7px;
}
section.login {
max-width: 1400px;
@@ -752,6 +756,16 @@ section.profile {
section.profile {
display: flex;
}
h2.title_new_route{
font-family: Inter;
font-size: 44px;
font-style: normal;
font-weight: 700;
line-height: 52px;
text-align: center;
width: 550px;
margin-left: 200px;
}
.menu_profile {
width: 31%;
@@ -1159,6 +1173,7 @@ input#id_extra_phone
}
.checkbox_cargo_type>div{
min-width: 300px;
margin-bottom: 20px;
}

5
static/img/svg/Info2.svg Normal file
View File

@@ -0,0 +1,5 @@
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M10 17.5C14.1421 17.5 17.5 14.1421 17.5 10C17.5 5.85786 14.1421 2.5 10 2.5C5.85786 2.5 2.5 5.85786 2.5 10C2.5 14.1421 5.85786 17.5 10 17.5Z" stroke="#FF613A" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M9.375 9.375H10V13.75H10.625" stroke="#FF613A" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M9.84375 7.5C10.3615 7.5 10.7812 7.08027 10.7812 6.5625C10.7812 6.04473 10.3615 5.625 9.84375 5.625C9.32598 5.625 8.90625 6.04473 8.90625 6.5625C8.90625 7.08027 9.32598 7.5 9.84375 7.5Z" fill="#FF613A"/>
</svg>

After

Width:  |  Height:  |  Size: 637 B

View File

@@ -5,6 +5,7 @@
<form class = "new_route" name="new_route" method="post">
{% csrf_token %}
<h2 class="title_new_route">Разместить объявление о перевозке посылки</h2>
<div>
<label for="id_type_transport">{{ form.fields.type_transport.label }}</label>
</div>
@@ -75,7 +76,6 @@
<input
oninput="searchTown(this)"
onclick="showSearchList(this)"
{# onblur="setTimeout(()=>onblurInputField(event, this), 200)"#}
onblur="onblurInputField(event, this)"
onFocus="this.select()"
autocomplete="off"
@@ -109,7 +109,6 @@
<input
oninput="searchTown(this)"
onclick="showSearchList(this)"
{# onblur="setTimeout(()=>onblurInputField(event, this), 200)"#}
onblur="onblurInputField(event, this)"
onFocus="this.select()"
@@ -217,11 +216,12 @@
<hr>
<div class="extra-controls">
<input type="text" class="js-input" placeholder="Укажите вес" value="" />
<label for="id_weight">{{ form.fields.weight.label }}</label>
<input type="text" maxlength="3" class="js-input" placeholder="Укажите вес" value="" />
</div>
<div class="range-slider">
<label for="id_weight">{{ form.fields.weight.label }}</label>
<input
type="text"
id="id_weight"
@@ -237,21 +237,6 @@
</div>
{# <div class="prise-slider-div">#}
{# <span class="filter-span">Цена</span>#}
{# <div id="slider-range"></div>#}
{# <div class="input-control-price">#}
{# <div class="slider-range-div-input">#}
{# <span class="span-price-placeholder">от</span>#}
{# <input min="0" max="1000" type="number" onchange="set_range(this)" class="form-control" name="price" id="control-price-1">#}
{# </div>#}
{##}
{# <div class="slider-range-div-input">#}
{# <span class="span-price-placeholder">до</span>#}
{# <input min="0" max="1000" type="number" onchange="set_range(this)" class="form-control" name="price" id="control-price-2">#}
{# </div>#}
{# </div>#}
{# </div>#}
<hr>
@@ -261,6 +246,8 @@
<input
type="phone"
name="phone"
maxlength="13"
minlength="11"
placeholder="{{ form.fields.phone.label }}"
{% if form.fields.phone.required %} required{% endif %}
id="id_phone"
@@ -279,6 +266,8 @@
type="phone"
name="extra_phone"
id="id_extra_phone"
maxlength="13"
minlength="11"
placeholder="{{ form.fields.extra_phone.label }}"
{% if form.initial.extra_phone %}value="{{ form.initial.extra_phone}}"{% endif %}
/>
@@ -291,8 +280,15 @@
<hr>
<div>
<input type="checkbox" name="receive_msg_by_email" class="custom-checkbox" id="id_receive_msg_by_email">
<label for="id_receive_msg_by_email">{{ form.fields.receive_msg_by_email.label }}</label>
<input type="checkbox" name="receive_msg_by_email" id="id_receive_msg_by_email">
<img id="img_msg_by_email"
title="Выберите, чтобы получать уведомление на E-mail, как только появится посылка по заданным критериям"
src="/static/img/svg/info2.svg"
alt="">
{% if not errors_off and form.errors and form.errors.receive_msg_by_email %}
<span>{{ form.errors.receive_msg_by_email }}</span>
{% endif %}