]> WPIA git - motion.git/blob - templates/index.html
Merge branch 'translation' into 'master'
[motion.git] / templates / index.html
1 {% extends "base.html" %}
2 {% block body %}
3 <div class="container">
4 {%- if categories|length != 0 %}
5 <div class="card">
6 </div>
7 <form action="/motion" method="POST" class="form-inline">
8 <div class="motion card">
9   <div class="motion-title card-heading alert-light from-group">
10     <input class="form-control motion-title-input" placeholder="{{_('Motion title')}}" type="text" name="title" id="title" required="yes">
11     {%- if categories|length == 1 %}
12     <input type="text" class="float form-control" maxwidth="10" disabled value="{{categories[0]}}">
13     <input type="hidden" name="category" value="{{categories[0]}}">
14     {%- else %}
15     <select class="float form-control" name="category">
16       {%- for cat in categories %}
17       <option>{{cat}}</option>
18       {%- endfor %}
19     </select>
20     {%- endif %}
21     <select class="float form-control" name="days">
22       {%- for time in times %}
23       <option>{{time}}</option>
24       {%- endfor %}
25     </select>
26   </div>
27   <div class="card-body">
28     <textarea class="form-control" placeholder="{{_('Motion content')}}" name="content" rows="8"></textarea><br>
29     {{_('Editing note: Markdown is used formatting.')}}<br>
30     {{_('To add a line break add two lines, to enter a link use [text](https//domain.tld/link)')}}<br>
31     <button class="btn btn-primary" type="submit">{{_('Submit Motion')}}</button>
32   </div>
33 </div>
34 </form>
35 {%- endif %}
36 {%- if prev %}
37 {%- if prev == -1 %}
38 <a href="/" class="btn btn-primary">{{_('Prev')}}</a>
39 {%- else %}
40 <a href="/?start={{ prev }}" class="btn btn-primary">{{_('Prev')}}</a>
41 {%- endif %}
42 {%- endif %}
43 {%- for motion in motions %}
44 {% include 'motion.html' %}
45 {%- endfor %}
46 {%- if more %}
47 <a href="/?start={{ more }}" class="btn btn-primary">{{_('Next')}}</a>
48 {%- endif %}
49 </div>
50 {%- endblock %}