From 4b6672d0b33563ab8888d592ef86616ca9238007 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 13 Sep 2015 16:56:51 -0400 Subject: Move budget outside of the core The budget planning feature is now a plugin See: https://github.com/kanboard/plugin-budget --- app/Template/budget/breakdown.php | 30 ------------------------ app/Template/budget/create.php | 47 -------------------------------------- app/Template/budget/index.php | 34 --------------------------- app/Template/budget/remove.php | 13 ----------- app/Template/budget/sidebar.php | 16 ------------- app/Template/currency/index.php | 2 -- app/Template/hourlyrate/index.php | 46 ------------------------------------- app/Template/hourlyrate/remove.php | 13 ----------- app/Template/project/dropdown.php | 4 ---- app/Template/user/sidebar.php | 3 --- 10 files changed, 208 deletions(-) delete mode 100644 app/Template/budget/breakdown.php delete mode 100644 app/Template/budget/create.php delete mode 100644 app/Template/budget/index.php delete mode 100644 app/Template/budget/remove.php delete mode 100644 app/Template/budget/sidebar.php delete mode 100644 app/Template/hourlyrate/index.php delete mode 100644 app/Template/hourlyrate/remove.php (limited to 'app/Template') diff --git a/app/Template/budget/breakdown.php b/app/Template/budget/breakdown.php deleted file mode 100644 index 92561188..00000000 --- a/app/Template/budget/breakdown.php +++ /dev/null @@ -1,30 +0,0 @@ - - -isEmpty()): ?> -

- - - - - - - - - - - getCollection() as $record): ?> - - - - - - - - - -
order(t('Task'), 'task_title') ?>order(t('Subtask'), 'subtask_title') ?>order(t('User'), 'username') ?>order(t('Time spent'), \Model\SubtaskTimeTracking::TABLE.'.time_spent') ?>order(t('Date'), 'start') ?>
url->link($this->e($record['task_title']), 'task', 'show', array('project_id' => $project['id'], 'task_id' => $record['task_id'])) ?>url->link($this->e($record['subtask_title']), 'task', 'show', array('project_id' => $project['id'], 'task_id' => $record['task_id'])) ?>url->link($this->e($record['name'] ?: $record['username']), 'user', 'show', array('user_id' => $record['user_id'])) ?>
- - - \ No newline at end of file diff --git a/app/Template/budget/create.php b/app/Template/budget/create.php deleted file mode 100644 index a563796d..00000000 --- a/app/Template/budget/create.php +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - -
e($line['comment']) ?> - url->link(t('Remove'), 'budget', 'confirm', array('project_id' => $project['id'], 'budget_id' => $line['id'])) ?> -
- -

- - -
- - form->csrf() ?> - - form->hidden('id', $values) ?> - form->hidden('project_id', $values) ?> - - form->label(t('Amount'), 'amount') ?> - form->text('amount', $values, $errors, array('required'), 'form-numeric') ?> - - form->label(t('Date'), 'date') ?> - form->text('date', $values, $errors, array('required'), 'form-date') ?> - - form->label(t('Comment'), 'comment') ?> - form->text('comment', $values, $errors) ?> - -
- -
-
\ No newline at end of file diff --git a/app/Template/budget/index.php b/app/Template/budget/index.php deleted file mode 100644 index 51ef3d87..00000000 --- a/app/Template/budget/index.php +++ /dev/null @@ -1,34 +0,0 @@ - - - -
-
t('Budget line'), 'out' => t('Expenses'), 'left' => t('Remaining'), 'value' => t('Amount'), 'date' => t('Date'), 'type' => t('Type')), JSON_HEX_APOS) ?>'>
-
-
- - - - - - - - - - - -
- - - -
- -

- - -asset->js('assets/js/vendor/d3.v3.min.js') ?> -asset->js('assets/js/vendor/c3.min.js') ?> \ No newline at end of file diff --git a/app/Template/budget/remove.php b/app/Template/budget/remove.php deleted file mode 100644 index a5b906a1..00000000 --- a/app/Template/budget/remove.php +++ /dev/null @@ -1,13 +0,0 @@ - - -
-

- -
- url->link(t('Yes'), 'budget', 'remove', array('project_id' => $project['id'], 'budget_id' => $budget_id), true, 'btn btn-red') ?> - - url->link(t('cancel'), 'budget', 'create', array('project_id' => $project['id'])) ?> -
-
\ No newline at end of file diff --git a/app/Template/budget/sidebar.php b/app/Template/budget/sidebar.php deleted file mode 100644 index 8477c052..00000000 --- a/app/Template/budget/sidebar.php +++ /dev/null @@ -1,16 +0,0 @@ - \ No newline at end of file diff --git a/app/Template/currency/index.php b/app/Template/currency/index.php index f72c5700..1c78c47a 100644 --- a/app/Template/currency/index.php +++ b/app/Template/currency/index.php @@ -52,5 +52,3 @@ - -

diff --git a/app/Template/hourlyrate/index.php b/app/Template/hourlyrate/index.php deleted file mode 100644 index af305d07..00000000 --- a/app/Template/hourlyrate/index.php +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - -
- url->link(t('Remove'), 'hourlyrate', 'confirm', array('user_id' => $user['id'], 'rate_id' => $rate['id'])) ?> -
- -

- - -
- - form->hidden('user_id', $values) ?> - form->csrf() ?> - - form->label(t('Hourly rate'), 'rate') ?> - form->text('rate', $values, $errors, array('required'), 'form-numeric') ?> - - form->label(t('Currency'), 'currency') ?> - form->select('currency', $currencies_list, $values, $errors, array('required')) ?> - - form->label(t('Effective date'), 'date_effective') ?> - form->text('date_effective', $values, $errors, array('required'), 'form-date') ?> - -
- -
-
diff --git a/app/Template/hourlyrate/remove.php b/app/Template/hourlyrate/remove.php deleted file mode 100644 index 121436e4..00000000 --- a/app/Template/hourlyrate/remove.php +++ /dev/null @@ -1,13 +0,0 @@ - - -
-

- -
- url->link(t('Yes'), 'hourlyrate', 'remove', array('user_id' => $user['id'], 'rate_id' => $rate_id), true, 'btn btn-red') ?> - - url->link(t('cancel'), 'hourlyrate', 'index', array('user_id' => $user['id'])) ?> -
-
\ No newline at end of file diff --git a/app/Template/project/dropdown.php b/app/Template/project/dropdown.php index c9563a4f..0f1e1f6b 100644 --- a/app/Template/project/dropdown.php +++ b/app/Template/project/dropdown.php @@ -16,10 +16,6 @@ url->link(t('Analytics'), 'analytic', 'tasks', array('project_id' => $project['id'])) ?> -
  • - - url->link(t('Budget'), 'budget', 'index', array('project_id' => $project['id'])) ?> -
  • url->link(t('Exports'), 'export', 'tasks', array('project_id' => $project['id'])) ?> diff --git a/app/Template/user/sidebar.php b/app/Template/user/sidebar.php index 77612d0f..80fe8684 100644 --- a/app/Template/user/sidebar.php +++ b/app/Template/user/sidebar.php @@ -62,9 +62,6 @@
  • app->getRouterController() === 'user' && $this->app->getRouterAction() === 'authentication' ? 'class="active"' : '' ?>> url->link(t('Edit Authentication'), 'user', 'authentication', array('user_id' => $user['id'])) ?>
  • -
  • app->getRouterController() === 'hourlyrate' ? 'class="active"' : '' ?>> - url->link(t('Hourly rates'), 'hourlyrate', 'index', array('user_id' => $user['id'])) ?> -
  • app->getRouterController() === 'timetable' ? 'class="active"' : '' ?>> url->link(t('Manage timetable'), 'timetable', 'index', array('user_id' => $user['id'])) ?>
  • -- cgit v1.2.3