summaryrefslogtreecommitdiff
path: root/gstudio/templates
diff options
context:
space:
mode:
Diffstat (limited to 'gstudio/templates')
-rw-r--r--gstudio/templates/gstudio/NewPage.html36
-rw-r--r--gstudio/templates/gstudio/NewSection1.html31
-rw-r--r--gstudio/templates/gstudio/NewTopic1.html24
-rw-r--r--gstudio/templates/gstudio/_header.html3
-rw-r--r--gstudio/templates/gstudio/nodetype_detail.html8
-rw-r--r--gstudio/templates/gstudio/skeleton.html49
-rw-r--r--gstudio/templates/gstudio/tags/comment.html204
-rw-r--r--gstudio/templates/gstudio/tags/commentpage.html97
-rw-r--r--gstudio/templates/metadashboard/grpdashboard.html62
-rw-r--r--gstudio/templates/metadashboard/pgedashboard.html203
-rw-r--r--gstudio/templates/metadashboard/userdashboard.html10
-rw-r--r--gstudio/templates/metadashboard/wikidashboard.html24
12 files changed, 665 insertions, 86 deletions
diff --git a/gstudio/templates/gstudio/NewPage.html b/gstudio/templates/gstudio/NewPage.html
new file mode 100644
index 0000000..b73b0dc
--- /dev/null
+++ b/gstudio/templates/gstudio/NewPage.html
@@ -0,0 +1,36 @@
+{%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>
+{% for error in errors %}
+<li><font color="red">{{ error }} </font></li>
+{% endfor %}
+</ul>
+{% endif %}
+<form action="" method="post">
+{% csrf_token %}
+
+<p>Name of the Page: <input type="text" name="subject"></p>
+<textarea name="page" id="pagecontent" rows="10" cols="50" style="display:none;"></textarea></p>
+
+<p><textarea name="org1" id="orgpage1" rows="10" cols="50" style="display:none;" ></textarea></p></br>
+<input type="button" id="pagecontent1" name="content" value="Add Content"/>
+<input type="button" name="savepage" id="save1" value="Save Page"></p>
+</br>
+<input type="hidden" value={{user.id}} name = "idusr">
+<input type="submit" id="submitpage" value="Submit" style="display:none;"/>
+</form>
+{%else%}
+<p> Sorry! Login To proceed </p>
+
+{%endif%}
+{% endblock %}
+
diff --git a/gstudio/templates/gstudio/NewSection1.html b/gstudio/templates/gstudio/NewSection1.html
new file mode 100644
index 0000000..daf29bc
--- /dev/null
+++ b/gstudio/templates/gstudio/NewSection1.html
@@ -0,0 +1,31 @@
+
+{% 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>
+{% for error in errors %}
+<li><font color="red">{{ error }} </font></li>
+{% endfor %}
+</ul>
+{% endif %}
+
+<form action="" method="post">{% csrf_token %}
+<p>Title: <input type="text" name="subject"></p>
+<textarea name="page" id="pagecontent" rows="10" cols="50" style="display:none;"></textarea></p>
+<p><textarea name="org" id="orgpage" rows="10" cols="50" style="display:none;"></textarea></p>
+</br></br>
+
+<input type="button" id="addcontent" name="content" value="Add Content"/>
+<input type="button" name="savepage" id="save" value="Save Page"></p></br>
+<input type="hidden" value={{pageid}} id="sectionid">
+<input type="hidden" value={{user.id}} name = "idusr">
+<input type="submit" id="submitsec" value="Submit" style="display:none;"/>
+</form>
+
+{% endblock %}
diff --git a/gstudio/templates/gstudio/NewTopic1.html b/gstudio/templates/gstudio/NewTopic1.html
index 38a61c5..5f2db82 100644
--- a/gstudio/templates/gstudio/NewTopic1.html
+++ b/gstudio/templates/gstudio/NewTopic1.html
@@ -1,7 +1,20 @@
{% extends "gstudio/base.html" %}
{% block content %}
-<h1>Add a new Topic</h1>
+<script src="http://code.jquery.com/jquery-latest.js"></script>
+ <script type="text/javascript" >
+ $(window).load(function() {
+ $("#content").css({
+ "width": "1000px",});});
+$(window).load(function() {
+ $("#chart").hide();});
+$(window).load(function() {
+
+ $("#graphcss").hide();
+ });
+</script>
+
+<h1>Add a new Twist</h1>
{% if errors %}
<ul>
{% for error in errors %}
@@ -12,9 +25,14 @@
<form action="" method="post">{% csrf_token %}
<p>Title: <input type="text" name="subject"></p>
-<p>Description: <textarea name="message" rows="10" cols="50"></textarea></p>
+<p>Description: <textarea name="message" id="contenttext" rows="10" cols="50" style="display:none" ></textarea></p>
+<!-- style="display:none;" -->
+
+<input type="button" id="topicaddcontent" name="content" value="Add Description">
+<input type="button" id="topicaddsave" name="savecontent" value="Save">
+
<input type="hidden" value={{user.id}} name = "idusr">
-<input type="submit" value="Submit">
+<input type="submit" id="topicsubmit" value="Submit" style="display:none">
</form>
{% endblock %}
diff --git a/gstudio/templates/gstudio/_header.html b/gstudio/templates/gstudio/_header.html
index 08fdab2..1a5de32 100644
--- a/gstudio/templates/gstudio/_header.html
+++ b/gstudio/templates/gstudio/_header.html
@@ -15,8 +15,9 @@
{% if user.is_authenticated %}
{% if user.is_staff %}
- | <a href="{{ get_absolute_url }}/gstudio/user/{{user.username}}" title="MyBoard">Gnowledge Studio</a>
+ | <a href="{{ get_absolute_url }}/gstudio/user/{{user.username}}" title="My Loom Studio">Loom Studio</a>
| <a href="{{ get_absolute_url }}/gstudio/resources/documents" title="My Documents">Documents</a>
+ | <a href="{{ get_absolute_url }}/gstudio/user/wikipage/{{user.username}}" title="MyWiki">Wikipage</a>
| <a href="{{ get_absolute_url }}/gstudio/resources/images" title="Images">Images</a>
| <a href="{{ get_absolute_url }}/gstudio/resources/videos" title="My Videos">Videos</a>
| <a href="{{ get_absolute_url }}/admin" title="Admin Dashboard">Admin Dashboard</a>
diff --git a/gstudio/templates/gstudio/nodetype_detail.html b/gstudio/templates/gstudio/nodetype_detail.html
index 95cf45b..73db903 100644
--- a/gstudio/templates/gstudio/nodetype_detail.html
+++ b/gstudio/templates/gstudio/nodetype_detail.html
@@ -214,7 +214,7 @@
<b>
Content:<nbsp>
- <input type="button" id="editdata" value="Edit Content"/><ndsp><nbsp>
+ <input type="button" id="editdata" value="Edit Content"/> <input type="button" id="savecontent" value="Save Content"/><ndsp><nbsp>
<input type="hidden" id="objectid" value="{{object.id}}"/>
<input type="hidden" id="title" value="{{object.title}}"/>
<input type="hidden" id="orgcontent" value="{{object.content_org}}"/>
@@ -223,8 +223,10 @@
{% else %}
<b>
- Content:<nbsp> <input type="button"id="editdata" value="Edit Content"/><ndsp><nbsp>
- <input type="hidden" id="objectid" value="{{object.id}}"/>
+ Content:<nbsp>
+ <input type="button"id="editdata" value="Edit Content"/>
+ <input type="button" id="savecontent" value="Save Content"/><ndsp><nbsp>
+ <input type="hidden" id="objectid" value="{{object.id}}"/>
<input type="hidden" id="title" value="{{object.title}}"/>
<input type="hidden" id="orgcontent" value="{{object.content_org}}"/>
diff --git a/gstudio/templates/gstudio/skeleton.html b/gstudio/templates/gstudio/skeleton.html
index 8f5c30d..176b0b3 100644
--- a/gstudio/templates/gstudio/skeleton.html
+++ b/gstudio/templates/gstudio/skeleton.html
@@ -51,9 +51,9 @@
display: block;
position: absolute;
}
-.orgitdown .orgitdownButton1 a {
- background-image:url(/static/gstudio/js/orgitdown/orgitdown/sets/org/images/save.jpeg);
-}
+<!-- .orgitdown .orgitdownButton1 a { -->
+<!-- background-image:url(/static/gstudio/js/orgitdown/orgitdown/sets/org/images/save.jpeg); -->
+<!-- } -->
.orgitdown .orgitdownButton2 a {
background-image:url(/static/gstudio/js/orgitdown/orgitdown/sets/default/images/bold.png);
}
@@ -101,10 +101,10 @@
}
.orgitdownContainer {
border:1px solid #3C769D;
- background:#FFF url(/static/gstudio/js/orgitdown/orgitdown/skins/orgitdown/images/bg-container.png) repeat-x top left;
+ <!-- background:#FFF url(/static/gstudio/js/orgitdown/orgitdown/skins/orgitdown/images/bg-container.png) repeat-x top left; -->
padding:5px 5px 2px 5px;
font:11px Verdana, Arial, Helvetica, sans-serif;
- margin-left:450px;
+ margin-left:640px;
width:450px;
margin-top:30px;
}
@@ -283,8 +283,47 @@
<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/replytotopic.js"></script>
+
+ <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/replycomment.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/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>
+ <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/addcontent.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/updatepage.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/addcontent.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/updatesection.js"></script> -->
<!-- EXTRAHEAD -->
diff --git a/gstudio/templates/gstudio/tags/comment.html b/gstudio/templates/gstudio/tags/comment.html
index cf446fe..8e1d480 100644
--- a/gstudio/templates/gstudio/tags/comment.html
+++ b/gstudio/templates/gstudio/tags/comment.html
@@ -15,54 +15,166 @@
<!-- Flag1 outside {{flag}}-->
{% for each in child.authors.all %}
{% ifequal idusr admin_id %}
- <li>{{each}} says <font style = "color:red;" size = 3>{{child.title}}</font>
- <form method="post" action=".">{% csrf_token %}
- <input type="text" name = "reply">
- <input type="hidden" value={{child.id}} name = "parentid">
- <input type="hidden" value={{idusr}} name="idusr">
- <input type="submit" value="Post a Reply">
- <input type="checkbox" name="del_comment" value="delete_comment">
- <input type="submit" value="delete this comment">
- </form>
- {% show_comment 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 = "reply">
- <input type="hidden" value={{child.id}} name = "parentid">
- <input type="hidden" value={{idusr}} name="idusr">
- <input type="submit" value="Post a Reply">
- <input type="checkbox" name="del_comment" value="delete_comment">
- <input type="submit" value="delete this comment">
- </form>
- {% show_comment 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 = "reply">
- <input type="hidden" value={{child.id}} name = "parentid">
- <input type="hidden" value={{idusr}} name="idusr">
- <input type="submit" value="Post a Reply">
- <input type="checkbox" name="del_comment" value="delete_comment">
- <input type="submit" value="delete this comment">
- </form>
- {% show_comment child idusr flag admin_id attribute%}
- </li>
- {% endifequal %}
- {% endifequal %}
- {% endifequal %}
- {% endfor %}
-
-
-{% endfor %}
-</ul>
+<!-- If user is admin -->
+<div class="response_change" id="divchange">
+<script type="text/javascript">
+i = i+1;
+if (i%2 == 0)
+{
+document.getElementById("divchange").setAttribute("id","div1");
+}
+else
+{
+document.getElementById("divchange").setAttribute("id","div2");
+}
+</script>
+
+
+ <li>{{each}}'s fabric
+{% if child.rating.get_rating %}
+Current rating is {{ child.rating.get_rating }}<br/>
{% 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" 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/>
+ Do you wanna rate it ? </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"/>
+ <input name="star1" type="radio" value=5 class="star"/>
+ <!--topic id and user id hidden fields-->
+ </br>
+ <input type="submit" value="Rate Response">
+ </form>
+</div>
+
+
+ {% show_comment child idusr flag admin_id attribute%}
+
+
+ {% else %}
+ {% ifequal idusr each.id %}
+
+<div class="response_change" id="divchange">
+<script type="text/javascript">
+i = i+1;
+if (i%2 == 0)
+{
+document.getElementById("divchange").setAttribute("id","div1");
+}
+else
+{
+document.getElementById("divchange").setAttribute("id","div2");
+}
+</script>
+{{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}}
+ <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">
+
+
+<br/>
+ Do you wanna rate it ? </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"/>
+ <input name="star1" type="radio" value=5 class="star"/>
+ <!--topic id and user id hidden fields-->
+ </br>
+ <input type="submit" value="Rate Response">
+
+ </form>
+</div>
+ {% show_comment child idusr flag admin_id attribute%}
+
+
+ {% else %}
+ {% ifequal attribute "true" %}
+
+<div class="response_change" id="divchange">
+<script type="text/javascript">
+i = i+1;
+if (i%2 == 0)
+{
+document.getElementById("divchange").setAttribute("id","div1");
+}
+else
+{
+document.getElementById("divchange").setAttribute("id","div2");
+}
+</script>
+ {{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}}
+
+ <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/>
+ Rate this 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"/>
+ <input name="star1" type="radio" value=5 class="star"/>
+ <!--topic id and user id hidden fields-->
+ </br>
+ <input type="submit" value="Rate Response">
+
+ </form>
+
+</div>
+
+ {% show_comment child idusr flag admin_id attribute%} {% endifequal %}
+ {% endifequal %}
+ {% endifequal %}
+ {% endfor %}
+ {% endfor %}
+</ul>
+{% endif %}
diff --git a/gstudio/templates/gstudio/tags/commentpage.html b/gstudio/templates/gstudio/tags/commentpage.html
new file mode 100644
index 0000000..a55f4ed
--- /dev/null
+++ b/gstudio/templates/gstudio/tags/commentpage.html
@@ -0,0 +1,97 @@
+
+
+
+
+{% load gstudio_tags %}
+{% load i18n %}
+{% load tagging_tags comments i18n %}
+
+
+
+
+{% 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}}
+ <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="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>
+ <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>
+ {% 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 %}
+
+
+{% endfor %}
+</ul>
+{% endif %}
+
+
diff --git a/gstudio/templates/metadashboard/grpdashboard.html b/gstudio/templates/metadashboard/grpdashboard.html
index e92f616..f6cb6c0 100644
--- a/gstudio/templates/metadashboard/grpdashboard.html
+++ b/gstudio/templates/metadashboard/grpdashboard.html
@@ -14,14 +14,25 @@ $(window).load(function() {
$("#graphcss").hide();
});
+var i=0;
</script>
+<style type="text/css">
+#div2
+{
+ background-color:#E8E8E8 ;
+}
+#div1
+{
+ background-color:#F4F4F4;
+}
+</style>
{% if user.is_authenticated %}
- <input type="button" value="Home" onClick="location.href=parseURL('/gstudio/user/{{user.username}}');">
- <h>Hello Welcome to the {{ meet_ob.title }}</h></br>
- <h3> This Discussion was initiated by {{admin_m.username}}</h3>
+<!-- <input type="button" value="Home" onClick="location.href=parseURL('/gstudio/user/{{user.username}}');">
+ <h>Hello Welcome to the {{ meet_ob.title }}</h></br> -->
+ <h3> {{admin_m.username}}'s initial twist to the thread</h3>
- <h>You are logged in as <font color="blue">{{user.username}}</font></h>
+ <!-- <h>You are logged in as <font color="blue">{{user.username}}</font></h> -->
</br>
{%if flag %}
<div id="Release">
@@ -42,55 +53,60 @@ $(window).load(function() {
<form method="post" action=".">{% csrf_token %}
<!-- <input type="hidden" value="{{meet_ob.id}}" name = "meetid">-->
- <input type="button" value="Add a new Topic" onClick="location.href=parseURL('topicadd1/{{meet_ob.id}}');">
+ <input type="button" value="Add your twist" onClick="location.href=parseURL('topicadd1/{{meet_ob.id}}');">
</form>
-
-<!--direct link to identica-->
+<!-- direct link to identica
<a href="http://www.addtoany.com/add_to/identi_ca?linkurl=ur url&linkname={{post}} via" ><img src="http://www.tildehash.com/identishare/share.png" ></img></a>
-<!-- Twitter syndicating button -->
+<!-- Twitter syndicating button
<a href="https://twitter.com/share" class="twitter-share-button" data-url="https://127.0.0.1:8000/chat/" data-via="{{user.title}}" data-lang="en" data-text="{{post}}" data-related="anywhereTheJavascriptAPI" data-count="none">Tweet</a>
-<!-- Diaspora syndicating button -->
+<!-- Diaspora syndicating button
<script type="text/javascript" src="https://raw.github.com/DmitryBaranovskiy/raphael/master/raphael-min.js"></script>
<input id="diasporacontent" value="{{post}}" type="hidden" name="diaspora"></input>
<div id="R-button" style="width:44px;height:44px;cursor:pointer;">
<img id="asterisk" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAYAAACN1PRVAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQ1JREFUeNpi/P//PwO9ACMJajuA2BiL+FkgriDGABYSLANZ5EKJz5gY6AhGLaO6ZaAEoERl85WQUzCyZeVAfBeIz0DZShRYUA41B2ReGjZF/7FgZIt341CzG80CdPl36BaF4jCIWjgUORhdaJw2UMx/R2OfgYOSGYgFgfgoED8HYikon1rgHhDPAuJOIH6PqwzEFdnEYFiiMiYnGc8k0pIOSkNFiYT4fEepZbtJDMJV5FpUTmaclZNqkTER8YMvOIlOHIIEUmIHET4/Q0pb4z+echAZrCLCUXiLFVJSmyC0ZMelh2AxGIojubuQEL/vYIUvsflrNwkprBxLlUNW8ic276wi5ChGeraIAQIMAFUG5PAQfeaJAAAAAElFTkSuQmCC" width="26" height="26">
</div>
-
+-->
</br> {% autoescape off %}
{% for each in topic %}
<h4><font size="5" color="red">{{each.title}}</font></h4>
Posted on : {{each.creation_date}}
- Posted by :
+ by :
{% for author in each.authors.all %}
{{author}}
{% endfor %}</br>
- Current rating is <h5>{{ each.rating.get_rating }}</h5>
+ <!-- Current rating is <h5>{{ each.rating.get_rating }}</h5> -->
{%autoescape on%}
- <font color="green">{{each.content}}</font>
+ {% with each.html_content|safe as each_content %}
+ <font color="green"> {{each_content}} </font>
+ {% endwith %}
{% endautoescape%}
<form method="post" action=".">{% csrf_token %}
- Reply to the main thread :
- <input type="text" name = "reply">
+
+ <input type="text" class="reptext" name = "reply" style="display:none">
<input type="hidden" value="{{each.id}}" name = "iden">
<input type="hidden" value="{{user.id}}" name = "idusr">
- <input type="submit" value="Reply to Topic"></br>
- <!--<input name="del_topic" type="checkbox" value="delete_topic"/>Delete topic
- <input type="submit" value="Delete the topic"></br>
--->
- Do you wanna rate it ? </br>
+<br/><br/><br/>
+ <input type="button" class="editor" id="{{each.id}}" value="Add a Fiber">
+ <input type="button" class="savecontent" id="{{each.id}}" value="Save">
+
+ <input type="submit" value="Submit"></br>
+ <input name="del_topic" type="checkbox" value="delete_topic"/>
+ <input type="submit" value="Delete the twist"></br>
+
+ <!-- Rate this ? </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"/>
<input name="star1" type="radio" value=5 class="star"/>
- <!--topic id and user id hidden fields-->
+ <!--topic id and user id hidden fields
</br>
- <input type="submit" value="Rate it!!!">
+ <input type="submit" value="Rate it!!!"> -->
</form>
<p>
- Replies :
+ Fibers :
<!-- <div id="main">
<div id="sidetree">
<div class="treeheader">&nbsp;</div>
diff --git a/gstudio/templates/metadashboard/pgedashboard.html b/gstudio/templates/metadashboard/pgedashboard.html
new file mode 100644
index 0000000..f06063a
--- /dev/null
+++ b/gstudio/templates/metadashboard/pgedashboard.html
@@ -0,0 +1,203 @@
+{% extends "gstudio/base.html" %}
+{% load i18n comments gstudio_tags %}
+{% load adminmedia grp_tags %}
+{% load gstudio_tags %}
+{% load pagination_tags %}
+{% load i18n objectapp_tags %}
+{% load tagging_tags comments i18n %}
+
+<!-- {% load i18n %} -->
+{% block content %}
+<style>
+<link href="{% admin_media_prefix %}css/base.css" rel="stylesheet" type="text/css" />
+<link rel="stylesheet" type="text/css" media="screen, projection" href="{{ STATIC_URL }}gstudio/css/screen.css" />
+</style>
+<script src="http://code.jquery.com/jquery-latest.js"></script>
+ <script type="text/javascript" >
+ $(window).load(function() {
+ $("#content").css({
+ "width": "500px",});});
+$(window).load(function() {
+ $("#chart").hide();});
+$(window).load(function() {
+
+ $("#graphcss").hide();
+ });
+$(window).load(function() {
+
+ $("#savepagecontent").hide();
+ $("#saveseccontent").hide();
+ $("#savesubsec").hide();
+ $("#savesubsec1").hide();
+
+ });
+
+</script>
+
+{% if user.is_authenticated %}
+{% autopaginate section 1 %}
+ <!-- <input type="button" value="Home" onClick="location.href=parseURL('/gstudio/user/wikipage/{{user.username}}');"> -->
+ <h1>{{ page_ob.title }}</h1>
+ Wikipage posted on : {{page_ob.creation_date}}
+ by {% for author in page_ob.authors.all %}
+ {{author}}
+ {% endfor %}</br></br>
+
+ {% with page_ob.html_content|safe as page_ob_content %}
+
+ {{page_ob_content}}
+ {% endwith %}
+
+ <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;"/>
+ <form method="post" action=".">{% csrf_token %}
+ <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>
+
+</br> {% autoescape off %}
+
+ {% for each in section %}
+ <h4><font size="5" color="red">{{each.title}}</h4></font>
+ Posted on : {{each.creation_date}}
+ by {% for author in each.authors.all %}
+ {{author}}
+ {% endfor %}</br>
+ {% ifequal each.rating.get_rating 0 %}
+ <h5> Not yet rated </h5>
+ {% else %}
+ Current rating is <h5>{{ each.rating.get_rating }}</h5>
+ {% endifequal %}
+ {%autoescape on%}
+ {% with each.html_content|safe as each_content %}
+ {{each_content}}
+ {% endwith %}
+ {% 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/>
+ Create Subsection:
+ <input type="text" name = "replytosection" id="sectionreply" style="visibility:hidden;"/></br>
+ <input type="hidden" value="{{each.id}}" name = "iden">
+ <input type="hidden" value="{{user.id}}" name = "idusr">
+ <input type="button" value="Create Subsection" id="createsubsection">
+ <input type="button" value="save" id="savesubsec">
+ <input type="submit" id="submitsubsec" value="submit" style="visibility:hidden;"></br>
+
+ </br></br><input name="del_section" type="checkbox" value="delete_section"/>
+ <input type="submit" value="Delete the section"></br>
+ Do you wanna rate it ? </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"/>
+ <input name="star1" type="radio" value=5 class="star"/>
+ <!--topic id and user id hidden fields-->
+ </br>
+ <input type="submit" value="Rate it!!!">
+ </form>
+ <p>
+ Subsections :
+ <!-- <div id="main"> -->
+ <!-- <div id="sidetree"> -->
+ <!-- <div class="treeheader">&nbsp;</div> -->
+ <!-- <a href="?#">Expand All</a> </div> -->
+ <!-- <ul class="treeview" id="tree"> -->
+ <!-- <li class="expandable"><div class="hitarea expandable-hitarea"></div>Expand the replies</li></ul></div> -->
+ {% show_commentpage each user.id flag1 admin_id attribute %}
+ {% endfor %}
+{% endautoescape %}
+
+{% else %}
+ <h1> <p style = "color :red;">OOPS!!! Login Please!</p></h1>
+{% endif %}
+
+{% block nodetype-comments %}
+<div id="comments" class="">
+ <h5>{% trans "Comments" %}</h5>
+ {% with page_ob.comments as comment_list %}
+ {% if comment_list.count %}
+ <ol id="comment-list" class="span-15 last">
+ {% for comment in comment_list %}
+ <li id="comment_{{ comment.pk }}" class="comment vcard {% cycle box1,box2 %}{% if comment.user in page_ob.authors.all %} post-author{% endif %} span-15 last">
+ <div class="span-2">
+<img src="{% get_gravatar comment.email 60 "G" %}" class="gravatar photo" alt="{{ comment.user_name }}"/>
+ </div>
+ <div class="comment-body span-13 last">
+<div class="comment-author span-13 last">
+{% if comment.url %}
+<a href="{{ comment.url }}" class="fn url" title = "{{ comment.user_name }}">{{ comment.user_name }}</a>
+{% else %}
+{{ comment.user_name }}
+{% endif %}
+{% trans "on" %} {{ comment.submit_date|date:"SHORT_DATETIME_FORMAT" }}
+</div>
+<div class="span-13 last">
+{{ comment.comment|linebreaks }}
+</div>
+ </div>
+ </li>
+ {% endfor %}
+ </ol>
+ {% if not page_ob.comments_are_open %}
+ <p>{% trans "Comments are closed." %}</p>
+ {% endif %}
+ {% else %}
+ {% if page_ob.comments_are_open %}
+ <p>{% trans "No comments yet." %}</p>
+ {% else %}
+ <p>{% trans "Comments are closed." %}</p>
+ {% endif %}
+ {% endif %}
+ {% endwith %}
+</div>
+{% endblock %}
+<div class="commentForm span-16 last">
+ {% render_comment_form for ot %}
+</div>
+
+{% paginate %}
+
+{% endblock %}
+
diff --git a/gstudio/templates/metadashboard/userdashboard.html b/gstudio/templates/metadashboard/userdashboard.html
index e02f4ba..a8342b1 100644
--- a/gstudio/templates/metadashboard/userdashboard.html
+++ b/gstudio/templates/metadashboard/userdashboard.html
@@ -5,20 +5,20 @@
{% if user.is_authenticated %}
- <h> Welcome to the GnowledgeStudio</h></br>
+<!-- <h> Welcome to the GnowledgeStudio</h></br>
<h>You are logged in as <font color="blue">{{user.username}}</font></h>
- <p></br>
-<p> Here is a list of all the groups:</p>
+ <p></br> -->
+<p> On the loom now:</p>
</br>
{% for each in meetings.member_systems.all %}
<a href="/gstudio/group/gnowsys-grp/{{each.id}}/">{{each.title}}</a></br>
{% endfor %}
- <input type="button" value="Create a new meeting" onClick="location.href=parseURL('groupadd/');">
+ <input type="button" value="Want to weave a thread?" onClick="location.href=parseURL('groupadd/');">
</p>
<p>
</br>
{% else %}
- <h1> <p style = "color :black;">OOPS!!! Login Please!</p></h1>
+ <h1> <p style = "color :black;">Please Login</p></h1>
{% endif %}
diff --git a/gstudio/templates/metadashboard/wikidashboard.html b/gstudio/templates/metadashboard/wikidashboard.html
new file mode 100644
index 0000000..8b9d15e
--- /dev/null
+++ b/gstudio/templates/metadashboard/wikidashboard.html
@@ -0,0 +1,24 @@
+{% extends "gstudio/base.html" %}
+{% load gstudio_tags %}
+{% load i18n %}
+{% block content %}
+
+
+{% if user.is_authenticated %}
+
+<p> Here is a list of all the pages:</p>
+</br>
+ {% for each in pages.member_systems.all %}
+ <a href="/gstudio/page/gnowsys-page/{{each.id}}/">{{each.title}}</a></br>
+ {% endfor %}
+ <input type="button" value="Create a new page" onClick="location.href=parseURL('pageadd/');">
+ </p>
+ <p>
+ </br>
+{% else %}
+ <h1> <p style = "color :black;">OOPS!!! Login Please!</p></h1>
+{% endif %}
+
+
+
+{% endblock %}