{% extends 'v2/base.html.twig' %}
{% block title %}List inspections{% endblock %}
{% block pagetitle %}List inspections <span class="float-right d-none" id="brand">Brand: <span class="brand-name">-</span></spane> — <a href="{{ path('homepage') }}">Change</a></span>{% endblock %}
{% block body %}
<style>
.btn-group-toggle .btn-secondary:not(:disabled):not(.disabled).active {
background-color: var(--secondary);
border-color: var(--secondary);
color: white;
}
.btn-group-toggle .btn-secondary:not(.active) {
background-color: white;
border-color: var(--secondary);
color: var(--secondary);
}
.btn-sm.form-delete {
font-size: 0.8em;
display: none;
}
tr:hover .form-delete {
display: inline;
}
</style>
<p>
<a class="btn btn-primary" href="{{ path('v2_form_new') }}">Create new inspection</a>
<button class="d-none btn btn-secondary float-right" id="btn-sync-forms" href="#">Upload inspections</button>
</p>
<div class="alert alert-info d-none display-offline">
<i class="fas fa-info-circle"></i> You currently have no internet connection.
Inspections will be temporarily saved to your device and will show below, but will only be uploaded and printable when you re-connect to the internet
</div>
<form id="form-filter" class="form-inline mt-4 mb-4">
<label for="filter" class="text-sm">Search</label>
<input type="text" class="form-control form-control-sm mx-1" name="filter" id="filter" />
{# <label class="mx-1 small"><input type="checkbox" class="form-control form-control-sm mx-1" name="user" id="all_users" /> Show all inspections</label>#}
{# <small class="ml-1">Show</small>#}
<div class="btn-group btn-group-toggle mx-1" data-toggle="buttons">
<label class="btn btn-secondary btn-sm px-3">
<input type="radio" name="user" id="all_users" autocomplete="off"> All
</label>
<label class="btn btn-secondary btn-sm px-3 active">
<input type="radio" name="user" id="user" autocomplete="off" checked> Mine
</label>
</div>
<button class="btn btn-sm btn-primary px-2 mx-1">Search</button>
<button class="btn btn-sm btn-link" id="filter-reset">Clear</button>
</form>
<div class="table-responsive">
<table class="table table-hover" id="forms">
<thead>
<tr>
<th>Date</th>
<th>Property Name</th>
<th></th>
<th>Total Score</th>
<th>Star rating</th>
<th>Status</th>
<th style="width: 56px;"></th>
{# <th>Actions</th>#}
</tr>
</thead>
<tbody>
<tr>
<td colspan="6">Loading...</td>
</tr>
</tbody>
</table>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% endblock %}