summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJannik Beyerstedt <code@jannikbeyerstedt.de>2018-01-01 22:16:41 +0100
committerJannik Beyerstedt <code@jannikbeyerstedt.de>2018-01-01 22:16:41 +0100
commitd3fd3c427d1f6f666ec3b2857104695df705eb70 (patch)
treeefee3ad2d5403bc387f20a8d9b65c6e218df2e6e /templates
parentd01246852950b1fbb4480618852fe7d154ec98fd (diff)
shifts view: add button to collapse the filters
Diffstat (limited to 'templates')
-rw-r--r--templates/user_shifts.html17
1 files changed, 13 insertions, 4 deletions
diff --git a/templates/user_shifts.html b/templates/user_shifts.html
index 83458529..2fdade29 100644
--- a/templates/user_shifts.html
+++ b/templates/user_shifts.html
@@ -60,13 +60,22 @@
</div>
</div>
</div>
- <div class="col-md-2 col-xs-4 col-xxs-12">%room_select%</div>
- <div class="col-md-2 col-xs-4 col-xxs-12">%type_select%</div>
- <div class="col-md-2 col-xs-4 col-xxs-12">%filled_select%</div>
+ <div class="col-md-6">
+ <button class="btn btn-info btn-sm" style="margin-top: 20px; margin-bottom:10px" type="button" data-toggle="collapse"
+ data-target="#collapseRoomSelect" aria-expanded="false"
+ aria-controls="collapseRoomSelect">
+ collapse/show filters
+ </button>
+ <div class="collapse in row" id="collapseRoomSelect">
+ <div class="col-xs-4 col-xxs-12">%room_select%</div>
+ <div class="col-xs-4 col-xxs-12">%type_select%</div>
+ <div class="col-xs-4 col-xxs-12">%filled_select%</div>
+ <div class="col-sm-12"><p>%task_notice%</p></div>
+ </div>
+ </div>
</div>
<div class="row">
<div class="col-md-12">
- <div><p>%task_notice%</p></div>
<input class="btn btn-primary" type="submit" style="width:75%; margin-bottom: 20px" value="%filter%">
</div>
</div>