0.1.3
create route form fixed
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
{% if form.errors and form.errors.type_transport %}
|
||||
{% if not errors_off and form.errors and form.errors.type_transport %}
|
||||
<span>{{ form.errors.type_transport }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -43,7 +43,7 @@
|
||||
{% if form.data.departure_DT %}value="{{ form.data.departure_DT }}"{% endif %}
|
||||
/>
|
||||
|
||||
{% if form.errors and form.errors.departure_DT %}
|
||||
{% if not errors_off and form.errors and form.errors.departure_DT %}
|
||||
<span>{{ form.errors.departure_DT }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -57,7 +57,7 @@
|
||||
{% if form.data.arrival_DT %}value="{{ form.data.arrival_DT }}"{% endif %}
|
||||
{# |date: 'Y-m-d H:i' #}
|
||||
/>
|
||||
{% if form.errors and form.errors.arrival_DT %}
|
||||
{% if not errors_off and form.errors and form.errors.arrival_DT %}
|
||||
<span>{{ form.errors.arrival_DT }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -84,7 +84,7 @@
|
||||
|
||||
<div class="input_list" name="from_address_point_txt_list">
|
||||
</div>
|
||||
{% if form.errors and form.errors.from_address_point %}
|
||||
{% if not errors_off and form.errors and form.errors.from_address_point %}
|
||||
<span>{{ form.errors.from_address_point}}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -105,7 +105,7 @@
|
||||
<div class="input_list" name="to_address_point_txt_list">
|
||||
|
||||
</div>
|
||||
{% if form.errors and form.errors.to_address_point %}
|
||||
{% if not errors_off and form.errors and form.errors.to_address_point %}
|
||||
<span>{{ form.errors.to_address_point }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -133,7 +133,7 @@
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
{% if form.errors and form.errors.from_place %}
|
||||
{% if not errors_off and form.errors and form.errors.from_place %}
|
||||
<span>{{ form.errors.from_place }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -150,7 +150,7 @@
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
{% if form.errors and form.errors.to_place %}
|
||||
{% if not errors_off and form.errors and form.errors.to_place %}
|
||||
<span>{{ form.errors.to_place }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -194,7 +194,7 @@
|
||||
{# <lable for="">#}
|
||||
{##}
|
||||
{# </lable>#}
|
||||
{% if 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>
|
||||
@@ -212,7 +212,7 @@
|
||||
{# value=""#}
|
||||
{% if form.cleaned_data.weight %}value="{{ form.cleaned_data.weight}}"{% endif %}
|
||||
/>
|
||||
{% if form.errors and form.errors.weight %}
|
||||
{% if not errors_off and form.errors and form.errors.weight %}
|
||||
<span>{{ form.errors.weight }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -231,7 +231,7 @@
|
||||
{% if form.cleaned_data.phone %}value="{{ form.cleaned_data.phone}}"{% endif %}
|
||||
|
||||
/>
|
||||
{% if form.errors and form.errors.phone %}
|
||||
{% if not errors_off and form.errors and form.errors.phone %}
|
||||
<span>{{ form.errors.phone }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -246,7 +246,7 @@
|
||||
placeholder="{{ form.fields.extra_phone.label }}"
|
||||
{% if form.cleaned_data.extra_phone %}value="{{ form.cleaned_data.extra_phone}}"{% endif %}
|
||||
/>
|
||||
{% if form.errors and form.errors.extra_phone %}
|
||||
{% if not errors_off and form.errors and form.errors.extra_phone %}
|
||||
<span>{{ form.errors.extra_phone }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -257,7 +257,7 @@
|
||||
<div>
|
||||
<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">
|
||||
{% if form.errors and form.errors.receive_msg_by_email %}
|
||||
{% if not errors_off and form.errors and form.errors.receive_msg_by_email %}
|
||||
<span>{{ form.errors.receive_msg_by_email }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user