From f5aa055c011c0cf60b7722da2a3d6192a233122d Mon Sep 17 00:00:00 2001 From: anujag Date: Fri, 14 Dec 2012 14:24:09 +0530 Subject: Updated code with recent changes --- gstudio/templates/gstudio/_header.html | 2 + gstudio/templates/gstudio/addingtag.html | 82 ++++++++++++++++++++++ gstudio/templates/gstudio/addreln.html | 76 ++++++++++++++++++++ gstudio/templates/gstudio/addrelnform.html | 51 ++++++++++++++ gstudio/templates/gstudio/addrelnform_refresh.html | 15 ++++ gstudio/templates/gstudio/edittitle.html | 37 ++++++++++ gstudio/templates/gstudio/home.html | 16 ++++- gstudio/templates/gstudio/priorpost.html | 68 ++++++++++++++++++ gstudio/templates/gstudio/repriorpost.html | 34 +++++++++ gstudio/templates/gstudio/tags/comment.html | 41 +++++++++-- gstudio/templates/gstudio/video.html | 8 +-- 11 files changed, 419 insertions(+), 11 deletions(-) create mode 100644 gstudio/templates/gstudio/addingtag.html create mode 100644 gstudio/templates/gstudio/addreln.html create mode 100644 gstudio/templates/gstudio/addrelnform.html create mode 100644 gstudio/templates/gstudio/addrelnform_refresh.html create mode 100644 gstudio/templates/gstudio/edittitle.html create mode 100644 gstudio/templates/gstudio/priorpost.html create mode 100644 gstudio/templates/gstudio/repriorpost.html (limited to 'gstudio/templates/gstudio') diff --git a/gstudio/templates/gstudio/_header.html b/gstudio/templates/gstudio/_header.html index 123b05d..6523fcf 100644 --- a/gstudio/templates/gstudio/_header.html +++ b/gstudio/templates/gstudio/_header.html @@ -18,8 +18,10 @@ | Documents | Images | Videos + {% if user.is_authenticated %} {% if user.is_staff %} diff --git a/gstudio/templates/gstudio/addingtag.html b/gstudio/templates/gstudio/addingtag.html new file mode 100644 index 0000000..2e50501 --- /dev/null +++ b/gstudio/templates/gstudio/addingtag.html @@ -0,0 +1,82 @@ +{% load gstudio_tags %} +{% load tagging_tags comments i18n %} + + + +
+ + {% trans "Tags" %} : + {% tags_for_object viewtag as tag_list %} + {% for tag in tag_list %} + +{% if user.is_authenticated %} + +{% endif %} + {% if not forloop.last %},{% endif %} + {% empty %} + {% trans "No tags" %} + {% endfor %} + +
+ {% if user.is_authenticated %} + +{% csrf_token %} + + + + +
+ {% endif %} diff --git a/gstudio/templates/gstudio/addreln.html b/gstudio/templates/gstudio/addreln.html new file mode 100644 index 0000000..b484b8b --- /dev/null +++ b/gstudio/templates/gstudio/addreln.html @@ -0,0 +1,76 @@ +{% load gstudio_tags %} + +
+
+ +Existing Relations for this page: + {% if not meetingob.get_relations_for_view.items %} + No relations + {% endif %} + {% for key,value in meetingob.get_relations_for_view.items %} + {{key}} - + {% for rel in value %} + {{rel}}; + {% endfor %} + {% endfor %} + +
+
{% csrf_token %} +Select/Add a Relationtype: + + + +Add Another + +Select an object: + + + diff --git a/gstudio/templates/gstudio/addrelnform.html b/gstudio/templates/gstudio/addrelnform.html new file mode 100644 index 0000000..113a450 --- /dev/null +++ b/gstudio/templates/gstudio/addrelnform.html @@ -0,0 +1,51 @@ +{% load gstudio_tags %} +{% load adminmedia grp_tags %} + + + +
{% csrf_token %} +

Add Relation(link) name

+

Title:                 + +

+

Inverse Name:   + +

+

Slug:                 + +

+
                              + +        + + + +
+ + diff --git a/gstudio/templates/gstudio/addrelnform_refresh.html b/gstudio/templates/gstudio/addrelnform_refresh.html new file mode 100644 index 0000000..f959235 --- /dev/null +++ b/gstudio/templates/gstudio/addrelnform_refresh.html @@ -0,0 +1,15 @@ +{% load gstudio_tags %} + +
+
+Existing Relations for this page: + {% if not meetobj.get_relations_for_view.items %} + No relations + {% endif %} + {% for key,value in meetobj.get_relations_for_view.items %} + {{key}} - + {% for rel in value %} + {{rel}}; + {% endfor %} + {% endfor %} +
diff --git a/gstudio/templates/gstudio/edittitle.html b/gstudio/templates/gstudio/edittitle.html new file mode 100644 index 0000000..b8207e9 --- /dev/null +++ b/gstudio/templates/gstudio/edittitle.html @@ -0,0 +1,37 @@ + + + +{% csrf_token %} + + + + + + + + diff --git a/gstudio/templates/gstudio/home.html b/gstudio/templates/gstudio/home.html index f1e7a02..44dd468 100644 --- a/gstudio/templates/gstudio/home.html +++ b/gstudio/templates/gstudio/home.html @@ -90,7 +90,8 @@ - + + +
+
+Prior Pages: +{% for each in priorgbobject %} +{{each}} +{% if not forloop.last %},{% endif %} +{% empty %} + No prior page +{% endfor %} +
+Posterior Pages: +{% for each in posteriorgbobject %} +{{each}} +{% if not forloop.last %},{% endif %} +{% empty %} + No Posterior Page +{% endfor %} +
+
+ +{% if user.is_authenticated %} +{% csrf_token %} + + + + +

+ +{% endif %} + diff --git a/gstudio/templates/gstudio/repriorpost.html b/gstudio/templates/gstudio/repriorpost.html new file mode 100644 index 0000000..3499db0 --- /dev/null +++ b/gstudio/templates/gstudio/repriorpost.html @@ -0,0 +1,34 @@ +{% load tagging_tags comments i18n %} +{% ifequal optionpriorpost "priorpost" %} +
+Prior Pages: +{% for each in priorgbobject %} +{{each}} +{% if not forloop.last %},{% endif %} +{% empty %} + No prior page +{% endfor %} +
+Posterior Pages: +{% for each in posteriorgbobject %} +{{each}} +{% if not forloop.last %},{% endif %} +{% empty %} + No Posterior Pages +{% endfor %} +
+{% endifequal %} +{% ifequal optiontag "tag" %} + {% trans "Tags" %} : + {% tags_for_object viewtag as tag_list %} + {% for tag in tag_list %} + + + {% if not forloop.last %},{% endif %} + {% empty %} + {% trans "No tags" %} + {% endfor %} + +{% endifequal %} + diff --git a/gstudio/templates/gstudio/tags/comment.html b/gstudio/templates/gstudio/tags/comment.html index efb462f..423fc93 100644 --- a/gstudio/templates/gstudio/tags/comment.html +++ b/gstudio/templates/gstudio/tags/comment.html @@ -6,6 +6,12 @@ $(window).load(function() { $(".commentsavecontent").hide(); $(".postreply").hide(); }); +function deleteclick(delobj) +{ + activity ='deleted_response' + not_obj=delobj +notifedtdel(); +} {% if comment.posterior_nodes.count %} @@ -26,7 +32,12 @@ else { document.getElementById("divchange").setAttribute("id","div2"); } +function submtfrm() +{ +alert("form to post"); +document.forms["response"].submit(); +} @@ -35,7 +46,7 @@ document.getElementById("divchange").setAttribute("id","div2");
Current rating is {{ child.rating.get_rating }}
{% endif %} {{child.content}} -
{% csrf_token %} + {% csrf_token %} @@ -45,8 +56,10 @@ document.getElementById("divchange").setAttribute("id","div2"); + +
Rate the response
@@ -87,7 +100,7 @@ Current rating is {{ child.rating.get_rating }}
{% endif %} {{child.content}} - {% csrf_token %} + {% csrf_token %} @@ -97,6 +110,9 @@ Current rating is {{ child.rating.get_rating }}
+ + + @@ -138,7 +154,7 @@ Current rating is {{ child.rating.get_rating }}
{% endif %} {{child.content}} - {% csrf_token %} + {% csrf_token %} @@ -148,8 +164,25 @@ Current rating is {{ child.rating.get_rating }}
+ +{% check_user_admin idusr as admin_usercheck %} +{% if admin_usercheck %} + -
+ + +
+{% endif %} +{% for author in child.authors.all %} +{% ifequal author.id idusr %} + + + + +
+{% endifequal %} +{% endfor %} +
Rate this response
diff --git a/gstudio/templates/gstudio/video.html b/gstudio/templates/gstudio/video.html index c50b6df..201a335 100644 --- a/gstudio/templates/gstudio/video.html +++ b/gstudio/templates/gstudio/video.html @@ -80,7 +80,7 @@ background: green; {% autopaginate vids 10 %} -

Video Library

+

Video Library


@@ -173,9 +173,9 @@ document.getElementById('headvideo').style.visibility="visible"; {% if fav %} -

Favourite Videos


+

Favourite Videos


{% else %} -

List of Videos in the library


+

List of Videos in the library


{% endif %}
@@ -195,7 +195,7 @@ document.getElementById("divvideo").setAttribute("id","div2"); } -{% if video.title %}{{video.title}}{% else %}{{video.altnames}}{% endif %} +{% if video.title %}{{video.title}}{% else %}{{video.altnames}}{% endif %}[ Show Graph ] {% csrf_token %} -- cgit v1.1