Melodia/web/views/templates/login

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