[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
This commit is contained in:
substantialnoninfringinguser
2009-05-13 05:54:17 +01:00
parent 24dc7c5a0c
commit b57452f68d
8 changed files with 86 additions and 24 deletions

View File

@@ -3,7 +3,7 @@
{% block content %}
<form method="post">
{{ form }}
{{ form.as_p }}
<input type="submit" />
</form>

View File

@@ -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 %}

View File

@@ -0,0 +1,10 @@
{% extends "base.html" %}
{% block content %}
{{ profile }}
{% if form.errors %}
<p class="errornote">Please correct the errors below</p>
{% endif %}
{% endblock %}

View File

@@ -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 %}

View File

@@ -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 %}