summaryrefslogtreecommitdiff
path: root/app/Template/config/calendar.php
blob: 300d34195e3548cffb04188bae48c4618cf03536 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<div class="page-header">
    <h2><?= t('Calendar settings') ?></h2>
</div>
<section>
<form method="post" action="<?= $this->u('config', 'calendar') ?>" autocomplete="off">

    <?= $this->formCsrf() ?>

    <h3><?= t('Project calendar view') ?></h3>
    <div class="listing">
        <?= $this->formRadios('calendar_project_tasks', array(
                'date_creation' => t('Show tasks based on the creation date'),
                'date_started' => t('Show tasks based on the start date'),
            ), $values) ?>
    </div>

    <h3><?= t('User calendar view') ?></h3>
    <div class="listing">
        <?= $this->formRadios('calendar_user_tasks', array(
                'date_creation' => t('Show tasks based on the creation date'),
                'date_started' => t('Show tasks based on the start date'),
            ), $values) ?>

        <h4><?= t('Subtasks time tracking') ?></h4>
        <?= $this->formCheckbox('calendar_user_subtasks_time_tracking', t('Show subtasks based on the time tracking'), 1, $values['calendar_user_subtasks_time_tracking'] == 1) ?>
        <?= $this->formCheckbox('calendar_user_subtasks_forecast', t('Show subtask estimates (forecast of future work)'), 1, $values['calendar_user_subtasks_forecast'] == 1) ?>
    </div>

    <div class="form-actions">
        <input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
    </div>
</form>
</section>