linkding/bookmarks/templates/registration/login.html

49 lines
1.9 KiB
HTML
Raw Normal View History

2019-07-02 07:34:12 +00:00
{% extends 'bookmarks/layout.html' %}
{% load widget_tweaks %}
{% block title %}Login{% endblock %}
{% block content %}
2019-12-24 12:31:55 +00:00
<div class="auth-page">
2019-07-02 07:34:12 +00:00
<div class="columns">
2019-07-07 07:22:55 +00:00
<section class="content-area column col-5 col-md-12">
2019-07-02 07:34:12 +00:00
<div class="content-area-header">
<h2>Login</h2>
</div>
<form method="post" action="{% url 'login' %}">
{% csrf_token %}
{% if form.errors %}
<div class="form-group has-error">
<p class="form-input-hint">Your username and password didn't match. Please try again.</p>
</div>
{% endif %}
<div class="form-group">
<label class="form-label" for="{{ form.username.id_for_label }}">Username</label>
{{ form.username|add_class:'form-input' }}
</div>
<div class="form-group">
2019-12-24 12:31:55 +00:00
<label class="form-label" for="{{ form.password.id_for_label }}">Password</label>
2019-07-02 07:34:12 +00:00
{{ form.password|add_class:'form-input' }}
</div>
2019-12-24 12:31:55 +00:00
<div class="columns mt-2">
<div class="column col-3">
<input type="submit" value="Login" class="btn btn-primary">
<input type="hidden" name="next" value="{{ next }}">
</div>
{% if allow_registration %}
<div class="column col-auto col-ml-auto">
<a href="{% url 'django_registration_register' %}" class="btn btn-link">Register</a>
</div>
{% endif %}
</div>
2019-07-02 07:34:12 +00:00
</form>
</section>
</div>
</div>
{% endblock %}