diff options
Diffstat (limited to 'gstudio/templates/gstudio/docu.html')
-rw-r--r-- | gstudio/templates/gstudio/docu.html | 101 |
1 files changed, 84 insertions, 17 deletions
diff --git a/gstudio/templates/gstudio/docu.html b/gstudio/templates/gstudio/docu.html index 7be5aa74..dc9f151b 100644 --- a/gstudio/templates/gstudio/docu.html +++ b/gstudio/templates/gstudio/docu.html @@ -1,37 +1,77 @@ + <html> + <body> {% extends "gstudio/base.html" %} -{% load i18n %} +{% load pagination_tags %} {% load adminmedia grp_tags %} +{% load i18n comments gstudio_tags %} +{% load i18n objectapp_tags %} {% block content %} +{% load tagging_tags comments i18n %} +<script src="{% admin_media_prefix %}jquery/jquery-1.6.2.min.js" type="text/javascript"></script> + <script type="text/javascript" > + $(window).load(function() { + $("#content").css({ + "width": "600px",});}); +$(window).load(function() { + $("#chart").hide();}); +$(window).load(function() { + + $("#graphcss").hide(); + }); +var i = 0; +</script> +<style type="text/css"> +#divpost +{ +position:relative; +} +#divsearch +{ +position:absolute; +margin-left:61%; +margin-top:-26%; +} +</style> {% if user.is_authenticated %} -<h1 style="color: teal;">Welcome to the DocZilla</h1> -<p><img id="zoomable" src="{% admin_media_prefix %}img/docs.png" width="250" height="250" alt="{{ image.title }}" class="left" /></p> -<h2>Logged in as: {{user.username}}</h2> +{% autopaginate documents 8 %} +<h2 style="color: teal;">Document Library</h2> <br> -<form enctype="multipart/form-data" method="post" action=""> -{% csrf_token %} -<h4 style="color: black;">Post File:</h4> -<p><input type=file name="doc[]" multiple="multiple" /></p> -<input type="hidden" name="user" value={{user.username}}> +<div id="divpost"> +<form enctype="multipart/form-data" method="post" action="">{% csrf_token %} +<br/> +Post File: +<input type=file name="doc[]" multiple="multiple" /><br><br> +Description: <input type=textarea name="contenttext"/> +<input type="hidden" name="user" value={{user.username}}><br><br> + <input type="submit" value="Post"> </form> -<br> +</div> + +<div id="divsearch"> <form method="post" action=""> {% csrf_token %} +<br/> <h4 style="color: black;">Search File</h4> -<p><input type="text" name="sdoc" value={{val}}></p> -<h4 style="color: black;">Sort files by:</h4> -<p><div align="center"> -<select name="mydropdown"> +<input type="text" name="sdoc" value={{val}}> +<br/> +<br/> +<select name="mydropdown" style="margin:0"> <option value="title">Title</option> <option value="creation_date">Creation Date</option> </select> -</div> +<br/> +<br/> <input type="submit" value="Search"> </form> +</div> +<br> +<br> <br> -<h4 style="color: teal;">SHARE</h4> +<br> +<h4 style="color: teal;">Documents Listing</h4> {% for document in documents %} @@ -46,6 +86,8 @@ <br> <font color = 'black'>Posted At : </font><font color = 'teal'>{{document.creation_date}}</font> <br> +<font color = 'black'>Description:</font><font color = 'teal'>{{ document.content }}</font> +<br> <a href="{% admin_media_prefix %}img/{{document.title}}">Download now!!</a> <br> {% for author in document.authors.all %} @@ -89,8 +131,26 @@ </br> <input type="hidden" name="docid" value={{document.id}}> <input type="submit" value="Rate it!!!"> +</form><br> +<form method="post" action="">{% csrf_token %} +<input type="hidden" name="docid" value={{document.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 document 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> +<br/><br/> <hr width="100%" style="height:5px;" color="black"/> <br> {% endfor %}<br> @@ -102,6 +162,13 @@ {% endif %} - + <h2> +{% paginate %}</h2> + + + + + {% endblock %} + </body> |