doorcontrol: Improve styling on report pages
This commit is contained in:
parent
1d9102d372
commit
05037b74fc
@ -2,6 +2,7 @@
|
||||
|
||||
{% block title %}{{ selected_report }} | Door Controls | CMS{% endblock %}
|
||||
{% block content %}
|
||||
<div class="d-flex flex-column align-items-center">
|
||||
<ul class="nav nav-tabs">
|
||||
{% for report_name, report_url in report_types %}
|
||||
<li class="nav-item">
|
||||
@ -10,10 +11,8 @@
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<form method="get" class="form-floating">
|
||||
<div class="row align-items-center row-cols-md-auto g-2 mb-2 mt-2">
|
||||
<div class="col-12">
|
||||
<div class="form-floating">
|
||||
<form method="get" class="form-floating m-2 d-flex align-items-center">
|
||||
<div class="form-floating mx-2">
|
||||
<input type="date"
|
||||
class="form-control"
|
||||
id="startDate"
|
||||
@ -21,9 +20,7 @@
|
||||
value="{{ timestamp__gte|date:'Y-m-d' }}">
|
||||
<label for="startDate">Start Date</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="form-floating">
|
||||
<div class="form-floating mx-2">
|
||||
<input type="date"
|
||||
class="form-control"
|
||||
id="endDate"
|
||||
@ -31,9 +28,7 @@
|
||||
value="{{ timestamp__lte|date:'Y-m-d' }}">
|
||||
<label for="endDate">End Date</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-md-2">
|
||||
<div class="form-floating">
|
||||
<div class="form-floating mx-1">
|
||||
<input type="number"
|
||||
class="form-control"
|
||||
id="itemsPerPage"
|
||||
@ -45,14 +40,10 @@
|
||||
required>
|
||||
<label for="itemsPerPage">Items Per Page</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
<a href="?" class="btn btn-warning">Reset</a>
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary mx-2">Submit</button>
|
||||
<a href="?" class="btn btn-warning mx-1">Reset</a>
|
||||
</form>
|
||||
<table class="table table-bordered table-striped table-hover mb-2">
|
||||
<table class="table table-striped table-hover mb-2 w-auto">
|
||||
<thead>
|
||||
<tr>
|
||||
{% for column in object_list.0.keys %}<th>{{ column|title }}</th>{% endfor %}
|
||||
@ -88,4 +79,5 @@
|
||||
{% endif %}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in New Issue
Block a user