Added:
/wiki/pp_profile_form.wiki
=======================================
--- /dev/null
+++ /wiki/pp_profile_form.wiki Wed Feb 9 04:48:41 2011
@@ -0,0 +1,45 @@
+#summary To load this tag include {% load profiletags %} at the top of the
html file.
+#sidebar TableOfContents
+
+= Custom Tag: `pp_profile_form` =
+====_Module: pirate_messges_====
+
+This template tag populates the namespace `pp_profile` with a form object
that allows the user to create a Profile object for their User.
+
+==_Arguments and Parameters_==
+
+ * user: the user that is creating a Profile
+ * profile: if the Profile is being edited.
+ * POST: `request.POST` object
+
+==_Return value_==
+
+ * `pp_profile.form`: Contains the HTML form to create a profile
+
+==_Usage Notes_==
+ * *Assumptions*: None
+
+ * *Errors*: None
+
+==_Examples_==
+====Advanced form====
+The following code will display the reputation integer.
+{{{
+ {% pp_profile_form POST=request.POST user=request.user %}
+ <h2 class="add_profile"> <a href="javascript:;"
onmousedown="toggleSlide('add_profile');">Add profile for
{{request.user.username}}</a></h2>
+ <div id="add_profile" style="display:none;
overflow:hidden; height:250px;">
+ <div id = "add">
+ {{ pp_profile.form.errors }}
+ <form method="post" action="">
+ Birth Date:<br>
+ {{ pp_profile.form.birth_date}} <font size="-1">use
format: MM/DD/YYYY</font>
+ <br>
+ Biography:<br>
+ {{ pp_profile.form.bio}}
+ {{ pp_profile.form.form_id}}
+ {% csrf_token %}
+ <input type="submit" class="button green"
value="Submit">
+ </form>
+ </div></div>
+ {% endpp_profile_form %}
+}}}