aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/templates/account/login.html
blob: 570ba2eb8e394364d4a276086c8d4de98de20b6f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{% extends "account/base.html" %}

{% load crispy_forms_tags %}
{% load static %}

{% block head_title %}Sign In{% endblock %}

{% block inner %}

  <div class="container">
    <div class="col-md-9 my-3 p-3 border border-muted rounded">
      <div class="row">
        <div class="col-md-12">
          <form class="login" method="POST" action="{% url 'account_login' %}">
            {% csrf_token %}
            <img class="mb-4 mx-auto text-center" src="{% static "images/ctrack_logo.png" %}" alt="" width="348" height="122">
            {{ 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 %}