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">
2021-08-02 17:07:41 +02:00
<th> </th>
2021-05-21 13:09:48 +02:00
<th>Name</th>
<th>Host</th>
<th>Delay</th>
<th>Next run</th>
<th></th>
</tr>
</thead>
<tbody>
{% for job in jobs %}
2021-07-20 16:29:11 +02:00
<tr {% if job .running == true %} class="running text-success" {% elseif job .norun == true %} class="norun text-danger" {% endif %} >
2021-08-02 17:07:41 +02:00
<td class="d-none d-md-table-cell align-middle status-col text-center"> {% if job .needschecking %} <i class="icon icon-warning text-warning big-icon"></i> {% endif %} </td>
2022-01-05 11:36:07 +01:00
<td class="d-block d-md-table-cell align-middle job-name">
2021-08-02 17:07:41 +02:00
<span class="d-inline d-md-none"> {% if job .needschecking %} <i class="icon icon-warning text-warning"></i> {% endif %} </span>
2022-01-06 16:58:26 +01:00
{{ job .name | parsetags | raw }} </td>
2021-07-20 16:29:11 +02:00
<td class="d-block d-md-table-cell align-middle"> {{ attribute ( job , 'host-displayname' ) }} </td>
<td class="d-block d-md-table-cell align-middle"> {{ job .interval | interval }} </td>
<td class="d-block d-md-table-cell align-middle"> {{ job .nextrun | date ( "d/m/Y H:i:s" ) }} </td>
2021-07-20 18:54:07 +02:00
<td class="text-md-end d-block d-md-table-cell align-middle">
2021-08-02 11:51:07 +02:00
<a href="#" data-href=" {{ path ( 'job_runnow' , { 'id' : job .id } ) }} " class="runnow btn btn-outline- {% if job .running == true %} success {% elseif job .norun == true %} danger {% else %} primary {% endif %} {% if job .running == true %} disabled {% endif %} "><i class="icon icon-run" aria-hidden="true"></i></a>
<a href=" {{ path ( 'job_view' , { 'id' : job .id } ) }} " class="btn btn-outline- {% if job .running == true %} success {% elseif job .norun == true %} danger {% else %} primary {% endif %} "><i class="icon icon-view" aria-hidden="true"></i></a>
<a href=" {{ path ( 'job_edit' , { 'id' : job .id } ) }} " class="btn btn-outline- {% if job .running == true %} success {% elseif job .norun == true %} danger {% else %} primary {% endif %} "><i class="icon icon-edit" aria-hidden="true"></i></a>
<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- {% if job .running == true %} success {% elseif job .norun == true %} danger {% else %} primary {% endif %} "><i class="icon icon-delete" aria-hidden="true"></i></a>
2021-05-21 13:09:48 +02:00
</td>
</tr>
{% endfor %}
</tbody>
</table>
2021-06-01 20:21:47 +02:00
<div class="modal fade" id="runnow_result" data-backdrop="static" data-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="staticBackdropLabel"></h5>
2021-07-20 18:54:07 +02:00
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close">
<span aria-hidden="true"></span>
2021-06-01 20:21:47 +02:00
</button>
</div>
<div class="modal-body">
2021-05-21 13:09:48 +02:00
2021-06-01 20:21:47 +02:00
</div>
<div class="modal-footer">
2021-07-20 18:54:07 +02:00
<button type="button" class="btn btn-outline-primary" data-bs-dismiss="modal">Close</button>
2021-06-01 20:21:47 +02:00
</div>
</div>
</div>
2017-04-16 10:41:06 +02:00
</div>
2021-07-30 14:35:47 +02:00
{% endblock %}
{% block extrahtml %}
<div class="runnow-overlay d-none">
<div class="runnow-content">
2021-05-21 13:09:48 +02:00
</div>
2021-07-30 14:35:47 +02:00
<div class="runnow-blur"></div>
</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 %}
2022-05-02 13:25:50 +02:00
{{ vite_entry_link_tags ( 'job.index' ) }}
2021-04-13 14:07:11 +02:00
{% endblock %}
2021-05-26 13:09:13 +02:00
{% block scripts %}
2022-05-02 13:25:50 +02:00
{{ vite_entry_script_tags ( 'job.index' ) }}
2021-05-24 14:08:30 +02:00
{% endblock %}