Added pages to view the list of potential jobs

TODO: add ability to run a job & view queued jobs
This commit is contained in:
2023-05-31 16:23:18 +01:00
parent 9b2da13e3a
commit 119e932154
9 changed files with 353 additions and 1 deletions

View File

@@ -0,0 +1,39 @@
{# 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 %}