selection_page.html 7.85 KB
Newer Older
dorothee.kueppers's avatar
dorothee.kueppers committed
1
2
{% extends 'todo/base.html' %}
{% load static %}
3
{% load bootstrap4 %}
dorothee.kueppers's avatar
dorothee.kueppers committed
4
5

{% block content %}
6
    <script type="text/javascript"></script>
dorothee.kueppers's avatar
dorothee.kueppers committed
7
    <div class="row">
8
9
10
        <div class="col-sm" class="todo-box">
            <form action="" enctype="multipart/form-data" method="POST">
                {% csrf_token %}
11
12
13
14
15
16
17
18
19
                <div class="row justify-content-center">
                    <h3>Wie viel Zeit hast du?</h3>
                </div>
                <div class="row justify-content-center">
                    {% bootstrap_form form %}
                </div>
                <div class="row justify-content-center">
                    <input type="submit" class="btn btn-danger" value="submit">
                </div>
20
21
22
23
24
25
26
27
28
29
30
31
32
                <div>
                    <ul class="list-group">
                        <li class="list-group-item">Meine todos</li>
                        {% for todo in todos_selection %}
                            <div class="todo-text">{{ todo.0.text }}</div>
                            <div class="todo-due">{{ todo.1 }}</div>
                            <div class="todo-duration">{{ todo.0.duration }} Minuten</div>
                        {% endfor %}
                    </ul>
                </div>
            </form>

        </div>
dorothee.kueppers's avatar
dorothee.kueppers committed
33
        <div class="col-sm" id="todo-choices">
34
35
36
            <div class="row justify-content-center">
                <h3>Welche Todos willst du gleich erledigen?</h3>
            </div>
dorothee.kueppers's avatar
dorothee.kueppers committed
37
            <div class="row justify-content-center">
dorothee.kueppers's avatar
dorothee.kueppers committed
38
39
                <div id="accordion">
                    <div class="card">
40
                        <div class="card-header todo-late" id="headingOne">
dorothee.kueppers's avatar
dorothee.kueppers committed
41
                            <h5 class="mb-0">
42
                                <button class="btn btn-link todo-late" data-toggle="collapse" data-target="#collapseOne"
dorothee.kueppers's avatar
dorothee.kueppers committed
43
                                        aria-expanded="true" aria-controls="collapseOne">
44
                                    Dinge, die eigentlich schon getan sein sollten
dorothee.kueppers's avatar
dorothee.kueppers committed
45
46
47
48
49
50
                                </button>
                            </h5>
                        </div>

                        <div id="collapseOne" class="collapse show" aria-labelledby="headingOne"
                             data-parent="#accordion">
51
                            <div class="card-body" id="body-late">
dorothee.kueppers's avatar
dorothee.kueppers committed
52
                                <div class="list-group list group-flush">
53
                                    {% for todo in todos_late %}
54
55
56
57
58
59
                                        <div class="list-group-item list-group-item-action select-todo-grid">
                                            <div class="todo-text">{{ todo.0.text }}</div>
                                            <div class="todo-due">{{ todo.1 }}</div>
                                            <div class="todo-duration">{{ todo.0.duration }} Minuten</div>
                                            <div class="todo-id" hidden>{{ todo.0.id }}</div>
                                        </div>
dorothee.kueppers's avatar
dorothee.kueppers committed
60
61
62
63
64
65
                                    {% endfor %}
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="card">
66
                        <div class="card-header todo-today" id="headingTwo">
dorothee.kueppers's avatar
dorothee.kueppers committed
67
                            <h5 class="mb-0">
68
69
                                <button class="btn btn-link collapsed todo-today" data-toggle="collapse"
                                        data-target="#collapseTwo"
dorothee.kueppers's avatar
dorothee.kueppers committed
70
                                        aria-expanded="false" aria-controls="collapseTwo">
71
                                    Dinge, die heute zu erledigen sind
dorothee.kueppers's avatar
dorothee.kueppers committed
72
73
74
75
76
                                </button>
                            </h5>
                        </div>
                        <div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordion">
                            <div class="card-body">
77
                                <div class="list-group list group-flush">
78
                                    {% for todo in todos_today %}
79
80
81
82
83
84
                                        <div class="list-group-item list-group-item-action select-todo-grid">
                                            <div class="todo-text">{{ todo.0.text }}</div>
                                            <div class="todo-due">{{ todo.1 }}</div>
                                            <div class="todo-duration">{{ todo.0.duration }} Minuten</div>
                                            <div class="todo-id" hidden>{{ todo.0.id }}</div>
                                        </div>
dorothee.kueppers's avatar
dorothee.kueppers committed
85
                                    {% endfor %}
86
                                </div>
dorothee.kueppers's avatar
dorothee.kueppers committed
87
88
89
90
                            </div>
                        </div>
                    </div>
                    <div class="card">
91
                        <div class="card-header todo-soon" id="headingThree">
dorothee.kueppers's avatar
dorothee.kueppers committed
92
                            <h5 class="mb-0">
93
                                <button class="btn btn-link collapsed todo-soon" data-toggle="collapse"
dorothee.kueppers's avatar
dorothee.kueppers committed
94
95
                                        data-target="#collapseThree" aria-expanded="false"
                                        aria-controls="collapseThree">
96
                                    Dinge, die bald zu erledigen sind
dorothee.kueppers's avatar
dorothee.kueppers committed
97
98
99
100
101
102
                                </button>
                            </h5>
                        </div>
                        <div id="collapseThree" class="collapse" aria-labelledby="headingThree"
                             data-parent="#accordion">
                            <div class="card-body">
103
                                <div class="list-group list group-flush">
104
                                    {% for todo in todos_soon %}
105
106
107
108
109
110
                                        <div class="list-group-item list-group-item-action select-todo-grid">
                                            <div class="todo-text">{{ todo.0.text }}</div>
                                            <div class="todo-due">{{ todo.1 }}</div>
                                            <div class="todo-duration">{{ todo.0.duration }} Minuten</div>
                                            <div class="todo-id" hidden>{{ todo.0.id }}</div>
                                        </div>
dorothee.kueppers's avatar
dorothee.kueppers committed
111
                                    {% endfor %}
112
                                </div>
dorothee.kueppers's avatar
dorothee.kueppers committed
113
114
115
116
                            </div>
                        </div>
                    </div>
                    <div class="card">
117
                        <div class="card-header todo-someday" id="headingFour">
dorothee.kueppers's avatar
dorothee.kueppers committed
118
                            <h5 class="mb-0">
119
                                <button class="btn btn-link collapsed todo-someday" data-toggle="collapse"
dorothee.kueppers's avatar
dorothee.kueppers committed
120
121
                                        data-target="#collapseFour" aria-expanded="false"
                                        aria-controls="collapseFour">
122
                                    Dinge, die keinen Zeitdruck haben
dorothee.kueppers's avatar
dorothee.kueppers committed
123
124
125
126
127
128
129
                                </button>
                            </h5>
                        </div>
                        <div id="collapseFour" class="collapse" aria-labelledby="headingFour"
                             data-parent="#accordion">
                            <div class="card-body">
                                <ul class="list-group list group-flush">
130
                                    {% for todo in todos_someday %}
131
132
133
134
                                        <div class="list-group-item list-group-item-action select-todo-grid">
                                            <div class="todo-text">{{ todo.text }}</div>
                                            <div class="todo-id" hidden>{{ todo.id }}</div>
                                        </div>
dorothee.kueppers's avatar
dorothee.kueppers committed
135
136
137
138
139
140
141
                                    {% endfor %}
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>

dorothee.kueppers's avatar
dorothee.kueppers committed
142
143
144
145
            </div>
        </div>
    </div>
{% endblock %}