]> WPIA git - motion.git/blob - templates/index.html
add: implement proxy handling
[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 card">
7   <div class="motion-title card-heading alert-light from-group">
8     <input class="form-control motion-title-input" placeholder="Motion title" type="text" name="title" id="title" required="yes">
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="card-body">
26     <textarea class="form-control" placeholder="Motion content" name="content" rows="8"></textarea><br>
27     Editing note: Markdown is used formatting.<br>
28     To add a line break add two lines, to enter a link use [text](https://domain.tld/link)<br>
29     <button class="btn btn-primary" type="submit">Submit Motion</button>
30   </div>
31 </div>
32 </form>
33 {%- endif %}
34 {%- if prev %}
35 {%- if prev == -1 %}
36 <a href="/" class="btn btn-primary">Prev</a>
37 {%- else %}
38 <a href="/?start={{ prev }}" class="btn btn-primary">Prev</a>
39 {%- endif %}
40 {%- endif %}
41 {%- for motion in motions %}
42 {% include 'motion.html' %}
43 {%- endfor %}
44 {%- if more %}
45 <a href="/?start={{ more }}" class="btn btn-primary">Next</a>
46 {%- endif %}
47 </div>
48 {%- endblock %}