templates/backOffice/deviceConfigurations/index.html.twig line 1

Open in your IDE?
  1. {% extends 'backOffice/baseAuthenticated.html.twig' %}
  2. {% set page_title = "Device Configurations" %}
  3. {% import 'backOffice/util/_paginationHelpers.html.twig' as paginationHelpers %}
  4. {% block actions %}
  5.     <a class="btn btn-primary ml-3"
  6.        href="{{ path('app_backoffice_deviceconfigurations_new') }}">
  7.         <span class="fa fa-plus"></span>
  8.         New Device Configuration
  9.     </a>
  10. {% endblock %}
  11. {% block body %}
  12.     {{ paginationHelpers.showing_label(deviceConfigurations) }}
  13.     <hr>
  14.     <div class="card card-table">
  15.         <div class="table-responsive">
  16.             <table class="table table-striped table-borderless mb-0">
  17.                 <thead>
  18.                 <tr>
  19.                     <th>Device ID</th>
  20.                     <th>Reporter</th>
  21.                     <th></th>
  22.                 </tr>
  23.                 </thead>
  24.                 <tbody class="no-border-x">
  25.                 {% for deviceConfiguration in deviceConfigurations.items %}
  26.                     <tr>
  27.                         <td>{{ deviceConfiguration.deviceId }}</td>
  28.                         <td>{{ assay_reporter(deviceConfiguration.reporter) }}</td>
  29.                         <td class="text-right">
  30.                             <a
  31.                                     href="{{ path(
  32.                                         'app_backoffice_deviceconfigurations_edit',
  33.                                         {'deviceId': deviceConfiguration.deviceId}) }}"
  34.                                     data-toggle="tooltip"
  35.                                     data-placement="left"
  36.                                     data-title="View">
  37.                                 <span class="fa fa-eye"></span>
  38.                             </a>
  39.                         </td>
  40.                     </tr>
  41.                 {% endfor %}
  42.                 </tbody>
  43.             </table>
  44.         </div>
  45.     </div>
  46.     {{ pagination_render(deviceConfigurations) }}
  47. {% endblock %}