diff options
Diffstat (limited to 'gstudio/templates')
-rw-r--r-- | gstudio/templates/gstudio/NewPage.html | 6 | ||||
-rw-r--r-- | gstudio/templates/gstudio/NewSection1.html | 5 | ||||
-rw-r--r-- | gstudio/templates/gstudio/skeleton.html | 4 | ||||
-rw-r--r-- | gstudio/templates/gstudio/tags/commentpage.html | 23 | ||||
-rw-r--r-- | gstudio/templates/metadashboard/pgedashboard.html | 71 |
5 files changed, 85 insertions, 24 deletions
diff --git a/gstudio/templates/gstudio/NewPage.html b/gstudio/templates/gstudio/NewPage.html index ac87a10..b73b0dc 100644 --- a/gstudio/templates/gstudio/NewPage.html +++ b/gstudio/templates/gstudio/NewPage.html @@ -1,6 +1,12 @@ {%extends "gstudio/base.html"%} {%load i18n %} {% block content %} +<script src="http://code.jquery.com/jquery-latest.js"></script> + <script type="text/javascript" > + $(window).load(function() { + $("#save1").hide();}); +</script> + {%if user.is_authenticated%} {% if errors %} <ul> diff --git a/gstudio/templates/gstudio/NewSection1.html b/gstudio/templates/gstudio/NewSection1.html index 01cd3d9..daf29bc 100644 --- a/gstudio/templates/gstudio/NewSection1.html +++ b/gstudio/templates/gstudio/NewSection1.html @@ -1,6 +1,11 @@ {% extends "gstudio/base.html" %} {% block content %} +<script src="http://code.jquery.com/jquery-latest.js"></script> + <script type="text/javascript" > + $(window).load(function() { + $("#save").hide();}); +</script> <h1>Add a new Section</h1> {% if errors %} <ul> diff --git a/gstudio/templates/gstudio/skeleton.html b/gstudio/templates/gstudio/skeleton.html index 3e0de7f..176b0b3 100644 --- a/gstudio/templates/gstudio/skeleton.html +++ b/gstudio/templates/gstudio/skeleton.html @@ -293,6 +293,10 @@ <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/topiccomment.js"></script> + <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script> + <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/orgitdown/orgitdown/sets/org/set.js"></script> + + <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/orgitdown/orgitdown/jquery.orgitdown.js"></script> <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/orgitdown/orgitdown/sets/savedata.js"></script> <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script> diff --git a/gstudio/templates/gstudio/tags/commentpage.html b/gstudio/templates/gstudio/tags/commentpage.html index 1b5a0ca..a55f4ed 100644 --- a/gstudio/templates/gstudio/tags/commentpage.html +++ b/gstudio/templates/gstudio/tags/commentpage.html @@ -4,6 +4,8 @@ {% load gstudio_tags %} {% load i18n %} +{% load tagging_tags comments i18n %} + @@ -32,7 +34,26 @@ <input type="button" id="subsecorg" value="{{child.content_org}}" style="visibility:hidden;"/> <input type="button" id="subsecid" value="{{child.id}}" style="visibility:hidden;"/> <input type="checkbox" name="del_comment" value="delete_comment"> - <input type="submit" value="Delete this Subsection"> + <input type="submit" value="Delete this Subsection"></br> + <form method="post" action="">{% csrf_token %} + <input type="hidden" name="docid" value={{child.id}}> + <input type="text" value="" name="texttags" /> + <input type="submit" value="Add Tags" name="addtags" /> + </form> + <br> + <div class="tags"> + <p class="gbobject-tags span-16 last"> + <strong>{% trans "Tags" %}</strong> : + {% tags_for_object child as tag_list %} + {% for tag in tag_list %} + <a href="{% url objectapp_tag_detail tag %}" + title="Tag {{ tag }}" rel="tag">{{ tag }}</a> + {% empty %} + <span>{% trans "No tags" %}</span> + {% endfor %} + </p> + </div> + </form> {% show_commentpage child idusr flag admin_id attribute%} </li> diff --git a/gstudio/templates/metadashboard/pgedashboard.html b/gstudio/templates/metadashboard/pgedashboard.html index c46cc07..f06063a 100644 --- a/gstudio/templates/metadashboard/pgedashboard.html +++ b/gstudio/templates/metadashboard/pgedashboard.html @@ -3,6 +3,9 @@ {% load adminmedia grp_tags %} {% load gstudio_tags %} {% load pagination_tags %} +{% load i18n objectapp_tags %} +{% load tagging_tags comments i18n %} + <!-- {% load i18n %} --> {% block content %} <style> @@ -20,6 +23,14 @@ $(window).load(function() { $("#graphcss").hide(); }); +$(window).load(function() { + + $("#savepagecontent").hide(); + $("#saveseccontent").hide(); + $("#savesubsec").hide(); + $("#savesubsec1").hide(); + + }); </script> @@ -39,32 +50,27 @@ $(window).load(function() { <input type="button" id="editpagecontent" value="Edit"/> <input type="button" id="savepagecontent" value="Save"/></br> + <form method="post" action="">{% csrf_token %} + <input type="hidden" name="docid" value={{page_ob.id}}> + <input type="text" value="" name="texttags" /> + <input type="submit" value="Add Tags" name="addtags" /> + </form> + <br> + <div class="tags"> + <p class="gbobject-tags span-16 last"> + <strong>{% trans "Tags" %}</strong> : + {% tags_for_object ot as tag_list %} + {% for tag in tag_list %} + <a href="{% url objectapp_tag_detail tag %}" + title="Tag {{ tag }}" rel="tag">{{ tag }}</a> + {% empty %} + <span>{% trans "No tags" %}</span> + {% endfor %} + </p> + </div> <input type="button" id="pageid" value="{{page_ob.id}}" style="visibility:hidden;"/> <input type="button" id="pageorg" value="{{page_ob.content_org}}" style="visibility:hidden;"/> - - <!-- <h3> This Discussion was initiated by {{admin_m.username}}</h3> --> - - <!-- <h>You are logged in as <font color="blue">{{user.username}}</font></h> --> - - <!-- {%if flag %} --> - <!-- <div id="Release"> --> - <!-- <form method="post" action=".">{% csrf_token %} --> - <!-- <input type="submit" value="Release Replies"> --> - <!-- <input type="hidden" value="hits" name = "pagerelease"> --> - <!-- </form> --> - <!-- </div> --> - <!-- <div> --> - <!-- <form method="post" action=".">{% csrf_token %} --> - <!-- <input type="submit" value="Block Replies"> --> - <!-- <input type="hidden" value="hits" name = "block"> --> - <!-- </form> --> - <!-- </div> --> - <!-- {% endif %} --> - <!-- </br> --> - - <form method="post" action=".">{% csrf_token %} -<!-- <input type="hidden" value="{{page_ob.id}}" name = "pageid">--> <input type="button" id="newsection1" value="Add a new Section" onClick="location.href=parseURL('sectionadd1/{{page_ob.id}}');"> <input type="hidden" id="pageid1" value="{{page_ob.id}}"/> </form> @@ -89,6 +95,25 @@ $(window).load(function() { {% endautoescape%} <input type="button" id="editseccontent" value="Edit"/> <input type="button" id="saveseccontent" value="Save"/> + <form method="post" action="">{% csrf_token %} + <input type="hidden" name="docid" value={{each.id}}> + <input type="text" value="" name="texttags" /> + <input type="submit" value="Add Tags" name="addtags" /> + </form> + <br> + <div class="tags"> + <p class="gbobject-tags span-16 last"> + <strong>{% trans "Tags" %}</strong> : + {% tags_for_object each as tag_list %} + {% for tag in tag_list %} + <a href="{% url objectapp_tag_detail tag %}" + title="Tag {{ tag }}" rel="tag">{{ tag }}</a> + {% empty %} + <span>{% trans "No tags" %}</span> + {% endfor %} + </p> + </div> + <input type="button" id="sectionorg" value="{{each.content_org}}" style="visibility:hidden;"/> <input type="button" id="sectionid" value="{{each.id}}" style="visibility:hidden;"/> <form method="post" action=".">{% csrf_token %}<br/> |