mirror of
https://github.com/sissbruecker/linkding.git
synced 2026-02-28 06:53:12 +08:00
40 lines
1.4 KiB
HTML
40 lines
1.4 KiB
HTML
{% extends 'shared/layout.html' %}
|
|
{% load shared %}
|
|
{% block head %}
|
|
{% with page_title="Login - Linkding" %}{{ block.super }}{% endwith %}
|
|
{% endblock %}
|
|
{% block content %}
|
|
<main class="mx-auto width-50 width-md-100" aria-labelledby="main-heading">
|
|
<div class="section-header">
|
|
<h1 id="main-heading">Login</h1>
|
|
</div>
|
|
<form method="post" action="{% url 'login' %}">
|
|
{% csrf_token %}
|
|
{% if form.errors %}
|
|
<p class="form-input-hint is-error">Your username and password didn't match. Please try again.</p>
|
|
{% endif %}
|
|
<div class="form-group">
|
|
{% formlabel form.username 'Username' %}
|
|
{% formfield form.username class='form-input' %}
|
|
</div>
|
|
<div class="form-group">
|
|
{% formlabel form.password 'Password' %}
|
|
{% formfield form.password class='form-input' %}
|
|
</div>
|
|
<br />
|
|
<div class="d-flex justify-between">
|
|
<input type="submit" value="Login" class="btn btn-primary btn-wide" />
|
|
<input type="hidden" name="next" value="{{ next }}" />
|
|
{% if enable_oidc %}
|
|
<a class="btn btn-link"
|
|
href="{% url 'oidc_authentication_init' %}"
|
|
data-turbo="false">Login with OIDC</a>
|
|
{% endif %}
|
|
{% if allow_registration %}
|
|
<a href="{% url 'django_registration_register' %}" class="btn btn-link">Register</a>
|
|
{% endif %}
|
|
</div>
|
|
</form>
|
|
</main>
|
|
{% endblock %}
|