summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/registration/login.html
blob: adefb31762a928a7bbba2c20ee643bfb298e499d (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
{% extends "base.html" %}
{% load i18n %}

{% block content %}
<div class="container">
    <div class="row justify-content-center">
      <div class="col-lg-4 col-md-6 col-sm-10">
        <h3 class="text-center">{%trans "Log in"%}</h3>
        <form method="post" action=".">{% csrf_token %}
            <input type="hidden" name="next" value="{{ next }}" />
          {% if form.non_field_errors %}
          <div class="form-group row">
              {% for error in form.non_field_errors %}
              <div class="form-group has-errors text-danger small">
                  {{error}}
              </div>
              {% endfor %}
          </div>
          {% endif %}
          {% with force_large_col=True %}
          {% for field in form %}
            {% include "blocks/bs_field_snippet.html" %}
          {% endfor %}
          {% endwith %}

          <div class="row justify-content-center">
            <div class="col-4">
               <button type="submit" class="btn btn-primary">{% trans 'Log in' %}</button>
            </div>
          </div>
        </form>
      </div>
    </div>
</div>
<hr/>
<div class="row justify-content-center">
    <div class="col-md-6">
        <small class="text-secondary">{% trans "Forgot password?" %} <a href="{% url 'password_reset' %}">{% trans "Reset it" %}</a> &ndash;
        {% trans "Not member?" %} <a href="{% url 'registration_register' %}">{% trans "Register" %}</a></small>
    </div>
</div>
{% endblock %}