[pirate-politics] r615 committed - Created wiki page through web user interface.

2 views
Skip to first unread message

pirate-...@googlecode.com

unread,
Feb 9, 2011, 10:39:14 AM2/9/11
to pirate-poli...@googlegroups.com
Revision: 615
Author: fragro
Date: Wed Feb 9 07:37:57 2011
Log: Created wiki page through web user interface.
http://code.google.com/p/pirate-politics/source/detail?r=615

Added:
/wiki/pp_tag_form.wiki

=======================================
--- /dev/null
+++ /wiki/pp_tag_form.wiki Wed Feb 9 07:37:57 2011
@@ -0,0 +1,39 @@
+#summary To load this tag include {% load tag_helpers %} at the top of the
html file.
+#sidebar TableOfContents
+
+= Custom Tag: `pp_tag_form` =
+====_Module: pirate_core_====
+
+This template tag populates the namespace `pp_tag` with a simple form that
allows for the addition of tags.
+
+==_Arguments and Parameters_==
+
+ * object: The object being tagged
+ * user: The user tagging the object, creates a TagEvent
+ * tag: Optional tag argument for editing
+
+==_Return value_==
+
+ * `pp_tag.form`: This form contains the HTML element for the tag name and
submit button
+
+==_Usage Notes_==
+ * *Assumptions*: None
+
+ * *Errors*: None
+
+==_Examples_==
+====Basic form====
+The following code displays the list of tags with a link.
+{{{
+{% pp_tag_form POST=request.POST path=request.path object=request.object %}
+ <div id="tag_rightcol" style="display:none; overflow:hidden;
height:150px;">
+ {{ pp_tag.form.errors }}
+ <form method="post" action="">
+ {{ pp_tag.form.tag}}
+ {{pp_tag.form.form_id}}
+ {% csrf_token %}
+ <input type="submit" class='button green' value="Submit
Tag">
+ </form>
+ {% endpp_tag_form %}
+</div>
+}}}

Reply all
Reply to author
Forward
0 new messages