{% extends 'backOffice/baseAuthenticated.html.twig' %}
{% set page_title = "Device Configurations" %}
{% import 'backOffice/util/_paginationHelpers.html.twig' as paginationHelpers %}
{% block actions %}
<a class="btn btn-primary ml-3"
href="{{ path('app_backoffice_deviceconfigurations_new') }}">
<span class="fa fa-plus"></span>
New Device Configuration
</a>
{% endblock %}
{% block body %}
{{ paginationHelpers.showing_label(deviceConfigurations) }}
<hr>
<div class="card card-table">
<div class="table-responsive">
<table class="table table-striped table-borderless mb-0">
<thead>
<tr>
<th>Device ID</th>
<th>Reporter</th>
<th></th>
</tr>
</thead>
<tbody class="no-border-x">
{% for deviceConfiguration in deviceConfigurations.items %}
<tr>
<td>{{ deviceConfiguration.deviceId }}</td>
<td>{{ assay_reporter(deviceConfiguration.reporter) }}</td>
<td class="text-right">
<a
href="{{ path(
'app_backoffice_deviceconfigurations_edit',
{'deviceId': deviceConfiguration.deviceId}) }}"
data-toggle="tooltip"
data-placement="left"
data-title="View">
<span class="fa fa-eye"></span>
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{{ pagination_render(deviceConfigurations) }}
{% endblock %}