First commit
This commit is contained in:
6
Template/calendar/project.php
Normal file
6
Template/calendar/project.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?= $this->projectHeader->render($project, 'CalendarController', 'project', false, 'Calendar') ?>
|
||||
|
||||
<?= $this->calendar->render(
|
||||
$this->url->href('CalendarController', 'projectEvents', array('project_id' => $project['id'], 'plugin' => 'Calendar')),
|
||||
$this->url->href('CalendarController', 'save', array('project_id' => $project['id'], 'plugin' => 'Calendar'))
|
||||
) ?>
|
||||
4
Template/calendar/user.php
Normal file
4
Template/calendar/user.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<?= $this->calendar->render(
|
||||
$this->url->href('CalendarController', 'userEvents', array('user_id' => $user['id'], 'plugin' => 'Calendar')),
|
||||
$this->url->href('CalendarController', 'save', array('plugin' => 'Calendar'))
|
||||
) ?>
|
||||
36
Template/config/calendar.php
Normal file
36
Template/config/calendar.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<div class="page-header">
|
||||
<h2><?= t('Calendar settings') ?></h2>
|
||||
</div>
|
||||
<form method="post" action="<?= $this->url->href('ConfigController', 'save', array('plugin' => 'Calendar')) ?>" autocomplete="off">
|
||||
|
||||
<?= $this->form->csrf() ?>
|
||||
|
||||
<fieldset>
|
||||
<legend><?= t('Project calendar view') ?></legend>
|
||||
<?= $this->form->radios('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
|
||||
) ?>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend><?= t('User calendar view') ?></legend>
|
||||
<?= $this->form->radios('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
|
||||
) ?>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend><?= t('Subtasks time tracking') ?></legend>
|
||||
<?= $this->form->checkbox('calendar_user_subtasks_time_tracking', t('Show subtasks based on the time tracking'), 1, $values['calendar_user_subtasks_time_tracking'] == 1) ?>
|
||||
</fieldset>
|
||||
|
||||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
|
||||
</div>
|
||||
</form>
|
||||
3
Template/config/sidebar.php
Normal file
3
Template/config/sidebar.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<li <?= $this->app->checkMenuSelection('ConfigController', 'show', 'Calendar') ?>>
|
||||
<?= $this->url->link(t('Calendar settings'), 'ConfigController', 'show', array('plugin' => 'Calendar')) ?>
|
||||
</li>
|
||||
3
Template/dashboard/menu.php
Normal file
3
Template/dashboard/menu.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<li>
|
||||
<?= $this->modal->medium('calendar', t('My calendar'), 'CalendarController', 'user', array('plugin' => 'Calendar')) ?>
|
||||
</li>
|
||||
3
Template/project/dropdown.php
Normal file
3
Template/project/dropdown.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<li>
|
||||
<?= $this->url->icon('calendar', t('Calendar'), 'CalendarController', 'project', array('project_id' => $project['id'], 'plugin' => 'Calendar')) ?>
|
||||
</li>
|
||||
3
Template/project_header/views.php
Normal file
3
Template/project_header/views.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<li <?= $this->app->checkMenuSelection('CalendarController') ?>>
|
||||
<?= $this->url->icon('calendar', t('Calendar'), 'CalendarController', 'project', array('project_id' => $project['id'], 'search' => $filters['search'], 'plugin' => 'Calendar'), false, 'view-calendar', t('Keyboard shortcut: "%s"', 'v c')) ?>
|
||||
</li>
|
||||
Reference in New Issue
Block a user