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

View File

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