summaryrefslogtreecommitdiff
path: root/nop/templates
diff options
context:
space:
mode:
authorJohannes Raggam <raggam-nl@adm.at>2011-05-25 17:14:37 (GMT)
committerJohannes Raggam <raggam-nl@adm.at>2011-05-25 17:14:37 (GMT)
commitca24a30ec6940052a259db5b38e85731ee7a3d27 (patch)
treeade0a2201c14ea57dd12d10593f47d8e9d2e0122 /nop/templates
parent40c628c4b3e836357fa18b8c3c8fcdb741340f49 (diff)
finalize form with date/time submission functionality
Diffstat (limited to 'nop/templates')
-rw-r--r--nop/templates/nop/nop_form.html25
1 files changed, 20 insertions, 5 deletions
diff --git a/nop/templates/nop/nop_form.html b/nop/templates/nop/nop_form.html
index 71e16a2..e4efcd9 100644
--- a/nop/templates/nop/nop_form.html
+++ b/nop/templates/nop/nop_form.html
@@ -10,11 +10,11 @@
<script type="text/javascript"><!--
$(document).ready(function() {
- $(":date").dateinput({
+ $("#nop_date").dateinput({
format: 'yyyy-mm-dd',
firstDay: 1
});
- $("#time").AnyTime_picker({
+ $("#nop_time").AnyTime_picker({
format: "%H:%i",
labelTitle: "Zeit",
labelHour: "Stunde",
@@ -27,10 +27,25 @@
<body>
<div id="content-main" class="show-detail">
- <input type="date" id="date" class="date" value="" />
- <input type="text" id="time" class="date" value="" />
+ <form action="" method="post">{% csrf_token %}
+ {{ form.as_table }}
+ <input type="submit" value="senden" />
+ </form>
+
+ {% if nowplaying %}
+ <ul>
+ {% for track in nowplaying %}
+ <li>
+ <small>{{track.datetime}}:</small>
+ <strong>{{track.artist}}</strong> -
+ {{track.title}} -
+ {{track.album}}
+ in der Sendung <em>{{track.showtitle}}</em>
+ </li>
+ {% endfor %}
+ </ul>
+ {% endif %}
</div>
</body>
</html>
-