0.0.91 new error msg

This commit is contained in:
2023-08-15 12:20:35 +03:00
parent 26877620b1
commit cbee5af4ed
4 changed files with 96 additions and 42 deletions

View File

@@ -10,8 +10,30 @@
<div>
{# <div class="type_transport_list">#}
{# <label for="id_type_transport">{{ form.fields.type_transport.label }}</label>#}
{# <label for="id_type_transport"></label>#}
{##}
{# {% for item in form.fields.type_transport.choices %}#}
{# <label>#}
{# <input type="radio"#}
{# onclick="OnSelectionChange(this)"#}
{# name="type_transport"#}
{# id="id_type_transport_{{ forloop.counter }}"#}
{# value="{{ item.0 }}"#}
{##}
{# {% if form.initial.type_transport == item.0 %}#}
{# checked="checked"#}
{# {% endif %}#}
{# />#}
{# {{ item.1 }}#}
{# </label>#}
{# {% endfor %}#}
{##}
{# </div>#}
<label for="id_type_transport">{{ form.fields.type_transport.label }}</label>
<select
onchange="OnSelectionChange(this)"
name="type_transport"
@@ -183,8 +205,11 @@
<div>
<label>{{ form.fields.cargo_type.label }}</label>
</div>
<div class="checkbox_cargo_type">
{% for item in form.fields.cargo_type.choices %}
@@ -195,9 +220,9 @@
name="cargo_type"
id="id_cargo_type_{{ forloop.counter }}"
{% if form.fields.cargo_type.required %} required{% endif %}
value="{{ item.0 }}"
value="{{ item.0 }}"
{% if form.initial.cargo_type == item.0 %}
checked="checked"
checked="checked"
{% endif %}
/>
@@ -208,12 +233,10 @@
{% endfor %}
{# <lable for="">#}
{##}
{# </lable>#}
{% if not errors_off and form.errors and form.errors.cargo_type %}
{% if not errors_off and form.errors and form.errors.cargo_type %}
<span>{{ form.errors.cargo_type }}</span>
{% endif %}
</div>
@@ -222,12 +245,16 @@
<div class="extra-controls">
<label for="id_weight">{{ form.fields.weight.label }}</label>
<input
type="number"
maxLength="1000"
type="text"
maxlength="4"
class="js-input"
placeholder="Укажите вес"
{# onchange="maxLength(this)"#}
{% if form.fields.weight.required %} required{% endif %}
/>
{% if not errors_off and form.errors and form.errors.weight %}
<span>{{ form.errors.weight }}</span>
{% endif %}
</div>
<div class="range-slider">
@@ -235,14 +262,12 @@
<input
type="text"
id="id_weight"
{% if form.fields.weight.required %} required{% endif %}
name="weight"
{% if form.initial.weight %}
value="{{ form.initial.weight }}"
{% endif %}
/>
{% if not errors_off and form.errors and form.errors.weight %}
<span>{{ form.errors.weight }}</span>
{% endif %}
</div>

View File

@@ -47,6 +47,7 @@
<div class="footer-chat{% if not new_msg_allow %} hide{% endif %}">
<div class="left-part-block-enter-message">
<input class="enter-message-inp" onfocus="check_new_messages_timeout()" onkeypress="sendMessageEnter(event,{{ ticket.id }},{{ user.id }},{{ cur_receiver.id }})" placeholder="Отправить сообщение">
</div>