From c46d21012bdb0cad3c4e2313586b0a5ea740bcbe Mon Sep 17 00:00:00 2001 From: supriya Date: Mon, 13 Aug 2012 17:21:33 +0530 Subject: tags added to wikipage --- gstudio/static/gstudio/js/addcontent.js | 26 ++++----- gstudio/templates/gstudio/NewPage.html | 6 ++ gstudio/templates/gstudio/NewSection1.html | 5 ++ gstudio/templates/gstudio/skeleton.html | 4 ++ gstudio/templates/gstudio/tags/commentpage.html | 23 +++++++- gstudio/templates/metadashboard/pgedashboard.html | 71 +++++++++++++++-------- gstudio/views/page.py | 8 +++ 7 files changed, 104 insertions(+), 39 deletions(-) (limited to 'gstudio') diff --git a/gstudio/static/gstudio/js/addcontent.js b/gstudio/static/gstudio/js/addcontent.js index fe4f51c6..655e2f5d 100644 --- a/gstudio/static/gstudio/js/addcontent.js +++ b/gstudio/static/gstudio/js/addcontent.js @@ -4,6 +4,7 @@ $("#addcontent").one("click",function(){ //var abc = document.getElementById('pageid1').value; //window.location.replace('sectionadd1/'+abc); + $("#save").show(); $("#chart").hide(); // var orgdata = document.getElementById('orgcontent').value; document.getElementById('gnoweditor').style.visibility="visible"; @@ -27,6 +28,7 @@ $("#chart").hide(); document.getElementById('gnoweditor').style.visibility="visible"; $("#gnoweditor").orgitdown(mySettings); + $("#save1").show(); }); $("#save1").one("click",function() { var org_data = $("#gnoweditor").val(); @@ -36,6 +38,8 @@ }); $("#editseccontent").one("click",function(){ + $("#saveseccontent").show(); + $("#chart").hide(); document.getElementById('gnoweditor').style.visibility="visible"; $("#gnoweditor").orgitdown(mySettings); @@ -44,10 +48,6 @@ var screenTop = $(document).scrollTop(); $(".orgitdownContainer").css({ "margin-top":screenTop,}); - $("#savesubsec").hide(); - $("#savesubsec1").hide(); - $("#savepagecontent").hide(); - }); $("#saveseccontent").one("click",function(){ var org_data = $("#gnoweditor").val(); @@ -85,6 +85,8 @@ }); $("#editsubsec").one("click",function(){ + $("#savesubsec1").show(); + $("#chart").hide(); document.getElementById('gnoweditor').style.visibility="visible"; $("#gnoweditor").orgitdown(mySettings); @@ -93,10 +95,7 @@ var screenTop = $(document).scrollTop(); $(".orgitdownContainer").css({ "margin-top":screenTop,}); - $("#savesubsec").hide(); - $("#saveseccontent").hide(); - $("#savepagecontent").hide(); - + }); $("#savesubsec1").one("click",function(){ var org_data = $("#gnoweditor").val(); @@ -136,6 +135,7 @@ $("#editpagecontent").one("click",function(){ $("#chart").hide(); + $("#savepagecontent").show(); document.getElementById('gnoweditor').style.visibility="visible"; $("#gnoweditor").orgitdown(mySettings); @@ -144,10 +144,6 @@ var screenTop = $(document).scrollTop(); $(".orgitdownContainer").css({ "margin-top":screenTop,}); - $("#saveseccontent").hide(); - $("#savesubsec").hide(); - $("#savesubsec1").hide(); - }); $("#savepagecontent").one("click",function(){ @@ -189,6 +185,8 @@ $("#createsubsection").one("click",function(){ + $("#savesubsec").show(); + $("#chart").hide(); document.getElementById('gnoweditor').style.visibility="visible"; $("#gnoweditor").orgitdown(mySettings); @@ -196,9 +194,7 @@ var screenTop = $(document).scrollTop(); $(".orgitdownContainer").css({ "margin-top":screenTop,}); - $("#savesubsec1").hide(); - $("#saveseccontent").hide(); - $("#savepagecontent").hide(); + }); $("#savesubsec").one("click",function() { var org_data = $("#gnoweditor").val(); diff --git a/gstudio/templates/gstudio/NewPage.html b/gstudio/templates/gstudio/NewPage.html index ac87a10a..b73b0dc4 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 %} + + + {%if user.is_authenticated%} {% if errors %}