39 lines
1.4 KiB
Twig
39 lines
1.4 KiB
Twig
{# This partial template renders a table of permissions, to be populated with rows via an AJAX request.
|
|
# This extends a generic template for paginated tables.
|
|
#
|
|
# Note that this template contains a "skeleton" table with an empty table body, and then a block of Handlebars templates which are used
|
|
# to render the table cells with the data from the AJAX request.
|
|
#}
|
|
|
|
{% extends "tables/table-paginated.html.twig" %}
|
|
|
|
{% block table %}
|
|
<table id="{{table.id}}" class="tablesorter table table-bordered table-hover table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th data-column-name="name" data-priority="1">{{translate('NAME')}}</th>
|
|
<th data-column-name="sprinkle" data-priority="1">{{translate('SPRINKLE')}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for job in jobs %}
|
|
<tr>
|
|
<td data-text="{{job.sprinkle}}/{{job.name}}">
|
|
<div>
|
|
<strong>
|
|
<!--<a href="{{site.uri.public}}/jobs/t/{{job.sprinkle}}/{{job.name}}">{{job.name}}</a>-->
|
|
{{job.name}}
|
|
</strong>
|
|
</div>
|
|
</td>
|
|
|
|
<td data-text="{{job.sprinkle}}">
|
|
{{job.sprinkle}}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endblock %}
|
|
|
|
{% block table_pager_controls %}{% endblock %} |