summaryrefslogtreecommitdiff
path: root/nop/templates/nop_form.html
blob: 1144692be5631efd7401ee70579198b370a321b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<html>
<head>
  <title>Now Playing &mdash; Radio Helsinki - Freies Radio Graz</title>
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>
  <script type="text/javascript" src="http://cdn.jquerytools.org/1.2.5/form/jquery.tools.min.js"></script>
  <script type="text/javascript" src="/nop/static/anytimec.js"></script>
  <link rel="stylesheet" type="text/css" href="/nop/static/dateinput.css"/>
  <link rel="stylesheet" type="text/css" href="/nop/static/anytimec.css"/>

  <script type="text/javascript"><!--
    $(document).ready(function() {
      $("#nop_date").dateinput({
        format: 'yyyy-mm-dd',
        firstDay: 1
        });
      $("#nop_time").AnyTime_picker({
        format: "%H:%i",
        labelTitle: "Zeit",
        labelHour: "Stunde",
        labelMinute: "Minute"
      });
    });
    --></script>

</head>
<body>

  <div id="content-main" class="show-detail">
    <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>