templates/ssp/list.html.twig line 1

Open in your IDE?
  1. {% extends 'layouts/report.html.twig' %}
  2. {% block title %}SSP Endpoints{% endblock %}
  3. {% block report_content %}
  4.     <div class="row mb-4 js-actions-bar">
  5.         <div class="col-12 text-right">
  6.             <a class="btn btn-primary" href="{{ path('ssp_new') }}" title="New SSP Endpoint">+ New</a>
  7.         </div>
  8.     </div>
  9.     <div class="row">
  10.         <div class="col-12">
  11.             <table class="table table-striped" id="reportTable">
  12.                 <thead>
  13.                     <tr>
  14.                         <th scope="col">ID</th>
  15.                         <th scope="col">Abbreviation</th>
  16.                         <th scope="col">Name</th>
  17.                         <th scope="col">Protocol</th>
  18.                         <th scope="col">Enabled</th>
  19.                         <th scope="col">Created On</th>
  20.                         <th scope="col">Updated On</th>
  21.                         <th scope="col">Actions</th>
  22.                     </tr>
  23.                 </thead>
  24.                 <tbody>
  25.                     {% if endpoints is empty %}
  26.                         <tr>
  27.                             <th colspan="8">There are no endpoints.</th>
  28.                         </tr>
  29.                     {% endif %}
  30.                     {% for endpoint in endpoints %}
  31.                         <tr>
  32.                             <td class="align-middle">{{ endpoint.id }}</td>
  33.                             <td class="align-middle text-truncate">{{ endpoint.abbr }}</td>
  34.                             <td class="align-middle text-truncate">{{ endpoint.name }}</td>
  35.                             <td class="align-middle text-truncate">{{ endpoint.protocol }}</td>
  36.                             <td class="align-middle">{{ endpoint.enabled is not empty ? 'Yes' : 'No' }}</td>
  37.                             <td class="align-middle">{{ endpoint.created|date("Y-m-d H:i:s T") }}</td>
  38.                             <td class="align-middle">{{ endpoint.updated|date("Y-m-d H:i:s T") }}</td>
  39.                             <td class="align-middle"><a class="btn btn-primary" href="{{ path('ssp_edit', {id: endpoint.id}) }}" title="Edit SSP Endpoint">Edit</a></td>
  40.                         </tr>
  41.                     {% endfor %}
  42.                 </tbody>
  43.             </table>
  44.         </div>
  45.     </div>
  46.     <script>
  47.         $(document).ready(function () {
  48.             //Initialize DataTables, with no sorting on the 'details' column
  49.             $('#reportTable').DataTable({
  50.                 paging: true,
  51.                 aaSorting: [],
  52.                 columns: [
  53.                     {"name": "id", searchable: true},
  54.                     {"name": "abbr", searchable: true},
  55.                     {"name": "name", searchable: true},
  56.                     {"name": "protocol", searchable: true},
  57.                     {"name": "enabled", searchable: true},
  58.                     {"name": "createdOn", searchable: true},
  59.                     {"name": "updatedOn", searchable: true}
  60.                 ]
  61.             });
  62.         });
  63.     </script>
  64. {% endblock %}