diff options
author | supriya <supriya@dragbox.(none)> | 2012-09-26 15:49:52 +0530 |
---|---|---|
committer | supriya <supriya@dragbox.(none)> | 2012-09-26 15:49:52 +0530 |
commit | 94535d4adc3a4960795d22e3b229a8375de10b74 (patch) | |
tree | 8d77de86b443495d67360dcd40786f2b8208d334 /gstudio/templates/gstudio/tags | |
parent | cad11e2f7ed848cdfd7779451bb0f4f931e062c3 (diff) | |
download | gnowsys-94535d4adc3a4960795d22e3b229a8375de10b74.tar.gz |
all modules integrated
Diffstat (limited to 'gstudio/templates/gstudio/tags')
-rw-r--r-- | gstudio/templates/gstudio/tags/comment.html | 113 | ||||
-rw-r--r-- | gstudio/templates/gstudio/tags/commentpage.html | 69 |
2 files changed, 72 insertions, 110 deletions
diff --git a/gstudio/templates/gstudio/tags/comment.html b/gstudio/templates/gstudio/tags/comment.html index 8e1d4806..efb462fc 100644 --- a/gstudio/templates/gstudio/tags/comment.html +++ b/gstudio/templates/gstudio/tags/comment.html @@ -1,13 +1,12 @@ - - - - - {% load gstudio_tags %} {% load i18n %} - - +<script type="text/javascript"> +$(window).load(function() { +$(".commentsavecontent").hide(); +$(".postreply").hide(); +}); +</script> {% if comment.posterior_nodes.count %} <!--<ul style="display: none;">--> <ul> @@ -27,32 +26,31 @@ else { document.getElementById("divchange").setAttribute("id","div2"); } + </script> - <li>{{each}}'s fabric + <li>{{each}}'s Response {% if child.rating.get_rating %} -Current rating is {{ child.rating.get_rating }}<br/> +<h5>Current rating is {{ child.rating.get_rating }}<h5/> {% endif %} <font style = "color:red;" size = 3>{{child.content}}</font> <form method="post" action=".">{% csrf_token %} - <input type="text" class="commentreptext"id="{{child.id}}" name = "reply" style="visibility:hidden"> - <input type="hidden" value={{child.id}} name = "parentid"> + <input type="hidden" class="commentreptext" id="text{{child.id}}" name="reply" style="visibility:hidden"> + <input type="hidden" id="hidden{{child.id}}" value={{child.id}} name="parentid"> <input type="hidden" value={{idusr}} name="idusr"> - <!-- <input type="hidden" value="{{child.id}}" name = "iden"> --> - <!-- <input type="text" id="commentreptext" name = "reply" style="visibility:hidden"> --> - - <br/><br/><br/><br/> - - <input type="button" class="commenteditor" id="{{ child.id }}" value="Reply"> - <input type="button" class="commentsavecontent" id="{{child.id}}" value="Save"> - <input type="submit" id="postreply" value="Post a Reply"> - <input type="checkbox" id="chk" name="del_comment" value="delete_comment"> - <input type="submit" value="delete" onclick="setcheck()"> + + <br/> + <input type="button" class="commenteditor" id="{{ child.id }}" value="Add a Response"> + <input type="button" class="commentsavecontent" id="save{{child.id}}" value="Save" onclick="saveclick(document.getElementById('hidden{{child.id}}').value)"> + <input type="submit" class="postreply" id="submit{{child.id}}" value="Submit"> + <input type="checkbox" class="chkdel" id="chk{{child.id}}" name="del_comment" value="delete_comment"> + <input type="submit" class="submitdelete" id="delete{{child.id}}" value="Delete" onclick="deleteclick(document.getElementById('hidden{{child.id}}').value)"> <br/> - Do you wanna rate it ? </br> - <input name="star1" type="radio" value=1 class="star"/> +<div class="rating"> + Rate the response </br> + <input name="star1" type="radio" value=1 class="star"/> <input name="star1" type="radio" value=2 class="star"/> <input name="star1" type="radio" value=3 class="star"/> <input name="star1" type="radio" value=4 class="star"/> @@ -60,7 +58,7 @@ Current rating is {{ child.rating.get_rating }}<br/> <!--topic id and user id hidden fields--> </br> <input type="submit" value="Rate Response"> - +</div> </form> </div> @@ -87,28 +85,24 @@ document.getElementById("divchange").setAttribute("id","div2"); {% if child.rating.get_rating %} Current rating is {{ child.rating.get_rating }}<br/> {% endif %} - <font style = "color:red;" size ="3"></font>{{child.content}} + <font style = "color:red;" size ="3">{{child.content}}</font> <form method="post" action="">{% csrf_token %} - <input type="text" class="commentreptext" id="{{child.id}}" name="reply" style="visibility:hidden"> - <input type="hidden" class="parent" value="{{child.id}}" name="parentid"> - <input type="hidden" value="{{idusr}}" name="idusr"> -<!-- <input type="hidden" value="{{child.id}}" name="iden"> --> - <!-- <input type="text" id="commentreptext" name = "reply" style="visibility:hidden"> --> - - - <br/><br/><br/><br/> - - <input type="button" class="commenteditor" id="{{ child.id }}" value="Reply"> - <input type="button" class="commentsavecontent" id="{{child.id}}" value="Save"> - <input type="submit" class="postreply" value="Post a Reply"> - <input type="checkbox" class="chk" name="del_comment" value="delete_comment"> - <input type="button" class="deleteresponse" value="delete" style="display:none"> - <input type="submit" class="deleteresp" value="delete"> + <input type="hidden" class="commentreptext" id="text{{child.id}}" name="reply" style="visibility:hidden"> + <input type="hidden" id="hidden{{child.id}}" value={{child.id}} name="parentid"> + <input type="hidden" value={{idusr}} name="idusr"> + <br/> + + <input type="button" class="commenteditor" id="{{ child.id }}" value="Add a Response"> + <input type="button" class="commentsavecontent" id="save{{child.id}}" value="Save" onclick="saveclick(document.getElementById('hidden{{child.id}}').value)"> + <input type="submit" class="postreply" id="submit{{child.id}}" value="Submit"> + <input type="checkbox" class="chkdel" id="chk{{child.id}}" name="del_comment" value="delete_comment"> + <input type="submit" class="submitdelete" id="delete{{child.id}}" value="Delete" onclick="deleteclick(document.getElementById('hidden{{child.id}}').value)"> <br/> - Do you wanna rate it ? </br> +<div class="rating"> + Rate the response </br> <input name="star1" type="radio" value=1 class="star"/> <input name="star1" type="radio" value=2 class="star"/> <input name="star1" type="radio" value=3 class="star"/> @@ -117,7 +111,7 @@ Current rating is {{ child.rating.get_rating }}<br/> <!--topic id and user id hidden fields--> </br> <input type="submit" value="Rate Response"> - +</div> </form> </div> {% show_comment child idusr flag admin_id attribute%} @@ -138,25 +132,25 @@ else document.getElementById("divchange").setAttribute("id","div2"); } </script> - {{each}}'s Response <br/> +{{each}}'s Response <br/> {% if child.rating.get_rating %} Current rating is {{ child.rating.get_rating }}<br/> {% endif %} - <font style = "color:red;" size = 3></font>{{child.content}} + <font style = "color:red;" size = 3>{{child.content}}</font> <form method="post" action=".">{% csrf_token %} - <input type="text" class="commentreptext"id="{{child.id}}" name = "reply" style="visibility:hidden"> - <input type="hidden" value="{{child.id}}" name = "parentid"> - <input type="hidden" value="{{idusr}}" name="idusr"> - <input type="hidden" value="{{child.id}}" name = "iden"> - <!-- <input type="text" id="commentreptext" name = "reply" style="visibility:hidden"> --> -<br/><br/><br/><br/> - - <input type="button" class="commenteditor" id="{{ child.id }}" value="Reply"> - <input type="button" class="commentsavecontent" id="{{child.id}}" value="Save"> - <input type="submit" id="postreply" value="Post a Reply" style="display:none"> - <input type="checkbox" id="chk" name="del_comment" value="delete_comment"> - <input type="submit" value="delete this comment""> <br/> + <input type="hidden" class="commentreptext" id="text{{child.id}}" name="reply" style="visibility:hidden"> + <input type="hidden" id="hidden{{child.id}}" value={{child.id}} name="parentid"> + <input type="hidden" value={{idusr}} name="idusr"> + + <br/> + {% if idusr %} + <input type="button" class="commenteditor" id="{{ child.id }}" value="Add a Response"> + <input type="button" class="commentsavecontent" id="save{{child.id}}" value="Save" onclick="saveclick(document.getElementById('hidden{{child.id}}').value)"> + <input type="submit" class="postreply" id="submit{{child.id}}" value="Submit"> + <input type="checkbox" class="chkdel" id="chk{{child.id}}" name="del_comment" value="delete_comment"> + <input type="submit" class="submitdelete" id="delete{{child.id}}" value="Delete" onclick="deleteclick(document.getElementById('hidden{{child.id}}').value)"> <br/> +<div class="rating"> Rate this response </br> <input name="star1" type="radio" value=1 class="star"/> <input name="star1" type="radio" value=2 class="star"/> @@ -166,12 +160,13 @@ Current rating is {{ child.rating.get_rating }}<br/> <!--topic id and user id hidden fields--> </br> <input type="submit" value="Rate Response"> - +</div> + {% endif %} </form> - + </div> - {% show_comment child idusr flag admin_id attribute%} {% endifequal %} + {% show_comment child idusr flag admin_id attribute%} {% endifequal %} {% endifequal %} {% endifequal %} {% endfor %} diff --git a/gstudio/templates/gstudio/tags/commentpage.html b/gstudio/templates/gstudio/tags/commentpage.html index a55f4edf..c5bb1f1f 100644 --- a/gstudio/templates/gstudio/tags/commentpage.html +++ b/gstudio/templates/gstudio/tags/commentpage.html @@ -8,38 +8,34 @@ - {% if comment.posterior_nodes.count %} <!--<ul style="display: none;">--> <ul> {% for child in comment.posterior_nodes.all %} <!-- Flag1 outside {{flag}}--> {% for each in child.authors.all %} - {% ifequal idusr admin_id %} - <font style = "color:red;" size = 3><li>{{child.title}}</font></br> {{child.content}} + + </br><h3><font size="5"><li>{{child.title}}</font></h3></br> + <font size="3"> {{child.content}}</font> + {% if idusr %} <form method="post" action=".">{% csrf_token %} - <!-- <textarea name = "replytosection" id="replytosection" rows="10" cols="50"></textarea> --> - <!-- <p>org --> - <!-- <textarea name = "orgreply" id="orgreplysection" rows="10" cols="50"></textarea> --> - <!-- </p> --> - <!-- <input type="hidden" value="{{child.id}}" name ="parentid"> --> - <input type="hidden" value="{{idusr}}" name="idusr"> - <input type="hidden" value="{{child.id}}" name="parentid"> - <!-- <input type="button" id="createsubsection" value="Create Sub"> --> - <!-- <input type="submit" value="Create Subsection"> --> - <!-- <input type="button" value="Reply" id="reply"></br> --> - <!-- <input type="button" name="savereply" id="savereply" value="Save Reply"></p></br> --> - <input type="button" id="editsubsec" value="Edit"/> - <input type="button" id="savesubsec1" value="Save"/> - <input type="button" id="subsecorg" value="{{child.content_org}}" style="visibility:hidden;"/> + <input type="hidden" class="reptext" name = "replytosection" id="sectionreply{{child.id}}" style="visibility:hidden;"/></br> + <input type="hidden" value="{{idusr}}" name="idusr"> + <input type="hidden" value="{{child.id}}" id="hidden{{child.id}}" name="parentid"> + <input type="button" class="editsubsec" name="{{child.content_org}}" id="{{child.id}}" value="Edit"/> + <input type="button" class="savesubsec1" name="{{each.id}}" id="save{{child.id}}" value="Save" onclick="subsecsave(document.getElementById('hidden{{child.id}}').value)"/> + <input type="button" id="subsec{{child.id}}" 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"></br> + <input type="hidden" class="editval" id="edit{{child.id}}" name="edit" value="empty"/> + <!-- <input type="checkbox" name="del_comment" value="delete_comment"> --> + <!--<input type="submit" value="Delete this Subsection">--> + <input type="submit" class="submitsubsec1" id="subsecsubmit{{child.id}}" value="Submit"> <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" /> + <input type="text" class="tagtext" value="" name="texttags" /> + <input type="submit" class="tag" value="Add Tags" name="addtags" /> </form> + {% endif %} <br> <div class="tags"> <p class="gbobject-tags span-16 last"> @@ -57,36 +53,7 @@ </form> {% show_commentpage child idusr flag admin_id attribute%} </li> - {% else %} - {% ifequal idusr each.id %} - <li>{{each}} says <font style = "color:red;" size = 3>{{child.title}}</font> - <form method="post" action=".">{% csrf_token %} - <input type="text" name = "replytosection"> - <input type="hidden" value={{child.id}} name = "parentid"> - <input type="hidden" value={{idusr}} name="idusr"> - <input type="submit" value="Reply to section"> - <input type="checkbox" name="del_comment" value="delete_comment"> - <input type="submit" value="delete this comment"> - </form> - {% show_commentpage child idusr flag admin_id attribute%} - </li> - {% else %} - {% ifequal attribute "true" %} - - <li>{{each}} says <font style = "color:red;" size = 3>{{child.title}}</font> - <form method="post" action=".">{% csrf_token %} - <input type="text" name = "replytosection"> - <input type="hidden" value={{child.id}} name = "parentid"> - <input type="hidden" value={{idusr}} name="idusr"> - <input type="submit" value="Reply to section"> - <input type="checkbox" name="del_comment" value="delete_comment"> - <input type="submit" value="delete this comment"> - </form> - {% show_commentpage child idusr flag admin_id attribute%} - </li> - {% endifequal %} - {% endifequal %} - {% endifequal %} + {% endfor %} |