add link to log in view when on sign up view and vice-versa

This commit is contained in:
Michał Najborowski 2022-01-30 21:43:10 +01:00
parent 5ac24962c5
commit 098564e333
2 changed files with 18 additions and 12 deletions

View File

@ -4,10 +4,13 @@
{% block title %}Login{% endblock %}
{% block content %}
<h2>Log In</h2>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<button class="btn btn-light" type="submit">Log In</button>
</form>
<h2>Log In</h2>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<button class="btn btn-light" type="submit">Log In</button>
<p></p>
<span style="white-space: nowrap">New to MultiUserOpenRefine?</span>
<a href="{% url 'signup' %}">Create an account.</a>
</form>
{% endblock %}

View File

@ -4,10 +4,13 @@
{% block title %}Sign Up{% endblock %}
{% block content %}
<h2>Sign Up</h2>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<button class="btn btn-light" type="submit">Sign Up</button>
</form>
<h2>Sign Up</h2>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<button class="btn btn-light" type="submit">Sign Up</button>
<p></p>
<span style="white-space: nowrap">Already have an account?</span>
<a href="{% url 'login' %}">Back to login.</a>
</form>
{% endblock %}