0.0.155 upd select css

This commit is contained in:
2023-09-24 17:50:11 +03:00
parent cec55a36ed
commit 5af924556e
2 changed files with 24 additions and 21 deletions

View File

@@ -1272,8 +1272,8 @@ form.new_route{
} }
.departure_arrival>div:nth-child(2), .departure_arrival>div:nth-child(2),
.from_to_place>div:last-child, .from_to_place>div:nth-child(2),
.from_to_country>div:last-child, .from_to_country>div:nth-child(2),
.phone>div:nth-child(2) .phone>div:nth-child(2)
{ {
width: 50%; width: 50%;

View File

@@ -141,7 +141,7 @@
<span>{{ form.errors.from_address_point}}</span> <span>{{ form.errors.from_address_point}}</span>
{% endif %} {% endif %}
</div> </div>
<div> <div>
<label for="id_to_address_point_txt">{{ form.fields.to_address_point.label }}</label> <label for="id_to_address_point_txt">{{ form.fields.to_address_point.label }}</label>
<input <input
type="number" type="number"
@@ -172,8 +172,10 @@
{% if not errors_off and 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> <span>{{ form.errors.to_address_point }}</span>
{% endif %} {% endif %}
</div>
<div class="clear_both"></div>
</div> </div>
</div>
{# <div>#} {# <div>#}
{# <label for="id_from_city">{{ form.fields.from_city.label }}</label>#} {# <label for="id_from_city">{{ form.fields.from_city.label }}</label>#}
{# <input type="text" name="from_city"{% if form.fields.from_city.required %} required{% endif %} id="id_from_city">#} {# <input type="text" name="from_city"{% if form.fields.from_city.required %} required{% endif %} id="id_from_city">#}
@@ -184,23 +186,23 @@
{# </div>#} {# </div>#}
<div class="from_to_place"> <div class="from_to_place">
<div> <div>
<label for="id_from_place">{{ form.fields.from_place.label }}</label> <label for="id_from_place">{{ form.fields.from_place.label }}</label>
<select <select
class="custom_select el_form_b_new_route" class="custom_select el_form_b_new_route"
name="from_place" name="from_place"
{# onchange="hideErrorMsg(this)"#} {# onchange="hideErrorMsg(this)"#}
id="id_from_place" id="id_from_place"
{% if form.fields.from_place.required %} required{% endif %}> {% if form.fields.from_place.required %} required{% endif %}>
{% for item in form.fields.from_place.choices %} {% for item in form.fields.from_place.choices %}
<option <option
value="{{ item.0 }}"{% if form.initial.from_place == item.0 %} value="{{ item.0 }}"{% if form.initial.from_place == item.0 %}
selected="selected"{% endif %}>{{ item.1 }} selected="selected"{% endif %}>{{ item.1 }}
</option> </option>
{% endfor %} {% endfor %}
</select> </select>
{% if not errors_off and 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> <span>{{ form.errors.from_place }}</span>
{% endif %} {% endif %}
</div> </div>
<div> <div>
<label for="id_to_place">{{ form.fields.to_place.label }}</label> <label for="id_to_place">{{ form.fields.to_place.label }}</label>
@@ -220,6 +222,7 @@
<span>{{ form.errors.to_place }}</span> <span>{{ form.errors.to_place }}</span>
{% endif %} {% endif %}
</div> </div>
<div class="clear_both"></div>
</div> </div>
<hr> <hr>