-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogin.html
42 lines (34 loc) · 1.79 KB
/
login.html
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 "account/base.html" %}
{% load i18n account %}
{% block head_title %}{% translate "Login" %}{% endblock head_title %}
{% block content %}
<h1>{% translate "Login" %}</h1>
<p>{% blocktranslate %}If you have not created an account yet, then please <a href="{{ signup_url }}">register</a> first.{% endblocktranslate %}</p>
{% url 'guest_create' as guest_create_url %}
{% with next_param=request.GET.next %}
{% with guest_url=guest_create_url|add:"?next="|add:next_param %}
<p>{% blocktranslate %}Sie wollen als Gast fortfahren? Dann klicken Sie <a href="{{ guest_url }}">hier</a>.{% endblocktranslate %}</p>
{% endwith %}
{% endwith %}
<form method="post" action="{% url 'account_login' %}" class="u-spacer-bottom-double">
{{ form.non_field_errors }}
{% csrf_token %}
<div class="form-group">
{% include 'a4_candy_contrib/includes/form_field.html' with field=form.login %}
{% include 'a4_candy_contrib/includes/form_field.html' with field=form.password %}
{% include 'a4_candy_contrib/includes/form_checkbox_field.html' with field=form.remember %}
</div>
{% if redirect_field_value %}
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}"/>
{% endif %}
<div class="row">
<div class="col-12 mb-3">
<button class="btn btn--primary" type="submit">{% translate "Login" %}</button>
</div>
<div class="col-12 mb-3">
<a class="btn btn--link" href="{% url 'account_reset_password' %}">{% translate "Forgot Password?" %}</a>
</div>
</div>
</form>
{% include "socialaccount/snippets/provider_list.html" with process="login" %}
{% endblock content %}