summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorsubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:54:17 +0100
committersubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:54:17 +0100
commitb57452f68de8f73c63222c61fdae84f900c3a190 (patch)
tree89d7af037d3bbaa1cfd303bcc2d87bb9507cc0ba /templates
parent24dc7c5a0c996945a0709f8e82b026914ee9dbfc (diff)
downloadtroggle-b57452f68de8f73c63222c61fdae84f900c3a190.tar.gz
troggle-b57452f68de8f73c63222c61fdae84f900c3a190.tar.bz2
troggle-b57452f68de8f73c63222c61fdae84f900c3a190.zip
[svn] Enable profile setup forms.
Profiles are Person model instances, and are linked to django's built in User model by a one to one foreign key. We are using the django-registration and django-profiles pluggables. Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8247 by aaron @ 2/18/2009 9:35 PM
Diffstat (limited to 'templates')
-rw-r--r--templates/profiles/create_profile.html2
-rw-r--r--templates/profiles/edit_profile.html13
-rw-r--r--templates/profiles/profile_detail.html10
-rw-r--r--templates/profiles/select_profile.html13
-rw-r--r--templates/registration/registration_complete.html2
5 files changed, 38 insertions, 2 deletions
diff --git a/templates/profiles/create_profile.html b/templates/profiles/create_profile.html
index 2eed3e4..7e32597 100644
--- a/templates/profiles/create_profile.html
+++ b/templates/profiles/create_profile.html
@@ -3,7 +3,7 @@
{% block content %}
<form method="post">
-{{ form }}
+{{ form.as_p }}
<input type="submit" />
</form>
diff --git a/templates/profiles/edit_profile.html b/templates/profiles/edit_profile.html
new file mode 100644
index 0000000..7e32597
--- /dev/null
+++ b/templates/profiles/edit_profile.html
@@ -0,0 +1,13 @@
+{% extends "base.html" %}
+
+{% block content %}
+
+<form method="post">
+{{ form.as_p }}
+<input type="submit" />
+</form>
+
+{% if form.errors %}
+ <p class="errornote">Please correct the errors below</p>
+{% endif %}
+{% endblock %} \ No newline at end of file
diff --git a/templates/profiles/profile_detail.html b/templates/profiles/profile_detail.html
new file mode 100644
index 0000000..543785f
--- /dev/null
+++ b/templates/profiles/profile_detail.html
@@ -0,0 +1,10 @@
+{% extends "base.html" %}
+
+{% block content %}
+
+{{ profile }}
+
+{% if form.errors %}
+ <p class="errornote">Please correct the errors below</p>
+{% endif %}
+{% endblock %} \ No newline at end of file
diff --git a/templates/profiles/select_profile.html b/templates/profiles/select_profile.html
new file mode 100644
index 0000000..7e32597
--- /dev/null
+++ b/templates/profiles/select_profile.html
@@ -0,0 +1,13 @@
+{% extends "base.html" %}
+
+{% block content %}
+
+<form method="post">
+{{ form.as_p }}
+<input type="submit" />
+</form>
+
+{% if form.errors %}
+ <p class="errornote">Please correct the errors below</p>
+{% endif %}
+{% endblock %} \ No newline at end of file
diff --git a/templates/registration/registration_complete.html b/templates/registration/registration_complete.html
index 552fa04..7cc8ab2 100644
--- a/templates/registration/registration_complete.html
+++ b/templates/registration/registration_complete.html
@@ -9,5 +9,5 @@ registration_complete.html | {{ block.super }}
{% endblock %}
{% block content %}
-Thank you for signing up. An email with the activation code has been sent to your inbox.
+Thank you for signing up, {{ user.username }}. An email with the activation code has been sent to your inbox. Please <a href={% url profiles_create_profile %}> create your profile</a>. If you have been on the expedition in the past, this step allows existing expedition data to be linked to your new account.
{% endblock %} \ No newline at end of file