1
0
mirror of https://github.com/bspeice/Melodia synced 2025-07-02 22:44:42 -04:00

Create a models package, add template file suffix

Also, add AngularJS
This commit is contained in:
Bradlee Speice
2013-05-09 17:16:43 -04:00
parent 17960be548
commit 6e767fb3fb
13 changed files with 887 additions and 7 deletions

View File

@ -0,0 +1,32 @@
{% 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 %}