Files
tripwithbonus/templates/forms/f_one_field_form.html

32 lines
1.1 KiB
HTML

{% load static %}
{% load i18n %}
<form
class="clear_form_footer"
id="clear_input"
data-name="msg_from_footer"
{% if form.form_name %}data-name="{{ form.form_name}}"{% endif %}
>
<div
onclick="event.stopPropagation()"
class="footer_input_wrap">
<input class="footer_input"
name="email"
type="email"
{% if user.is_authenticated %}
readonly
value="{{ user.email }}"
{% endif %}
onkeydown = "hideErrors(this)"
{% if form.data.email %} value="{{ form.data.email }}"{% endif %}
placeholder="{% trans "Введите ваш e-mail" %}">
<button onclick="subscribeNewsletter(this)" id="footer_input_button">
<img class="svg" src="/static/img/svg/CaretCircleRight.svg">
</button>
</div>
</form>
{% if form.errors.email %}
<span id="error_footer">{{ form.errors.email }}</span>
{% endif %}