selection_page.html 8.29 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">
dorothee.kueppers's avatar
dorothee.kueppers committed
8
        <div class="col-sm todo-box">
9
10
            <form action="" enctype="multipart/form-data" method="POST">
                {% csrf_token %}
11
                <div class="row justify-content-center">
dorothee.kueppers's avatar
dorothee.kueppers committed
12
                    <h3 class="text-center">Wie viel Zeit hast du?</h3>
13
14
15
16
                </div>
                <div class="row justify-content-center">
                    {% bootstrap_form form %}
                </div>
dorothee.kueppers's avatar
dorothee.kueppers committed
17
18
19
20
21
22
23
24
25
                <div id="submit-time" class="row justify-content-center">
                    <button type="button" class="btn btn-danger">Aufgaben auswählen!</button>
                </div>
                <div id="timing-messages">
                    <p class="text-center" id="avail-time"></p>
                    <p class="text-center" id="chosen-time"></p>
                    <p class="text-center warning" id="time-warning">Wahrscheinlich nimmst du dir gerade zu viel vor. Konzentriere dich auf das Wichtigste ;)</p>
                </div>
                <div id="choices">
26
                    <ul class="list-group">
dorothee.kueppers's avatar
dorothee.kueppers committed
27
                        <li class="list-group-item" id="chosen-todos">Meine Aufgaben</li>
28
29
                    </ul>
                </div>
dorothee.kueppers's avatar
dorothee.kueppers committed
30
                <div id="submit-selection" class="row justify-content-center" disabled="disabled">
31
32
                    <input type="submit" class="btn btn-danger" value="Auswahl speichern und loslegen!">
                </div>
33
34
35
            </form>

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

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

dorothee.kueppers's avatar
dorothee.kueppers committed
146
147
148
149
            </div>
        </div>
    </div>
{% endblock %}