accounts/templates/registration/login.html
2020-03-30 11:29:03 +04:30

38 lines
No EOL
772 B
HTML

{% extends "base_generic.html" %}
{% block content %}
{% if form.errors %}
<p>Your phone number and otp didn't match. Please try again.</p>
{% endif %}
{% if next %}
{% if user.is_authenticated %}
<p>Your account doesn't have access to this page. To proceed,
please login with an account that has access.</p>
{% else %}
<p>Please login to see this page.</p>
{% endif %}
{% endif %}
<form method="post" action="{% url 'login' %}">
{% csrf_token %}
<table>
<tr>
<td>{{ form.phone_number.label_tag }}</td>
<td>{{ form.phone_number }}</td>
</tr>
<tr>
<td>{{ form.otp.label_tag }}</td>
<td>{{ form.otp }}</td>
</tr>
</table>
<input type="submit" value="login" />
<input type="hidden" name="next" value="{{ next }}" />
</form>
{% endblock %}