This commit is contained in:
SBD
2023-11-18 16:30:27 +03:00
parent bd4a2e7507
commit 8f76b484ba
7 changed files with 127 additions and 24 deletions

View File

@@ -16,19 +16,27 @@
{# </div>#}
{% for item in route_form.fields.type_transport.choices %}
{% if forloop.counter0 > 0 %}
<div>
<input
class="custom-checkbox el_form_find_route"
type="checkbox"
name="type_transport"
id="id_cargo_type_car_{{ forloop.counter }}"
onchange="filters_func_find_route_main(this,'{{ owner_type }}')"
value="{{ item.0 }}"
/>
<label for="id_cargo_type_car_{{ forloop.counter }}" >
<img style="display: inline-block;padding-top: 11px;" src="{% static "img/svg/Car.svg" %}">
<span style="display: inline-block;width: 80%;">{{ item.1 }}</span>
{# <div>#}
{# <input#}
{# class="custom-checkbox el_form_find_route"#}
{# type="checkbox"#}
{# name="type_transport"#}
{# id="id_cargo_type_car_{{ forloop.counter }}"#}
{# onchange="filters_func_find_route_main(this,'{{ owner_type }}')"#}
{# value="{{ item.0 }}"#}
{# />#}
{##}
{# <label for="id_cargo_type_car_{{ forloop.counter }}" >#}
{# <img style="display: inline-block;padding-top: 11px;" src="{% static "img/svg/Car.svg" %}">#}
{# <span style="display: inline-block;width: 80%;">{{ item.1 }}</span>#}
{# </label>#}
{# </div>#}
<div class="checkbox_type_transport">
<input class="input_f_checkbox_type_transport el_form_find_route" type="checkbox" value="{{ item.0 }}" name="type_transport" id="id_cargo_type_car_{{ forloop.counter }}" onchange="filters_func_find_route_main(this,'{{ owner_type }}')">
<label for="id_cargo_type_car_{{ forloop.counter }}" class="label_f_checkbox_type_transport">
<div class="trigger_f_type_transport"></div>
<img class="img_f_checkbox_type_transport" src="{% static "img/svg/Car.svg" %}">
<span class="span_f_checkbox_type_transport">{{ item.1 }}</span>
</label>
</div>
{% endif %}