0.0.27 my routes
This commit is contained in:
@@ -84,7 +84,7 @@ def get_profile_new_route_page_html(request, data):
|
||||
tpl = 'v2/blocks/b_make_mover_order.html'
|
||||
form.fields['type_transport'].choices = type_transport_choices[:-1]
|
||||
else:
|
||||
tpl = 'v2/blocks/b_make_poster_order.html'
|
||||
tpl = 'v2/blocks/b_make_customer_route.html'
|
||||
form.fields['type_transport'].choices = type_transport_choices
|
||||
|
||||
Dict.update({'owner_type': data['owner_type']})
|
||||
|
||||
@@ -382,8 +382,8 @@ def create_or_change_route_ajax(request, route_id=None):
|
||||
route_old_Dict = None
|
||||
|
||||
owner_type = None
|
||||
tpl_form_by_owner_type = 'v2/forms/f_make_poster_order.html'
|
||||
tpl_block_by_owner_type = 'v2/blocks/b_make_poster_order.html'
|
||||
tpl_form_by_owner_type = 'v2/forms/f_make_customer_route.html'
|
||||
tpl_block_by_owner_type = 'v2/blocks/b_make_customer_route.html'
|
||||
|
||||
try:
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
&:has(div){
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
}
|
||||
.required_field_icon{
|
||||
color: var(--label-required-color);
|
||||
|
||||
@@ -15,11 +15,11 @@
|
||||
}
|
||||
@media (max-width: 992px) {
|
||||
.w_radio_inputs{
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
grid-template-columns: repeat(2, max-content);
|
||||
}
|
||||
} @media (max-width: 768px) {
|
||||
.w_radio_inputs{
|
||||
grid-template-columns: repeat(1, 1fr);
|
||||
grid-template-columns: repeat(1, max-content);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,12 @@
|
||||
.w_radio_inputs{
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
grid-template-columns: repeat(3, max-content);
|
||||
gap: 20px 40px;
|
||||
margin-top: 20px;
|
||||
--radio-font-size: 16px;
|
||||
.cw_w_radio_inputs_radio_input{
|
||||
display: flex;
|
||||
display: grid;
|
||||
grid-template-columns: 30px auto;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
.radio{
|
||||
|
||||
@@ -12,5 +12,5 @@
|
||||
|
||||
<div class="b_make_poster_order">
|
||||
<div class="make_poster_order_title">{% trans "Заполните форму, чтобы отправить посылку" %}</div>
|
||||
{% include 'v2/forms/f_make_poster_order.html' %}
|
||||
{% include 'v2/forms/f_make_customer_route.html' %}
|
||||
</div>
|
||||
@@ -32,7 +32,7 @@
|
||||
{% if form.errors.arrival_DT %}<div class="error_container">{{ form.errors.arrival_DT.0 }}</div>{% endif %}
|
||||
</div>
|
||||
<div class="field_container" data-type="date" data-name="departure_DT">
|
||||
<label for="id_arrival_DT"><div class="required_field_icon">*</div> {% trans "Дата доставки посылки" %}</label>
|
||||
<label for="id_departure_DT"><div class="required_field_icon">*</div> {% trans "Дата доставки посылки" %}</label>
|
||||
{% include 'v2/widgets/w_daterangepicker.html' with name='departure_DT' initial=form.initial.departure_DT %}
|
||||
{% if form.errors.departure_DT %}<div class="error_container">{{ form.errors.departure_DT.0 }}</div>{% endif %}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user