summaryrefslogtreecommitdiff
path: root/tbc/templates
diff options
context:
space:
mode:
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 %}
+