mirror of
https://github.com/bspeice/Melodia
synced 2025-07-04 07:24:43 -04:00
Commit the login page
Contains some fixes, etc. in order to make the login page work.
This commit is contained in:
33
web/views/templates/login
Normal file
33
web/views/templates/login
Normal file
@ -0,0 +1,33 @@
|
||||
{% 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
|
Reference in New Issue
Block a user