Initial commit
This commit is contained in:
commit
d5c605e4ad
22 changed files with 1372 additions and 0 deletions
28
templates/registration/login.html
Normal file
28
templates/registration/login.html
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% if form.errors %}
|
||||
<p>Your username and password didn't match. Please try again.</p>
|
||||
{% endif %}
|
||||
|
||||
<form method="post" action="{% url django.contrib.auth.views.login %}">
|
||||
{% csrf_token %}
|
||||
|
||||
<h2>Your Username</h2>
|
||||
<p>
|
||||
{{ form.username }}
|
||||
</p>
|
||||
|
||||
<h2>Your Password</h2>
|
||||
<p>
|
||||
{{ form.password }}
|
||||
</p>
|
||||
|
||||
<div id="button_center">
|
||||
<input type="submit" value="Login to Drinkkit" class="button large" style="margin-bottom: 10px;">
|
||||
<input type="hidden" name="next" value="{{ next }}" />
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
14
templates/registration/register.html
Normal file
14
templates/registration/register.html
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Create an account</h2>
|
||||
|
||||
<form action="/register/" method="post">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
|
||||
<div id="button_center">
|
||||
<input type="submit" value="Create Your Drinkkit Account" class="button large" style="margin-bottom: 10px;">
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in a new issue