diff options
author | Mike Crute <mcrute@gmail.com> | 2012-12-04 16:44:28 -0500 |
---|---|---|
committer | Mike Crute <mcrute@gmail.com> | 2012-12-20 22:00:11 -0500 |
commit | ce3b9091f080c2a33a60d23af99de3222e570024 (patch) | |
tree | 68e7a84b800e6d91ffe26d48e31e34aa88ce64d3 /templates | |
parent | bd95993653a1b94d07316e24a0f519d00f9359d6 (diff) | |
download | django-precompiler-ce3b9091f080c2a33a60d23af99de3222e570024.tar.bz2 django-precompiler-ce3b9091f080c2a33a60d23af99de3222e570024.tar.xz django-precompiler-ce3b9091f080c2a33a60d23af99de3222e570024.zip |
User can create account
Diffstat (limited to 'templates')
-rw-r--r-- | templates/accounts/create.html | 11 | ||||
-rw-r--r-- | templates/index.html | 2 |
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> |