diff --git a/RoutesApp/funcs.py b/RoutesApp/funcs.py index 14823ec..37b2ff9 100644 --- a/RoutesApp/funcs.py +++ b/RoutesApp/funcs.py @@ -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']}) diff --git a/RoutesApp/js_views.py b/RoutesApp/js_views.py index 208a5b6..fc0d30d 100644 --- a/RoutesApp/js_views.py +++ b/RoutesApp/js_views.py @@ -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: diff --git a/static/v2/css/forms.css b/static/v2/css/forms.css index 8386aa5..fe3dd52 100644 --- a/static/v2/css/forms.css +++ b/static/v2/css/forms.css @@ -38,6 +38,7 @@ &:has(div){ display: flex; align-items: center; + gap: 5px; } .required_field_icon{ color: var(--label-required-color); diff --git a/static/v2/css/forms/f_make_poster_order.css b/static/v2/css/forms/f_make_poster_order.css index 021d01c..122799c 100644 --- a/static/v2/css/forms/f_make_poster_order.css +++ b/static/v2/css/forms/f_make_poster_order.css @@ -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); } } } \ No newline at end of file diff --git a/static/v2/css/widgets/w_radio_inputs.css b/static/v2/css/widgets/w_radio_inputs.css index 300a967..4052b71 100644 --- a/static/v2/css/widgets/w_radio_inputs.css +++ b/static/v2/css/widgets/w_radio_inputs.css @@ -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{ diff --git a/templates/v2/blocks/b_make_poster_order.html b/templates/v2/blocks/b_make_customer_route.html similarity index 93% rename from templates/v2/blocks/b_make_poster_order.html rename to templates/v2/blocks/b_make_customer_route.html index 3fae2c7..90f6c9e 100644 --- a/templates/v2/blocks/b_make_poster_order.html +++ b/templates/v2/blocks/b_make_customer_route.html @@ -12,5 +12,5 @@