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
<table class="table">
2017-04-15 11:00:32 +02:00
<tr>
<th>Name</th>
2019-04-25 15:45:53 +02:00
<th>Host</th>
2017-04-15 11:00:32 +02:00
<th>Delay</th>
<th>Next run</th>
<th></th>
</tr>
2021-04-12 12:23:50 +02:00
{% for job in jobs %}
2019-05-24 22:21:21 +02:00
<tr {% if ( job .norun == true ) %} class="norun" {% endif %} >
2017-04-15 11:00:32 +02:00
<td> {{ job .name }} </td>
2021-04-08 12:54:49 +02:00
<td> {{ job .data .host }} </td>
2021-05-06 15:53:21 +02:00
<td> {{ job .interval | interval }} </td>
2021-04-08 13:28:13 +02:00
<td> {{ job .nextrun | date ( "d/m/Y H:i:s" ) }} </td>
2021-04-08 16:34:25 +02:00
<td class="text-end">
<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="editjob.php?jobID= {{ job .id }} " class="btn btn-outline-primary"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a>
<a onclick="return confirm('Are you sure you want to delete this job?')" href="overview.php?id= {{ job .id }} &action=delete" class="btn btn-outline-primary"><i class="fa fa-trash-o" aria-hidden="true"></i></a>
2017-04-15 11:00:32 +02:00
</td>
</tr>
2021-04-12 12:23:50 +02:00
{% endfor %}
2017-04-14 15:58:09 +02:00
</table>
2017-04-16 10:41:06 +02:00
<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">×</button>
<h4 class="modal-title" id="resulttitle"> </h4>
</div>
<div class="modal-body"><p id="resultbody"> </p></div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
2017-04-17 10:10:35 +02:00
<div id='ajax_loader' style="position: fixed; left: 50%; top: 50%; display: none;">
2021-04-06 22:44:39 +02:00
<img src="/public/images/ajax-loader.gif" alt="loading">
2017-04-17 10:10:35 +02:00
</div>
2019-05-24 22:21:21 +02:00
{% endblock %}
2021-04-13 14:07:11 +02:00
{% block extrastyles %}
<link rel="stylesheet" href="/resources/job/index.css" />
{% endblock %}