summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/registration/login.html
blob: 2be3e4a2c0e832c7588b447e13909ed58c150939 (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
{% extends "base.html" %}
{% load i18n %}

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