mirror of
https://github.com/bspeice/Melodia
synced 2025-04-21 02:11:31 -04:00
34 lines
816 B
Bash
34 lines
816 B
Bash
{% extends "base" %}
|
|
|
|
{% block page_title %}Login to Melodia{% endblock %}
|
|
|
|
{% block navbar_title %}Login to Melodia{% endblock %}
|
|
|
|
{# Specifying a blank sidebar, rather than sidebar_content, allows us to remove the sidebar entirely. #}
|
|
{% 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 auth_form.non_field_errors %}
|
|
<div class="alert alert-error span4 offset4">{{ auth_form.non_field_errors }}</div>
|
|
{% endif %}
|
|
|
|
</center>
|
|
{% endblock %}
|
|
|
|
|
|
<!-- vim: ft=htmldjango
|