0.0.155 upd select css
This commit is contained in:
@@ -1272,8 +1272,8 @@ form.new_route{
|
||||
|
||||
}
|
||||
.departure_arrival>div:nth-child(2),
|
||||
.from_to_place>div:last-child,
|
||||
.from_to_country>div:last-child,
|
||||
.from_to_place>div:nth-child(2),
|
||||
.from_to_country>div:nth-child(2),
|
||||
.phone>div:nth-child(2)
|
||||
{
|
||||
width: 50%;
|
||||
|
||||
@@ -141,7 +141,7 @@
|
||||
<span>{{ form.errors.from_address_point}}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div>
|
||||
<div>
|
||||
<label for="id_to_address_point_txt">{{ form.fields.to_address_point.label }}</label>
|
||||
<input
|
||||
type="number"
|
||||
@@ -172,8 +172,10 @@
|
||||
{% if not errors_off and form.errors and form.errors.to_address_point %}
|
||||
<span>{{ form.errors.to_address_point }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="clear_both"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{# <div>#}
|
||||
{# <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">#}
|
||||
@@ -184,23 +186,23 @@
|
||||
{# </div>#}
|
||||
<div class="from_to_place">
|
||||
<div>
|
||||
<label for="id_from_place">{{ form.fields.from_place.label }}</label>
|
||||
<select
|
||||
class="custom_select el_form_b_new_route"
|
||||
name="from_place"
|
||||
{# onchange="hideErrorMsg(this)"#}
|
||||
id="id_from_place"
|
||||
{% if form.fields.from_place.required %} required{% endif %}>
|
||||
{% for item in form.fields.from_place.choices %}
|
||||
<option
|
||||
value="{{ item.0 }}"{% if form.initial.from_place == item.0 %}
|
||||
selected="selected"{% endif %}>{{ item.1 }}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
{% if not errors_off and form.errors and form.errors.from_place %}
|
||||
<span>{{ form.errors.from_place }}</span>
|
||||
{% endif %}
|
||||
<label for="id_from_place">{{ form.fields.from_place.label }}</label>
|
||||
<select
|
||||
class="custom_select el_form_b_new_route"
|
||||
name="from_place"
|
||||
{# onchange="hideErrorMsg(this)"#}
|
||||
id="id_from_place"
|
||||
{% if form.fields.from_place.required %} required{% endif %}>
|
||||
{% for item in form.fields.from_place.choices %}
|
||||
<option
|
||||
value="{{ item.0 }}"{% if form.initial.from_place == item.0 %}
|
||||
selected="selected"{% endif %}>{{ item.1 }}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
{% if not errors_off and form.errors and form.errors.from_place %}
|
||||
<span>{{ form.errors.from_place }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div>
|
||||
<label for="id_to_place">{{ form.fields.to_place.label }}</label>
|
||||
@@ -220,6 +222,7 @@
|
||||
<span>{{ form.errors.to_place }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="clear_both"></div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
Reference in New Issue
Block a user