Files
tripwithbonus/templates/forms/f_password_recovery.html

107 lines
4.5 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% load i18n %}
{% trans "Пароль *" as p_password %}
{% trans "Подтвердить пароль *" as p_con_password %}
<section class="register" id="confirm_password">
<h1>{% translate "Изменение пароля" %}</h1>
<form
name="password_recovery"
method="POST"
>
{% csrf_token %}
<div class="inputs">
<div class="inp_firstname">
<input
name="pass"
onkeydown = "hideErrors(this)"
type="password"
placeholder="{{ p_password }}"
{% if form.data.password %} value="{{ form.data.password }}"{% endif %}>
{% if form.errors and form.errors.password %}
<span>{{ form.errors.password }}</span>
{% endif %}
</div>
<div><input
name="pass_confirm"
onkeydown = "hideErrors(this)"
type="password"
placeholder="{{ p_con_password }}"
{% if form.data.confirm_password %} value="{{ form.data.confirm_password }}"{% endif %}>
{% if form.errors and form.errors.confirm_password %}
<span>{{ form.errors.confirm_password }}</span>
{% endif %}
</div>
</div>
<div class="button_register">
<button type="submit" id="registration" class="recovery" onclick="SendRegistrationForm(this, {{ user.id }})"> {% translate "Сохранить пароль" %} </button>
</div>
</form>
</section>
{##}
{##}
{#<div class="registration">#}
{# <h2>Регистрация</h2>#}
{##}
{# <div class="form_radio_btn">#}
{##}
{# <input id="radio-1" type="radio" name="radio" value="1" checked>#}
{# <label for="radio-1">Перевозчик</label>#}
{##}
{# </div>#}
{# <div class="form_radio_btn">#}
{# <input id="radio-2" type="radio" name="radio" value="2">#}
{# <label for="radio-2">Отправитель</label>#}
{# </div>#}
{##}
{# <form action="">#}
{# {% csrf_token %}#}
{# <div class="reg_inputs">#}
{# <label><input name="firstname" type="text" placeholder="Имя"{% if form.data.firstname %} value="{{ form.data.firstname }}"{% endif %}></label>#}
{# {% if form.errors and form.errors.firstname %}#}
{# <span>{{ form.errors.firstname }}</span>#}
{# {% endif %}#}
{# <label><input name="email" type="text" placeholder="E-mail"{% if form.data.email %} value="{{ form.data.email }}"{% endif %}></label>#}
{# {% if form.errors and form.errors.email %}#}
{# <span>{{ form.errors.email }}</span>#}
{# {% endif %}#}
{# <label><input name="password" type="text" placeholder="Пароль"{% if form.data.password %} value="{{ form.data.password }}"{% endif %}></label>#}
{# {% if form.errors and form.errors.password %}#}
{# <span>{{ form.errors.password }}</span>#}
{# {% endif %}#}
{# <label><input name="lastname" type="text" placeholder="Фамилия"{% if form.data.lastname %} value="{{ form.data.lastname }}"{% endif %}></label>#}
{# {% if form.errors and form.errors.lastname %}#}
{# <span>{{ form.errors.lastname }}</span>#}
{# {% endif %}#}
{# <label><input name="tel" type="text" placeholder="Телефон"{% if form.data.tel %} value="{{ form.data.tel }}"{% endif %}></label>#}
{# {% if form.errors and form.errors.tel %}#}
{# <span>{{ form.errors.tel }}</span>#}
{# {% endif %}#}
{# <label><input name="confirm_password" type="text" placeholder="Подтвердить пароль"{% if form.data.confirm_password %} value="{{ form.data.confirm_password }}"{% endif %}></label>#}
{# {% if form.errors and form.errors.confirm_password %}#}
{# <span>{{ form.errors.confirm_password }}</span>#}
{# {% endif %}#}
{# </div>#}
{##}
{# <input type="checkbox"> <p>Регистрируясь, я соглашаюсь с Лицензионным соглашениеми и Политикой конфиденциальности</p>#}
{##}
{# <div class="reg_button">#}
{# <button id="registration" onclick="SendRegistrationForm(this)"> Зарегистрироваться </button>#}
{# </div>#}
{# </form>#}
{##}
{##}
{##}
{#</div>#}