]> WPIA git - motion.git/blob - templates/index.html
chg: Prev/Next/Back-links as bootstrap-buttons
[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="motion panel panel-default">
7   <div class="motion-title panel-heading from-group">
8     <input class="form-control motion-title-input" placeholder="Motion title" type="text" name="title" id="title">
9     {%- if categories|length == 1 %}
10     <input type="text" class="float form-control" maxwidth="10" disabled value="{{categories[0]}}">
11     <input type="hidden" name="category" value="{{categories[0]}}">
12     {%- else %}
13     <select class="float form-control" name="category">
14       {%- for cat in categories %}
15       <option>{{cat}}</option>
16       {%- endfor %}
17     </select>
18     {%- endif %}
19     <select class="float form-control" name="days">
20       {%- for time in times %}
21       <option>{{time}}</option>
22       {%- endfor %}
23     </select>
24   </div>
25   <div class="panel-body">
26     <textarea class="form-control" placeholder="Motion content" name="content" rows="8" cols="70"></textarea><br>
27     <button class="btn btn-primary" type="submit">Submit Motion</button>
28   </div>
29 </div>
30 </form>
31 {%- endif %}
32 {%- if prev %}
33 {%- if prev == -1 %}
34 <a href="/" class="btn btn-primary">Prev</a>
35 {%- else %}
36 <a href="/?start={{ prev }}" class="btn btn-primary">Prev</a>
37 {%- endif %}
38 {%- endif %}
39 {%- for motion in motions %}
40 {% include 'motion.html' %}
41 {%- endfor %}
42 {%- if more %}
43 <a href="/?start={{ more }}" class="btn btn-primary">Next</a>
44 {%- endif %}
45 </div>
46 {%- endblock %}