0.0.297 remove errors after typing in ALL fields
This commit is contained in:
@@ -10,19 +10,25 @@
|
||||
>
|
||||
|
||||
<div class="inputs_l">
|
||||
<input name="name" type="text" placeholder="{% translate 'Имя' %}" {% if form.data.name %} value="{{ form.data.name }}"{% endif %}>
|
||||
<input
|
||||
name="name"
|
||||
type="text"
|
||||
onkeydown = "hideErrors(this)"
|
||||
placeholder="{% translate 'Имя' %}"
|
||||
{% if form.data.name %} value="{{ form.data.name }}"{% endif %}>
|
||||
{% if form.errors.name %}
|
||||
<span id="error_com_offer">{{ form.errors.name }}</span>
|
||||
{% endif %}
|
||||
<span id="error_com_offer">{{ form.errors.name }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="inputs_l">
|
||||
<input name="phone"
|
||||
type="tel"
|
||||
onkeydown = "hideErrors(this)"
|
||||
placeholder="{% translate 'Телефон' %}"{% if form.data.phone %} value="{{ form.data.phone }}"{% endif %}>
|
||||
{% if form.errors.phone %}
|
||||
<span id="error_com_offer">{{ form.errors.phone }}</span>
|
||||
{% endif %}
|
||||
<span id="error_com_offer">{{ form.errors.phone }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="button_register">
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
<input class="footer_input"
|
||||
name="email"
|
||||
type="email"
|
||||
onkeydown = "hideErrors(this)"
|
||||
{% if form.data.email %} value="{{ form.data.email }}"{% endif %}
|
||||
placeholder="{% trans "Введите ваш e-mail" %}">
|
||||
<button onclick="RequestCommercialOffer(this)" id="footer_input_button">
|
||||
|
||||
Reference in New Issue
Block a user