28 lines
675 B
HTML
28 lines
675 B
HTML
{% extends "base.html" %}
|
|
{% load crispy_forms_tags %}
|
|
|
|
{% block content %}
|
|
|
|
{% if form.errors %}
|
|
{% for error in form.errors %}
|
|
<p>{{ error }}</p>
|
|
{% endfor %}
|
|
{% 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 'register' %}">
|
|
{% csrf_token %}
|
|
{{ form|crispy }}
|
|
<input class="btn btn-primary" type="submit" value="Register">
|
|
<input type="hidden" name="next" value="{{ next }}">
|
|
</form>
|
|
|
|
{% endblock %}
|