0.0.292 upd error messages for forms

This commit is contained in:
2023-12-01 15:28:14 +03:00
parent 660e3f8a99
commit 09dc2984f3
12 changed files with 123 additions and 54 deletions

View File

@@ -3,9 +3,18 @@
<form class="clear_form" data-name="msg_from_footer">
<div class="footer_input_wrap">
<input class="footer_input" name="email" type="email" {% if form.data.email %} value="{{ form.data.email }}"{% endif %} placeholder="{% trans "Введите ваш e-mail" %}">
<input class="footer_input"
name="email"
type="email"
{% if form.data.email %} value="{{ form.data.email }}"{% endif %}
placeholder="{% trans "Введите ваш e-mail" %}">
<button onclick="RequestCommercialOffer(this)" id="footer_input_button">
<img class="svg" src="/static/img/svg/CaretCircleRight.svg">
</button>
</div>
</form>
</form>
{% if form.errors.email %}
<span id="error_footer">{{ form.errors.email }}</span>
{% endif %}