2017-08-16 16:46:26 +00:00
|
|
|
{% extends "registration/base.html" %}
|
2019-04-14 04:50:35 +00:00
|
|
|
{% load i18n static widget_tweaks %}
|
2017-08-16 16:46:26 +00:00
|
|
|
{% block title %}Login{% endblock %}
|
|
|
|
{% block content %}
|
2017-12-03 21:52:27 +00:00
|
|
|
<form class="login-form" method="post" action="{% url 'babybuddy:login' %}">
|
2017-08-16 16:46:26 +00:00
|
|
|
{% csrf_token %}
|
|
|
|
<input type="hidden" name="next" value="{{ next }}">
|
2024-02-06 13:35:36 +00:00
|
|
|
<label class="visually-hidden" for="username-input-group">{{ form.username.label }}</label>
|
2017-08-16 16:46:26 +00:00
|
|
|
<div class="input-group mb-3 fade-in">
|
2023-07-09 16:26:13 +00:00
|
|
|
<span class="input-group-text text-body-secondary"><i class="icon-user" aria-hidden="true"></i></span>
|
2017-08-16 16:46:26 +00:00
|
|
|
{% render_field form.username name='username' class+='form-control' id='username-input-group' placeholder=form.username.label %}
|
|
|
|
</div>
|
2024-02-06 13:35:36 +00:00
|
|
|
<label class="visually-hidden" for="password-input-group">{{ form.password.label }}</label>
|
2017-08-16 16:46:26 +00:00
|
|
|
<div class="input-group mb-3 fade-in">
|
2023-07-09 16:26:13 +00:00
|
|
|
<span class="input-group-text text-body-secondary"><i class="icon-lock" aria-hidden="true"></i></span>
|
2017-08-16 16:46:26 +00:00
|
|
|
{% render_field form.password name='password' class+='form-control' id='password-input-group' placeholder=form.password.label %}
|
|
|
|
</div>
|
2024-02-06 13:35:36 +00:00
|
|
|
<button class="btn btn-primary w-100 fade-in" type="submit" name="login">{% trans "Login" %}</button>
|
2017-08-16 16:46:26 +00:00
|
|
|
</form>
|
|
|
|
<div class="bg-faded text-center px-4 py-3 rounded-bottom">
|
2024-02-06 13:35:36 +00:00
|
|
|
<a href="{% url 'babybuddy:password_reset' %}" name="reset">{% trans "Forgot your password?" %}</a>
|
2017-08-16 16:46:26 +00:00
|
|
|
</div>
|
2024-02-06 13:35:36 +00:00
|
|
|
{% endblock %}
|