templates/v2/index.html.twig line 1

Open in your IDE?
  1. {% extends 'v2/base.html.twig' %}
  2. {% block title %}List inspections{% endblock %}
  3. {% block pagetitle %}List inspections <span class="float-right d-none" id="brand">Brand: <span class="brand-name">-</span></spane> &#8212; <a href="{{ path('homepage') }}">Change</a></span>{% endblock %}
  4. {% block body %}
  5.     <style>
  6.         .btn-group-toggle .btn-secondary:not(:disabled):not(.disabled).active {
  7.             background-color: var(--secondary);
  8.             border-color: var(--secondary);
  9.             color: white;
  10.         }
  11.         .btn-group-toggle .btn-secondary:not(.active) {
  12.             background-color: white;
  13.             border-color: var(--secondary);
  14.             color: var(--secondary);
  15.         }
  16.         .btn-sm.form-delete {
  17.             font-size: 0.8em;
  18.             display: none;
  19.         }
  20.         tr:hover .form-delete {
  21.             display: inline;
  22.         }
  23.     </style>
  24.     <p>
  25.         <a class="btn btn-primary" href="{{ path('v2_form_new') }}">Create new inspection</a>
  26.         <button class="d-none btn btn-secondary float-right" id="btn-sync-forms"  href="#">Upload inspections</button>
  27.     </p>
  28.     <div class="alert alert-info d-none display-offline">
  29.         <i class="fas fa-info-circle"></i> You currently have no internet connection.
  30.         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
  31.     </div>
  32.     <form id="form-filter" class="form-inline mt-4 mb-4">
  33.         <label for="filter" class="text-sm">Search</label>
  34.         <input type="text" class="form-control form-control-sm mx-1" name="filter" id="filter" />
  35. {#        <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>#}
  36. {#        <small class="ml-1">Show</small>#}
  37.         <div class="btn-group btn-group-toggle mx-1" data-toggle="buttons">
  38.             <label class="btn btn-secondary btn-sm px-3">
  39.                 <input type="radio" name="user" id="all_users" autocomplete="off"> All
  40.             </label>
  41.             <label class="btn btn-secondary btn-sm px-3 active">
  42.                 <input type="radio" name="user" id="user" autocomplete="off" checked> Mine
  43.             </label>
  44.         </div>
  45.         <button class="btn btn-sm btn-primary px-2 mx-1">Search</button>
  46.         <button class="btn btn-sm btn-link" id="filter-reset">Clear</button>
  47.     </form>
  48.     <div class="table-responsive">
  49.         <table class="table table-hover" id="forms">
  50.             <thead>
  51.             <tr>
  52.                 <th>Date</th>
  53.                 <th>Property Name</th>
  54.                 <th></th>
  55.                 <th>Total Score</th>
  56.                 <th>Star rating</th>
  57.                 <th>Status</th>
  58.                 <th style="width: 56px;"></th>
  59. {#                <th>Actions</th>#}
  60.             </tr>
  61.             </thead>
  62.             <tbody>
  63.             <tr>
  64.                 <td colspan="6">Loading...</td>
  65.             </tr>
  66.             </tbody>
  67.         </table>
  68.     </div>
  69. {% endblock %}
  70. {% block javascripts %}
  71.     {{ parent() }}
  72. {% endblock %}