webcron/templates/job/index.html.twig

60 lines
2.7 KiB
Twig
Raw Normal View History

2017-04-14 15:58:09 +02:00
{% extends "base.html.twig" %}
2017-04-15 14:13:00 +02:00
{% block title %}Overview{% endblock %}
2017-04-14 15:58:09 +02:00
{% block content %}
<h2>Overview of your cronjobs</h2>
2021-04-12 12:23:50 +02:00
2021-05-21 13:09:48 +02:00
<table class="table table-md-striped">
<thead>
<tr class="d-none d-md-table-row">
<th>Name</th>
<th>Host</th>
<th>Delay</th>
<th>Next run</th>
<th></th>
</tr>
</thead>
<tbody>
{% for job in jobs %}
<tr{% if(job.norun == true) %} class="norun"{% endif %}>
<td class="d-block d-md-table-cell">{{ job.name }}</td>
<td class="d-block d-md-table-cell">{{ job.data.host }}</td>
<td class="d-block d-md-table-cell">{{ job.interval | interval }}</td>
<td class="d-block d-md-table-cell">{{ job.nextrun | date("d/m/Y H:i:s") }}</td>
<td class="text-md-right d-block d-md-table-cell">
<a href="#" data-id="{{ job.id }}" class="runcron btn btn-outline-primary"><i class="fa fa-play" aria-hidden="true"></i></a>
<a href="{{ path('job_view', {'id': job.id}) }}" class="btn btn-outline-primary"><i class="fa fa-search" aria-hidden="true"></i></a>
<a href="{{ path('job_edit', {'id': job.id}) }}" class="btn btn-outline-primary"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a>
2021-05-24 14:08:30 +02:00
<a href="#" data-confirmation="Are you sure you want to delete this job?" data-href="{{ path('job_delete', {'id': job.id}) }}" class="delete-btn btn btn-outline-primary"><i class="fa fa-trash-o" aria-hidden="true"></i></a>
2021-05-21 13:09:48 +02:00
</td>
</tr>
{% endfor %}
</tbody>
</table>
<div id="resultmodal" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h4 class="modal-title" id="resulttitle">&nbsp;</h4>
</div>
<div class="modal-body"><p id="resultbody">&nbsp;</p></div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
2017-04-16 10:41:06 +02:00
</div>
</div>
2021-05-21 13:09:48 +02:00
<div id='ajax_loader' style="position: fixed; left: 50%; top: 50%; display: none;">
<img src="/public/images/ajax-loader.gif" alt="loading">
</div>
2019-05-24 22:21:21 +02:00
{% endblock %}
2021-04-13 14:07:11 +02:00
2021-05-26 13:09:13 +02:00
{% block styles %}
{{ encore_entry_link_tags('job.index') }}
2021-04-13 14:07:11 +02:00
{% endblock %}
2021-05-26 13:09:13 +02:00
{% block scripts %}
{{ encore_entry_script_tags('job.index') }}
2021-05-24 14:08:30 +02:00
{% endblock %}