]> WPIA git - motion.git/blob - templates/index.html
Merge branch 'UTC' into 'master'
[motion.git] / templates / index.html
1 {% extends "base.html" %}
2 {% block body %}
3 <div class="container">
4 {%- if categories|length != 0 %}
5 <form action="/motion" method="POST" class="form-inline">
6 <div class="panel panel-default">
7 <div class="panel-body">
8 User: {{g.user}}
9 </div>
10 </div>
11 <div class="motion panel panel-default">
12   <div class="motion-title panel-heading from-group">
13     <input class="form-control motion-title-input" placeholder="Motion title" type="text" name="title" id="title">
14     {%- if categories|length == 1 %}
15     <input type="text" class="float form-control" maxwidth="10" disabled value="{{categories[0]}}">
16     <input type="hidden" name="category" value="{{categories[0]}}">
17     {%- else %}
18     <select class="float form-control" name="category">
19       {%- for cat in categories %}
20       <option>{{cat}}</option>
21       {%- endfor %}
22     </select>
23     {%- endif %}
24     <select class="float form-control" name="days">
25       {%- for time in times %}
26       <option>{{time}}</option>
27       {%- endfor %}
28     </select>
29   </div>
30   <div class="panel-body">
31     <textarea class="form-control" placeholder="Motion content" name="content" rows="8" cols="70"></textarea><br>
32     <button class="btn btn-primary" type="submit">Submit Motion</button>
33   </div>
34 </div>
35 </form>
36 {%- endif %}
37 {%- if prev %}
38 {%- if prev == -1 %}
39 <a href="/" class="btn btn-primary">Prev</a>
40 {%- else %}
41 <a href="/?start={{ prev }}" class="btn btn-primary">Prev</a>
42 {%- endif %}
43 {%- endif %}
44 {%- for motion in motions %}
45 {% include 'motion.html' %}
46 {%- endfor %}
47 {%- if more %}
48 <a href="/?start={{ more }}" class="btn btn-primary">Next</a>
49 {%- endif %}
50 </div>
51 {%- endblock %}