aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/accounts/create.html11
-rw-r--r--templates/index.html2
2 files changed, 13 insertions, 0 deletions
diff --git a/templates/accounts/create.html b/templates/accounts/create.html
new file mode 100644
index 0000000..130f180
--- /dev/null
+++ b/templates/accounts/create.html
@@ -0,0 +1,11 @@
1{% extends "base.html" %}
2
3{% block content %}
4<h1>Register an Account</h1>
5
6<form method="post" action="{% url 'account:create' %}">
7 {% csrf_token %}
8 {{ form.as_p }}
9 <input type="submit" value="Register" />
10</form>
11{% endblock %}
diff --git a/templates/index.html b/templates/index.html
index 1e497a5..2bba5df 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -7,9 +7,11 @@
7<ul> 7<ul>
8 <li><a href="{% url 'contact:form' %}">Contact Us</a></li> 8 <li><a href="{% url 'contact:form' %}">Contact Us</a></li>
9{% if user.is_authenticated %} 9{% if user.is_authenticated %}
10 <li><a href="{% url 'account:profile' %}">{{ user.username }}'s profile</a></li>
10 <li><a href="{% url 'auth:logout' %}">Logout ({{ user.username }})</a></li> 11 <li><a href="{% url 'auth:logout' %}">Logout ({{ user.username }})</a></li>
11{% else %} 12{% else %}
12 <li><a href="{% url 'auth:login' %}">Login</a></li> 13 <li><a href="{% url 'auth:login' %}">Login</a></li>
14 <li><a href="{% url 'account:create' %}">Register</a></li>
13{% endif %} 15{% endif %}
14</ul> 16</ul>
15<p>You've just created your first Django page. Pretty cool, eh?</p> 17<p>You've just created your first Django page. Pretty cool, eh?</p>