0.0.297 remove errors after typing in ALL fields

This commit is contained in:
2023-12-02 00:19:15 +03:00
parent ea92feab27
commit 0ef26556a2
4 changed files with 25 additions and 7 deletions

View File

@@ -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">

View File

@@ -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">