mirror of
https://github.com/bspeice/Melodia
synced 2025-04-21 10:21:29 -04:00
33 lines
797 B
Bash
33 lines
797 B
Bash
{% extends "base" %}
|
|
|
|
{% block page_title %}Login to Melodia{% endblock %}
|
|
|
|
{% block navbar_title %}Login to Melodia{% endblock %}
|
|
{# Disable navbar content other than the title #}
|
|
{% block navbar_content %}{% endblock %}
|
|
|
|
{# Similar to navbar, but remove entire sidebar #}
|
|
{% block sidebar %}{% endblock %}
|
|
|
|
{% block body %}
|
|
<center>
|
|
<form action="" method="post">
|
|
{% csrf_token %}
|
|
|
|
{# We display the elements ourselves, since we don't want to render errors #}
|
|
<p><label>Username:</label>
|
|
{{ auth_form.username }}
|
|
</p>
|
|
<p><label>Password:</label>
|
|
{{ auth_form.password }}
|
|
</p>
|
|
<button class="btn btn-primary">Login to Melodia</button>
|
|
</form>
|
|
|
|
{% if login_error %}
|
|
<div class="alert alert-error span4 offset4">{{ login_error }}</div>
|
|
{% endif %}
|
|
|
|
</center>
|
|
{% endblock %}
|