diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-05-31 10:41:45 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-05-31 10:41:45 +0100 |
commit | 2adf4f28ec512b654a4802e274ad683d6c670fc5 (patch) | |
tree | 401aaccc07c3eec29e44b34f68f52657212fc766 /ctrack/templates | |
parent | c88e010a4fe88b89629df274a2e431254b7ea9c9 (diff) |
working on log-in form
Diffstat (limited to 'ctrack/templates')
-rw-r--r-- | ctrack/templates/account/login.html | 54 | ||||
-rw-r--r-- | ctrack/templates/base.html | 4 |
2 files changed, 19 insertions, 39 deletions
diff --git a/ctrack/templates/account/login.html b/ctrack/templates/account/login.html index f395478..c9e292e 100644 --- a/ctrack/templates/account/login.html +++ b/ctrack/templates/account/login.html @@ -1,45 +1,29 @@ {% extends "account/base.html" %} -{% load i18n %} -{% load account socialaccount %} {% load crispy_forms_tags %} -{% block head_title %}{% trans "Sign In" %}{% endblock %} +{% block head_title %}Sign In{% endblock %} {% block inner %} -<h1>{% trans "Sign In" %}</h1> - -{% get_providers as socialaccount_providers %} - -{% if socialaccount_providers %} -<p>{% blocktrans with site.name as site_name %}Please sign in with one -of your existing third party accounts. Or, <a href="{{ signup_url }}">sign up</a> -for a {{ site_name }} account and sign in below:{% endblocktrans %}</p> - -<div class="socialaccount_ballot"> - - <ul class="socialaccount_providers"> - {% include "socialaccount/snippets/provider_list.html" with process="login" %} - </ul> - - <div class="login-or">{% trans 'or' %}</div> - -</div> - -{% include "socialaccount/snippets/login_extra.html" %} - -{% endif %} - -<form class="login" method="POST" action="{% url 'account_login' %}"> - {% csrf_token %} - {{ form|crispy }} - {% if redirect_field_value %} - <input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" /> - {% endif %} - <a class="button secondaryAction" href="{% url 'account_reset_password' %}">{% trans "Forgot Password?" %}</a> - <button class="primaryAction btn btn-primary" id="sign_in_button" type="submit">{% trans "Sign In" %}</button> -</form> + <div class="container"> + <div class="col-md-12 my-3 p-3 border border-primary rounded"> + <div class="row"> + <div class="col-md-12"> + <h2>Log in</h2> + <form class="login" method="POST" action="{% url 'account_login' %}"> + {% csrf_token %} + {{ form|crispy }} + {% if redirect_field_value %} + <input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" /> + {% endif %} + <a class="button secondaryAction" href="{% url 'account_reset_password' %}">Forgot Password?</a> + <button class="primaryAction btn btn-primary" id="sign_in_button" type="submit">Sign In</button> + </form> + </div> + </div> + </div> + </div> {% endblock %} diff --git a/ctrack/templates/base.html b/ctrack/templates/base.html index c0ee4cd..dfaaa17 100644 --- a/ctrack/templates/base.html +++ b/ctrack/templates/base.html @@ -81,10 +81,6 @@ {% else %} <li class="nav-item"> {# URL provided by django-allauth/account/urls.py #} - <a id="sign-up-link" class="nav-link" href="{% url 'account_signup' %}">{% trans "Sign Up" %}</a> - </li> - <li class="nav-item"> - {# URL provided by django-allauth/account/urls.py #} <a id="log-in-link" class="nav-link" href="{% url 'account_login' %}">{% trans "Sign In" %}</a> </li> {% endif %} |