<html
    xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
    xmlns:be="http://typo3.org/ns/TYPO3/CMS/Backend/ViewHelpers"
    xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers"
    data-namespace-typo3-fluid="true"
>

    <f:if condition="{errorClasses}">
        <f:variable name="errorClassesCount" value="{errorClasses -> f:count()}"/>
        <f:be.infobox
            title="{f:translate(key:'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:msg.invalidTaskClass.infobox.title', arguments: {0: errorClassesCount})}"
            state="{f:constant(name: 'TYPO3\CMS\Fluid\ViewHelpers\Be\InfoboxViewHelper::STATE_ERROR')}"
        >
            <f:format.raw><f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:msg.invalidTaskClass.infobox.message" /></f:format.raw>
        </f:be.infobox>
    </f:if>

    <f:comment><!-- Wrap only groups, ignore "No task group" in draggable list --></f:comment>
    <div class="t3js-group-draggable-container">
        <f:for each="{groups}" as="group" key="groupKey">
            <f:render section="table" arguments="{_all}"/>
        </f:for>
    </div>

    <f:if condition="{errorClasses}">
        <div class="panel panel-default">
            <div class="panel-heading taskGroup" data-task-group-id="missing">
                <div class="panel-heading-row">
                    <button
                        class="panel-button{f:if(condition: errorClassesCollapsed, then: ' collapsed', else: '')}"
                        type="button"
                        data-bs-toggle="collapse"
                        data-bs-target="#scheduler-task-group-missing"
                        aria-expanded="{f:if(condition: errorClassesCollapsed, then: 'false', else: 'true')}"
                    >
                        <div class="panel-title">
                            <strong><f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:label.errorClass"/></strong>
                        </div>
                        <span class="caret"></span>
                    </button>
                </div>
            </div>
            <div class="panel-collapse collapse {f:if(condition: '!{errorClassesCollapsed}', then: 'show')}" id="scheduler-task-group-missing" data-table="task-group-missing" >
                <div class="table-fit">
                    <table class="table table-striped table-hover">
                        <tr class="taskGroup" data-task-group-id="0">
                            <td><span>{f:translate(key:'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:msg.invalidTaskClass') -> f:format.raw()}</span></td>
                        </tr>
                    </table>
                    <table class="table table-striped table-hover" data-scheduler-table>
                        <thead>
                            <tr>
                                <th><f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:label.id"/></th>
                                <th><f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:task"/></th>
                                <th><f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:msg.errorMessage"/></th>
                                <th></th>
                            </tr>
                        </thead>
                        <tbody>
                            <f:for each="{errorClasses}" as="errorClass">
                                <tr>
                                    <td class="align-top">{errorClass.uid}</td>
                                    <td class="align-top">{errorClass.class}</td>
                                    <td class="align-top">{errorClass.errorMessage}</td>
                                    <td class="align-top col-control">
                                        <div class="btn-group float-end" role="group">
                                            <form name="tx_scheduler_form_error_class_{errorClass.uid}" id="tx_scheduler_form_error_class_{errorClass.uid}" method="post">
                                                <input name="action[delete]" type="hidden" value="{errorClass.uid}">
                                            </form>
                                            <button
                                                type="submit"
                                                class="btn btn-default t3js-modal-trigger"
                                                data-target-form="tx_scheduler_form_error_class_{errorClass.uid}"
                                                data-severity="warning"
                                                data-button-close-text="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:cancel')}"
                                                data-bs-content="{f:translate(key: 'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:msg.delete')}"
                                                data-title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:delete')}"
                                                title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:delete')}"
                                            >
                                                <core:icon identifier="actions-edit-delete"/>
                                            </button>
                                        </div>
                                    </td>
                                </tr>
                            </f:for>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <span class="t3js-table-total-items" title="{f:translate(key: 'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:label.errorClass.taskCount')}">{errorClasses -> f:count()}</span>
                                    <f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:label.errorClass"/>
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
        </div>
    </f:if>

    <f:section name="table">
        <div
            class="panel panel-default scheduler-panel"
            data-multi-record-selection-identifier="task-group-{groupKey}"
            {f:if(condition: '{group.uid}', then: 'data-task-group-id="{group.uid}"')}
        >
            <div class="panel-heading multi-record-selection-panel">
                <div class="panel-heading-row">
                    <f:if condition="{group.hidden}">
                        <div class="panel-badge">
                            <span class="badge badge-secondary"><f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:label.group.isDisabled" /></span>
                        </div>
                    </f:if>
                    <div class="panel-title">
                        <f:if condition="!{group.uid}">
                            <f:then>
                                {f:translate(key: 'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:label.noGroup')}
                            </f:then>
                            <f:else>
                                <typo3-scheduler-editable-group-name
                                    groupName="{group.groupName}"
                                    groupId="{group.uid}"
                                    editable="true"
                                >
                                    {group.groupName}
                                </typo3-scheduler-editable-group-name>
                            </f:else>
                        </f:if>
                    </div>
                    <div class="panel-actions">
                        <form name="tx_scheduler_form_group_toggle_hidden" id="tx_scheduler_form_group_toggle_hidden" method="post">
                            <input name="action[group][uid]" type="hidden" value="{group.uid}">
                            <a
                                href="{be:moduleLink(route: 'scheduler_manage', arguments: {action: 'add', groupId: group.uid}, currentUrlParameterName: 'redirect')}"
                                class="btn btn-sm btn-default"
                            >
                                <core:icon identifier="actions-plus" />
                                <f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:function.add" />
                            </a>
                            <f:if condition="{group.uid}">
                                <f:if condition="{group.hidden}">
                                    <f:then>
                                        <button
                                            type="submit"
                                            name="action[group][hidden]"
                                            value="0"
                                            class="btn btn-sm btn-default"
                                            title="{f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:enable')}"
                                        >
                                            <core:icon identifier="actions-edit-unhide"/>
                                            <f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:label.group.enable" />
                                        </button>
                                    </f:then>
                                    <f:else>
                                        <button
                                            type="submit"
                                            name="action[group][hidden]"
                                            value="1"
                                            class="btn btn-sm btn-default"
                                            title="{f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:disable')}"
                                        >
                                            <core:icon identifier="actions-edit-hide"/>
                                            <f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:label.group.disable" />
                                        </button>
                                    </f:else>
                                </f:if>
                                <button
                                    type="button"
                                    class="btn btn-sm btn-default scheduler-sortable-handle t3js-group-draggable-handle"
                                    title="{f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move')}"
                                    disabled
                                >
                                    <core:icon identifier="actions-move-move"/>
                                </button>
                            </f:if>
                            <button type="button"
                                    class="btn btn-sm btn-default t3js-toggle-table"
                                    data-bs-toggle="collapse"
                                    data-bs-target="#scheduler-task-group-{groupKey}"
                                    aria-expanded="{f:if(condition: group.taskGroupCollapsed, then: 'false', else: 'true')}"
                            >
                                <core:icon identifier="{f:if(condition: group.taskGroupCollapsed, then: 'actions-view-list-expand', else: 'actions-view-list-collapse')}" size="small" />
                            </button>
                        </form>
                    </div>
                </div>
                <f:render partial="MultiRecordSelectionActions" />
            </div>
            <form data-multi-record-selection-form="task-group-{groupKey}" name="tx_scheduler_form_{groupKey}" id="tx_scheduler_form_{groupKey}" method="post">
                <div class="panel-collapse collapse {f:if(condition: '!{group.taskGroupCollapsed}', then: 'show')}" id="scheduler-task-group-{groupKey}" data-table="task-group-{f:if(condition: '{group.uid}', then: '{group.uid}', else: '{groupKey}')}">
                    <div class="table-fit">
                        <table class="table table-striped table-hover" data-scheduler-table>
                            <thead>
                                <tr>
                                    <th class="col-checkbox" data-sort-method="none">
                                        <div class="btn-group dropdown">
                                            <button type="button"
                                                class="dropdown-toggle dropdown-toggle-link t3js-multi-record-selection-check-actions-toggle"
                                                data-bs-toggle="dropdown"
                                                data-bs-boundary="window"
                                                aria-expanded="false"
                                                aria-label="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.openSelectionOptions')}"
                                            >
                                                <core:icon identifier="actions-selection" size="small" />
                                            </button>
                                            <ul class="dropdown-menu t3js-multi-record-selection-check-actions">
                                                <li>
                                                    <button
                                                        type="button"
                                                        class="dropdown-item"
                                                        disabled="disabled"
                                                        data-multi-record-selection-check-action="check-all"
                                                        title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.checkAll')}"
                                                    >
                                                            <span class="dropdown-item-columns">
                                                                <span class="dropdown-item-column dropdown-item-column-icon" aria-hidden="true">
                                                                    <core:icon identifier="actions-selection-elements-all" size="small" />
                                                                </span>
                                                                <span class="dropdown-item-column dropdown-item-column-title">
                                                                    <f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.checkAll" />
                                                                </span>
                                                            </span>
                                                    </button>
                                                </li>
                                                <li>
                                                    <button
                                                        type="button"
                                                        class="dropdown-item"
                                                        disabled="disabled"
                                                        data-multi-record-selection-check-action="check-none"
                                                        title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.uncheckAll')}"
                                                    >
                                                            <span class="dropdown-item-columns">
                                                                <span class="dropdown-item-column dropdown-item-column-icon" aria-hidden="true">
                                                                    <core:icon identifier="actions-selection-elements-none" size="small" />
                                                                </span>
                                                                <span class="dropdown-item-column dropdown-item-column-title">
                                                                    <f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.uncheckAll" />
                                                                </span>
                                                            </span>
                                                    </button>
                                                </li>
                                                <li>
                                                    <button
                                                        type="button"
                                                        class="dropdown-item"
                                                        data-multi-record-selection-check-action="toggle"
                                                        title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.toggleSelection')}"
                                                    >
                                                            <span class="dropdown-item-columns">
                                                                <span class="dropdown-item-column dropdown-item-column-icon" aria-hidden="true">
                                                                    <core:icon identifier="actions-selection-elements-invert" size="small" />
                                                                </span>
                                                                <span class="dropdown-item-column dropdown-item-column-title">
                                                                    <f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.toggleSelection" />
                                                                </span>
                                                            </span>
                                                    </button>
                                                </li>
                                            </ul>
                                        </div>
                                    </th>
                                    <th><f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:label.id"/></th>
                                    <th class="col-task"><f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:task"/></th>
                                    <th class="col-min"><f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:label.status"/></th>
                                    <th class="col-state"><f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:label.type"/></th>
                                    <th class="col-state"><f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:label.frequency"/></th>
                                    <th class="col-min"><f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:label.parallel"/></th>
                                    <th class="col-min"><f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:label.lastExecution"/></th>
                                    <th class="col-min"><f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:label.nextExecution"/></th>
                                    <th class="col-control" data-sort-method="none"></th>
                                </tr>
                            </thead>
                            <tbody data-multi-record-selection-row-selection="true">
                            <f:for each="{group.tasks}" as="task">
                                <tr
                                    data-task-id="{task.uid}"
                                    data-task-disabled="{f:if(condition:'{task.disabled}', then: 'true', else: 'false')}"
                                    data-multi-record-selection-element="true"
                                >
                                    <td class="col-checkbox">
                                        <span class="form-check form-check-type-toggle">
                                            <input class="form-check-input t3js-multi-record-selection-check" type="checkbox">
                                        </span>
                                    </td>
                                    <td class="align-top">{task.uid}</td>
                                    <td class="align-top col-task">
                                        <div class="name">
                                            <f:be.link route="scheduler_manage" parameters="{action: 'edit', 'uid': task.uid}">
                                                <strong>{task.classTitle} ({task.classExtension})</strong>
                                                <f:if condition="{task.progress}">
                                                    <typo3-backend-progress-bar value="{task.progress}" max="100" label="{task.progress}%"></typo3-backend-progress-bar>
                                                </f:if>
                                                <f:if condition="{task.additionalInformation}">
                                                    <div class="additional-information"><f:format.nl2br>{task.additionalInformation}</f:format.nl2br></div>
                                                </f:if>
                                            </f:be.link>
                                        </div>
                                        <f:if condition="{task.description} != ''">
                                            <div class="text-body-secondary" style="margin-top: 0.5em;"><f:format.nl2br>{task.description}</f:format.nl2br></div>
                                        </f:if>
                                    </td>
                                    <td class="align-top col-min">
                                        <f:if condition="{task.isRunning}">
                                            <span class="badge badge-success"><f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:status.running" /></span>
                                        </f:if>
                                        <f:if condition="{task.nextExecution} && {task.nextExecution} < {now} && !{group.hidden} && !{task.disabled}">
                                                <span
                                                    class="badge badge-warning"
                                                    title="{f:translate(key:'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:status.legend.scheduled')}"
                                                >
                                                    <f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:status.late" />
                                                </span>
                                        </f:if>
                                        <f:if condition="{task.disabled} && !{task.isRunning}">
                                            <span class="badge badge-secondary"><f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:status.disabled" /></span>
                                        </f:if>
                                        <f:if condition="{group.hidden} && !{task.isRunning}">
                                            <span class="badge badge-secondary"><f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:status.disabledByGroup" /></span>
                                        </f:if>
                                        <f:if condition="{task.lastExecutionFailure}">
                                            <f:if condition="{task.lastExecutionFailureMessage}">
                                                <f:then>
                                                        <span
                                                            class="badge badge-danger"
                                                            title="{f:translate(
                                                                key:'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:msg.executionFailureReport',
                                                                arguments:{0: task.lastExecutionFailureCode, 1: task.lastExecutionFailureMessage}
                                                            )}"
                                                        >
                                                            <f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:status.failure" />
                                                        </span>
                                                </f:then>
                                                <f:else>
                                                        <span
                                                            class="badge badge-danger"
                                                            title="{f:translate(key:'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:msg.executionFailureDefault')}"
                                                        >
                                                            <f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:status.failure" />
                                                        </span>
                                                </f:else>
                                            </f:if>
                                        </f:if>
                                        <f:for each="{task.labels}" as="label">
                                            <span class="badge badge-{label.class}" title="{label.description}">{label.text}</span>
                                        </f:for>
                                    </td>
                                    <td class="align-top col-state">
                                        <f:if condition="{task.type} === 'single'">
                                            <f:then>
                                                <f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:label.type.single" />
                                            </f:then>
                                            <f:else>
                                                <f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:label.type.recurring" />
                                            </f:else>
                                        </f:if>
                                    </td>
                                    <td class="align-top col-state">
                                        <f:if condition="{task.type} === 'single'">
                                            <f:then>-</f:then>
                                            <f:else>{task.frequency}</f:else>
                                        </f:if>
                                    </td>
                                    <td class="align-top col-min">
                                        <f:if condition="{task.multiple}">
                                            <f:then>
                                                <f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:yes" />
                                            </f:then>
                                            <f:else>
                                                <f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:no" />
                                            </f:else>
                                        </f:if>
                                    </td>
                                    <td class="align-top col-datetime">
                                        <f:if condition="{task.lastExecutionTime}">
                                            <f:then>
                                                <f:format.date format="{dateFormat.day} {dateFormat.time}" date="{task.lastExecutionTime}" /><br>
                                                <f:if condition="{task.lastExecutionContext} == 'CLI'">
                                                    <f:then>
                                                        <span class="text-body-secondary"><f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:label.cron" /></span>
                                                    </f:then>
                                                    <f:else>
                                                        <span class="text-body-secondary"><f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:label.manual" /></span>
                                                    </f:else>
                                                </f:if>
                                            </f:then>
                                            <f:else>-</f:else>
                                        </f:if>
                                    </td>
                                    <td class="align-top col-datetime">
                                        <f:if condition="{task.isRunning} || {task.disabled} || {group.hidden}">
                                            <f:then>-</f:then>
                                            <f:else>
                                                <f:if condition="{task.nextExecution}">
                                                    <f:then>
                                                        <f:format.date format="{dateFormat.day} {dateFormat.time}" date="{task.nextExecution}" />
                                                    </f:then>
                                                    <f:else>
                                                        <f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:none" />
                                                    </f:else>
                                                </f:if>
                                            </f:else>
                                        </f:if>
                                    </td>
                                    <td class="col-control align-top">
                                        <f:if condition="{task.isRunning}">
                                            <f:then>
                                                <div class="btn-group" role="group">
                                                    <button
                                                        type="submit"
                                                        class="btn btn-default t3js-modal-trigger"
                                                        data-target-form="tx_scheduler_form_task_stop_{task.uid}"
                                                        data-severity="warning"
                                                        data-button-close-text="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:cancel')}"
                                                        data-bs-content="{f:translate(key: 'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:msg.stop')}"
                                                        data-title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:stop')}"
                                                        title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:stop')}"
                                                    >
                                                        <core:icon identifier="actions-close"/>
                                                    </button>
                                                    <form name="tx_scheduler_form_task_stop_{task.uid}" id="tx_scheduler_form_task_stop_{task.uid}" method="post">
                                                        <input name="action[stop]" type="hidden" value="{task.uid}">
                                                    </form>
                                                </div>
                                            </f:then>
                                            <f:else>
                                                <div class="btn-group" role="group">
                                                    <f:be.link
                                                        route="scheduler_manage"
                                                        parameters="{action: 'edit', 'uid': task.uid}"
                                                        class="btn btn-default"
                                                        title="{f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:edit')}"
                                                    >
                                                        <core:icon identifier="actions-open"/>
                                                    </f:be.link>
                                                    <f:if condition="{task.disabled}">
                                                        <f:then>
                                                            <button
                                                                type="submit"
                                                                name="action[toggleHidden]"
                                                                value="{task.uid}"
                                                                class="btn btn-default"
                                                                title="{f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:enable')}"
                                                            >
                                                                <core:icon identifier="actions-edit-unhide"/>
                                                            </button>
                                                        </f:then>
                                                        <f:else>
                                                            <button
                                                                type="submit"
                                                                name="action[toggleHidden]"
                                                                value="{task.uid}"
                                                                class="btn btn-default"
                                                                title="{f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:disable')}"
                                                            >
                                                                <core:icon identifier="actions-edit-hide"/>
                                                            </button>
                                                        </f:else>
                                                    </f:if>
                                                    <form name="tx_scheduler_form_task_delete_{task.uid}" id="tx_scheduler_form_task_delete_{task.uid}" method="post">
                                                        <input name="action[delete]" type="hidden" value="{task.uid}">
                                                    </form>
                                                    <button
                                                        type="submit"
                                                        class="btn btn-default t3js-modal-trigger"
                                                        data-target-form="tx_scheduler_form_task_delete_{task.uid}"
                                                        data-severity="warning"
                                                        data-button-close-text="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:cancel')}"
                                                        data-bs-content="{f:translate(key: 'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:msg.delete')}"
                                                        data-title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:delete')}"
                                                        title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:delete')}"
                                                    >
                                                        <core:icon identifier="actions-edit-delete"/>
                                                    </button>
                                                </div>
                                                <div class="btn-group" role="group">
                                                    <button
                                                        type="submit"
                                                        class="btn btn-default"
                                                        name="scheduleCron"
                                                        value="{task.uid}"
                                                        title="{f:translate(key:'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:action.run_task_cron')}"
                                                    >
                                                        <core:icon identifier="actions-clock"/>
                                                    </button>
                                                    <button
                                                        type="submit"
                                                        class="btn btn-default"
                                                        name="execute"
                                                        value="{task.uid}"
                                                        title="{f:translate(key:'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:action.run_task')}"
                                                    >
                                                        <core:icon identifier="actions-play"/>
                                                    </button>
                                                </div>
                                            </f:else>
                                        </f:if>
                                    </td>
                                </tr>
                            </f:for>
                            </tbody>
                            <tfoot>
                                <tr>
                                    <td colspan="10">
                                        <f:if condition="!{group.groupName}">
                                            <f:then>
                                                <span class="t3js-table-total-items" title="{f:translate(key: 'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:label.noGroup.taskCount')}">{group.tasks -> f:count()}</span>
                                                <f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:label.noGroup" />
                                            </f:then>
                                            <f:else>
                                                <span class="t3js-table-total-items" title="{f:translate(key: 'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:label.group.taskCount')}">{group.tasks -> f:count()}</span>
                                                <f:translate key="LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:function.scheduler" />
                                            </f:else>
                                        </f:if>
                                    </td>
                                </tr>
                            </tfoot>
                        </table>
                    </div>
                </div>
            </form>
        </div>
    </f:section>
</html>
