webcron/templates/overview.html.twig

34 lines
1.3 KiB
Twig
Raw Normal View History

2017-04-14 15:58:09 +02:00
{% extends "base.html.twig" %}
{% block content %}
<h2>Overview of your cronjobs</h2>
2017-04-15 11:00:32 +02:00
{% if not message == "" %}
<div class="alert alert-success fade in">
<a href="#" class="close" data-dismiss="alert">&times;</a>
{{ message }}
</div>
{% endif %}
2017-04-14 15:58:09 +02:00
<table class="table">
2017-04-15 11:00:32 +02:00
<tr>
<th>ID</th>
<th>Name</th>
<th>Delay</th>
<th>Next run</th>
<th></th>
</tr>
2017-04-14 15:58:09 +02:00
{% for job in jobs %}
2017-04-15 11:00:32 +02:00
<tr>
<td>{{ job.jobID }}</td>
<td>{{ job.name }}</td>
<td>{{ job.delay }}</td>
<td>{{ job.nextrun }}</td>
<td>
<div class="btn-group" role="group" aria-label="...">
<a href="runs.php?jobID={{ job.jobID }}" class="btn btn-default"><span class="glyphicon glyphicon-align-justify"></span></a>
2017-04-15 12:58:33 +02:00
<a href="editjob.php?jobID={{ job.jobID }}" class="btn btn-default"><span class="glyphicon glyphicon-edit"><span></a>
2017-04-15 11:00:32 +02:00
<a onclick="return confirm('Are you sure you want to delete this job?')" href="overview.php?jobID={{ job.jobID }}&action=delete" class="btn btn-default"><span class="glyphicon glyphicon-remove"></span></a>
</div>
</td>
</tr>
2017-04-14 15:58:09 +02:00
{% endfor %}
</table>
{% endblock %}