{% extends "@DukecityCommandScheduler/layout.html.twig" %} {% trans_default_domain 'DukecityCommandScheduler' %} {% block title %} {{ 'list.title'|trans }} {% endblock title %} {% block content %}
{{ 'list.title'|trans }}
{% for command in scheduledCommands %} {% endfor %}
  {{ "detail.name"|trans }} {{ "detail.command"|trans }} {{ "detail.cronExpression"|trans }} {{ "detail.logFile"|trans }} {{ "detail.lastExecution"|trans }} {{ "detail.nextRun"|trans }} {{ "detail.priority"|trans }} {{ "detail.actions"|trans }}
{% if command.disabled == true %} {% else %} {% endif %} {{ command.name }} {{ command.command }} {{ command.arguments }} {{ command.cronExpression }} {{ command.logFile }} {{ command.lastExecution is empty ? "" : command.lastExecution|date( "dateFormat"|trans ) }} {% set nextRunDate = command.getNextRunDate() %} {% if nextRunDate is not null %} {{ nextRunDate|date( "dateFormat"|trans ) }} {% endif %} {{ command.priority }} {% if command.locked == true %} {% else %}
{% endif %}
{% endblock content %} {% block javascript %} $(document).ready(function() { $('#duketown-cronjobs').DataTable( { stateSave: true, dom: 'Bfrtip', buttons: [ 'colvis' ], /*rowGroup: { dataSrc: 1 },*/ order: [[ 6, "desc" ], [ 7, "desc" ]], columnDefs: [ { "targets": [ 4 ], "visible": false, "searchable": false } ], paging: false, ordering: true, info: false, search: false, responsive: true } ); } ); {% endblock javascript %}