1 {% extends "base.html" %}
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]}}">
13 <select class="float form-control" name="category">
14 {%- for cat in categories %}
15 <option>{{cat}}</option>
19 <select class="float form-control" name="days">
20 {%- for time in times %}
21 <option>{{time}}</option>
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>
34 <a href="/" class="btn btn-primary">Prev</a>
36 <a href="/?start={{ prev }}" class="btn btn-primary">Prev</a>
39 {%- for motion in motions %}
40 {% include 'motion.html' %}
43 <a href="/?start={{ more }}" class="btn btn-primary">Next</a>