Added:
/wiki/pp_argument_form.wiki
=======================================
--- /dev/null
+++ /wiki/pp_argument_form.wiki Wed Feb 9 03:52:37 2011
@@ -0,0 +1,41 @@
+#summary To load this tag include {% load argumenttags %} at the top of
the html file.
+#sidebar TableOfContents
+
+= Custom Tag: `pp_get_argument_form` =
+====_Module: pirate_reputation_====
+
+This template tag populates the namespace `pp_argumentation` with a form
to create a new argument.
+
+==_Arguments and Parameters_==
+
+ * object: the object which is the parent of the argument form, the object
being argued over
+ * arg_type: The str value of the arg_type
+ * user: user creating this argument
+
+==_Return value_==
+
+Returns an argument form.
+
+ * `pp_argumentation.form`: Contains the HTML form object.
+
+==_Usage Notes_==
+ * *Assumptions*: None
+
+ * *Errors*: None
+
+==_Examples_==
+====Basic form====
+The following code will display the reputation integer.
+{{{
+ {% pp_argument_form POST=request.POST object=request.object
request=request arg_type='yea' %}
+ <div class="add">
+ <div class="errors">{{ pp_argumentation.form.errors }}</div>
+ <form method="post" action="">
+ Summary of Argument: <br>{{ pp_argumentation.form.name }}<br>
+ Description: <br>{{ pp_argumentation.form.text }}<br>
+ {{ pp_argumentation.form.form_id}}
+ {% csrf_token %}
+ <input type="submit" class="button green" value="Submit Yea" />
+ </form>
+{% endpp_argument_form %}
+}}}