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:
32
web/views/templates/login.html
Normal file
32
web/views/templates/login.html
Normal 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 %}
|
Reference in New Issue
Block a user