.page-header
  %h2
    %li.icon-tasks
    = Yii::t("app", "Scheduled Tasks")

-if($tasks == null)
  %h4(class="color-red")
    =t('Error')
-else
  %table.table.table-condensed
    %thead
      %tr
        %th=t('Name')
        %th=t('Status')
        %th=t('Command')      
        %th=t('Last Run')      
        %th=t('Next run')
    %tbody
      -foreach($tasks as $t)
        %tr
          %td=$t->getName()
          %td=$t->getEnabled()
          %td=$t->getCommand()
          %td=$t->getLastRun()
          %td=$t->getNextRun()