index.html 3.6 KB
Newer Older
Robin Sonnabend's avatar
Robin Sonnabend committed
1
{% extends "layout.html" %}
Robin Sonnabend's avatar
Robin Sonnabend committed
2
3
{% from "macros.html" import render_table %}
{% block title %}Startseite{% endblock %}
4
5

{% block content %}
Robin Sonnabend's avatar
Robin Sonnabend committed
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{% if protocol is not none %}
<div class="row">
    <div id="left-column" class="col-lg-6">
{% endif %}
        <h3>Anstehende Sitzungen 
            {% if check_login() %}
                <a href="{{url_for("new_protocol")}}">Neu</a>
            {% endif %}
        </h3>
        <ul>
            {% if open_protocols|length > 0 %}
                {% for protocol in open_protocols %}
                    <li><a href="{{url_for("show_protocol", protocol_id=protocol.id)}}">{{protocol.protocoltype.name}}</a> am {{protocol.date|datify}}</li>
                {% endfor %}
            {% else %}
                <li>Keine anstehenden Sitzungen</li>
            {% endif %}
        </ul>
        {% if check_login() %}
            <h3>Offene Todos <a href="{{url_for("list_todos")}}">Alle</a></h3>
            <ul>
                {% if todos|length > 0 %}
                    {% for todo in todos %}
                        <li>{{todo.render_html()|safe}}</li>
                    {% endfor %}
                {% else %}
                    <li>Keine Todos</li>
                {% endif %}
            </ul>
        {% endif %}
{% if protocol is not none %}
    </div>
    <div id="right-column" class="col-lg-6">
        <h3>Letztes Protokoll</h3>
        <div class="well">
            <div class="btn-group">
                <a class="btn btn-primary" href="{{url_for("show_protocol", protocol_id=protocol.id)}}">Details anzeigen</a>
                {% if protocol.protocoltype.has_modify_right(current_user()) %}
                    <a class="btn btn-default" href="{{url_for("update_protocol", protocol_id=protocol.id)}}">Protokoll editieren</a>
                {% endif %}
                {% if protocol.has_compiled_document() %}
                    <a class="btn btn-success" href="{{url_for("download_document", document_id=protocol.get_compiled_document().id)}}">Download</a>
                {% endif %}
            </div>
            <h2>Protokoll: {{protocol.protocoltype.name}} {% if protocol.date is not none %}vom {{protocol.date|datify}}{% endif %}</h2>
            {% if protocol.date is not none %}
                <p><strong>Datum:</strong> {{protocol.date|datify_long}}</p>
            {% endif %}
            {% if protocol.start_time is not none and protocol.end_time is not none %}
                <p><strong>Zeit:</strong> von {{protocol.start_time|timify}} bis {{protocol.end_time|timify}}</p>
            {% endif %}
            {% if protocol.location is not none %}
                <p><strong>Ort:</strong> {{protocol.location}}</p>
            {% endif %}
            {% if protocol.author is not none %}
61
                <p><strong>Protokoll:</strong> {{protocol.author}}</p>
Robin Sonnabend's avatar
Robin Sonnabend committed
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
            {% endif %}
            {% if protocol.participants is not none %}
                <p><strong>Anwesende:</strong> {{protocol.participants}}</p>
            {% endif %}
            <h3>Tagesordnung{% if has_modify_right and not protocol.has_nonplanned_tops() %} <a href="{{url_for("new_top", protocol_id=protocol.id)}}">Top hinzufügen</a>{% endif %}</h3>
            {% include "protocol-tops-include.html" %}

            <h3>Beschlüsse</h3>
            <ul>
                {% if protocol.decisions|length > 0 %}
                    {% for decision in protocol.decisions %}
                        <li>{{decision.content}}</li>
                    {% endfor %}
                {% else %}
                    <li>Keine Beschlüsse</li>
                {% endif %}
            </ul>
    </div>
    </div>
</div>
{% endif %}
83
{% endblock %}