diff options
Diffstat (limited to 'app/Template/timetable_day')
-rw-r--r-- | app/Template/timetable_day/index.php | 16 | ||||
-rw-r--r-- | app/Template/timetable_day/remove.php | 4 |
2 files changed, 10 insertions, 10 deletions
diff --git a/app/Template/timetable_day/index.php b/app/Template/timetable_day/index.php index 50aca602..d2877816 100644 --- a/app/Template/timetable_day/index.php +++ b/app/Template/timetable_day/index.php @@ -15,7 +15,7 @@ <td><?= $slot['start'] ?></td> <td><?= $slot['end'] ?></td> <td> - <?= $this->a(t('Remove'), 'timetableday', 'confirm', array('user_id' => $user['id'], 'slot_id' => $slot['id'])) ?> + <?= $this->url->link(t('Remove'), 'timetableday', 'confirm', array('user_id' => $user['id'], 'slot_id' => $slot['id'])) ?> </td> </tr> <?php endforeach ?> @@ -24,16 +24,16 @@ <h3><?= t('Add new time slot') ?></h3> <?php endif ?> -<form method="post" action="<?= $this->u('timetableday', 'save', array('user_id' => $user['id'])) ?>" autocomplete="off"> +<form method="post" action="<?= $this->url->href('timetableday', 'save', array('user_id' => $user['id'])) ?>" autocomplete="off"> - <?= $this->formHidden('user_id', $values) ?> - <?= $this->formCsrf() ?> + <?= $this->form->hidden('user_id', $values) ?> + <?= $this->form->csrf() ?> - <?= $this->formLabel(t('Start time'), 'start') ?> - <?= $this->formSelect('start', $this->getDayHours(), $values, $errors) ?> + <?= $this->form->label(t('Start time'), 'start') ?> + <?= $this->form->select('start', $this->datetime->getDayHours(), $values, $errors) ?> - <?= $this->formLabel(t('End time'), 'end') ?> - <?= $this->formSelect('end', $this->getDayHours(), $values, $errors) ?> + <?= $this->form->label(t('End time'), 'end') ?> + <?= $this->form->select('end', $this->datetime->getDayHours(), $values, $errors) ?> <div class="form-actions"> <input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/> diff --git a/app/Template/timetable_day/remove.php b/app/Template/timetable_day/remove.php index b3ee8775..1b33b266 100644 --- a/app/Template/timetable_day/remove.php +++ b/app/Template/timetable_day/remove.php @@ -6,8 +6,8 @@ <p class="alert alert-info"><?= t('Do you really want to remove this time slot?') ?></p> <div class="form-actions"> - <?= $this->a(t('Yes'), 'timetableday', 'remove', array('user_id' => $user['id'], 'slot_id' => $slot_id), true, 'btn btn-red') ?> + <?= $this->url->link(t('Yes'), 'timetableday', 'remove', array('user_id' => $user['id'], 'slot_id' => $slot_id), true, 'btn btn-red') ?> <?= t('or') ?> - <?= $this->a(t('cancel'), 'timetableday', 'index', array('user_id' => $user['id'])) ?> + <?= $this->url->link(t('cancel'), 'timetableday', 'index', array('user_id' => $user['id'])) ?> </div> </div>
\ No newline at end of file |