summaryrefslogtreecommitdiff
path: root/app/Template/timetable/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/timetable/index.php')
-rw-r--r--app/Template/timetable/index.php44
1 files changed, 0 insertions, 44 deletions
diff --git a/app/Template/timetable/index.php b/app/Template/timetable/index.php
deleted file mode 100644
index 7a63a2ec..00000000
--- a/app/Template/timetable/index.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<div class="page-header">
- <h2><?= t('Timetable') ?></h2>
- <ul>
- <li><?= $this->url->link(t('Day timetable'), 'timetableday', 'index', array('user_id' => $user['id'])) ?></li>
- <li><?= $this->url->link(t('Week timetable'), 'timetableweek', 'index', array('user_id' => $user['id'])) ?></li>
- <li><?= $this->url->link(t('Time off timetable'), 'timetableoff', 'index', array('user_id' => $user['id'])) ?></li>
- <li><?= $this->url->link(t('Overtime timetable'), 'timetableextra', 'index', array('user_id' => $user['id'])) ?></li>
- </ul>
-</div>
-
-<form method="get" action="?" autocomplete="off" class="form-inline">
-
- <?= $this->form->hidden('controller', $values) ?>
- <?= $this->form->hidden('action', $values) ?>
- <?= $this->form->hidden('user_id', $values) ?>
-
- <?= $this->form->label(t('From'), 'from') ?>
- <?= $this->form->text('from', $values, array(), array(), 'form-date') ?>
-
- <?= $this->form->label(t('To'), 'to') ?>
- <?= $this->form->text('to', $values, array(), array(), 'form-date') ?>
-
- <input type="submit" value="<?= t('Execute') ?>" class="btn btn-blue"/>
-</form>
-
-<?php if (! empty($timetable)): ?>
-<hr/>
-<h3><?= t('Work timetable') ?></h3>
-<table class="table-fixed table-stripped">
- <tr>
- <th><?= t('Day') ?></th>
- <th><?= t('Start') ?></th>
- <th><?= t('End') ?></th>
- </tr>
- <?php foreach ($timetable as $slot): ?>
- <tr>
- <td><?= dt('%B %e, %Y', $slot[0]->getTimestamp()) ?></td>
- <td><?= dt('%k:%M %p', $slot[0]->getTimestamp()) ?></td>
- <td><?= dt('%k:%M %p', $slot[1]->getTimestamp()) ?></td>
- </tr>
- <?php endforeach ?>
-</table>
-
-<?php endif ?> \ No newline at end of file