summaryrefslogtreecommitdiff
path: root/tbc/templates
diff options
context:
space:
mode:
authorprathamesh2016-09-12 17:54:06 +0530
committerprathamesh2016-09-12 17:54:06 +0530
commit3928f602bf0e4d36db3e702990bf129867bd4f28 (patch)
tree084e7f53fe7a5d10c4b4093022dd464fe673381b /tbc/templates
parent886dfdd0ccdd6066464d592f62edaa92cca68b50 (diff)
downloadPython-TBC-Interface-3928f602bf0e4d36db3e702990bf129867bd4f28.tar.gz
Python-TBC-Interface-3928f602bf0e4d36db3e702990bf129867bd4f28.tar.bz2
Python-TBC-Interface-3928f602bf0e4d36db3e702990bf129867bd4f28.zip
interface to add start date and end time for book.
Initial books log were not maintained by the app as they were completed before the TBC interface. Interface to manually enter their details.
Diffstat (limited to 'tbc/templates')
-rw-r--r--tbc/templates/tbc/books.html27
-rw-r--r--tbc/templates/tbc/edit-book.html30
2 files changed, 57 insertions, 0 deletions
diff --git a/tbc/templates/tbc/books.html b/tbc/templates/tbc/books.html
new file mode 100644
index 0000000..b1d975f
--- /dev/null
+++ b/tbc/templates/tbc/books.html
@@ -0,0 +1,27 @@
+{% extends 'base.html' %}
+{% load static %}
+
+{% block content %}
+<div class="row-fluid">
+ <div class="span6">
+ <u> Books without start and end time </u>
+ <ol>
+ {% for book in books_incomplete %}
+ <li><a href="{% url 'tbc:edit_book' book.id %}"> {{ book.title }} </a> </li>
+ {% endfor %}
+ </ol>
+ </div>
+ <div class="span6">
+ <u> Books with start and end time </u>
+ <ol>
+ {% for book in books_complete %}
+ <li><a href="{% url 'tbc:edit_book' book.id %}"> {{ book.title }} </a></li>
+ {% endfor %}
+ </ol>
+ </div>
+</div>
+
+
+
+{% endblock %}
+
diff --git a/tbc/templates/tbc/edit-book.html b/tbc/templates/tbc/edit-book.html
new file mode 100644
index 0000000..e630e78
--- /dev/null
+++ b/tbc/templates/tbc/edit-book.html
@@ -0,0 +1,30 @@
+{% extends 'base.html' %}
+{% load static %}
+{% block script %}
+<link href="http://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css" rel="stylesheet">
+<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
+<script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
+<script>
+
+$(document).ready(function() {
+ console.log("rogkor")
+ $(".datepicker" ).datepicker({
+ changeMonth: true,
+ changeYear: true,
+ yearRange: "2000:2030",
+ });
+ });
+</script>
+{% endblock %}
+{% block content %}
+<div class="well">
+ <center><a href="{% url 'tbc:books' %}" class="btn btn-primary"> BACK </a></center>
+ <form action="{% url 'tbc:edit_book' book.id %}" method="POST">
+ {% csrf_token %}
+ {{ form.as_p }}
+ <center><input class="btn btn-primary" type="submit" value="SAVE"></center>
+ </form>
+</div>
+
+{% endblock %}
+