2013-01-24 19:04:29 -05:00
|
|
|
{% extends "base" %}
|
|
|
|
|
|
|
|
{% block page_title %}Login to Melodia{% endblock %}
|
|
|
|
|
|
|
|
{% block navbar_title %}Login to Melodia{% endblock %}
|
2013-02-05 14:20:26 -05:00
|
|
|
{# Disable navbar content other than the title #}
|
|
|
|
{% block navbar_content %}{% endblock %}
|
2013-01-24 19:04:29 -05:00
|
|
|
|
2013-02-05 14:20:26 -05:00
|
|
|
{# Similar to navbar, but remove entire sidebar #}
|
2013-01-24 19:04:29 -05:00
|
|
|
{% 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>
|
|
|
|
|
2013-02-05 14:20:26 -05:00
|
|
|
{% if login_error %}
|
|
|
|
<div class="alert alert-error span4 offset4">{{ login_error }}</div>
|
2013-01-24 19:04:29 -05:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</center>
|
|
|
|
{% endblock %}
|