From 084272c60ea97f3a835cfccbb3303227d00085e8 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 15 Mar 2015 17:28:46 -0400 Subject: Add cost breakdown for project budget --- app/Template/budget/breakdown.php | 34 ++++++++++++++++++++++++++++++++++ app/Template/budget/create.php | 2 +- app/Template/budget/index.php | 2 +- 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 app/Template/budget/breakdown.php (limited to 'app/Template/budget') diff --git a/app/Template/budget/breakdown.php b/app/Template/budget/breakdown.php new file mode 100644 index 00000000..d4168406 --- /dev/null +++ b/app/Template/budget/breakdown.php @@ -0,0 +1,34 @@ + + +isEmpty()): ?> +

+ + + + + + + + + + + getCollection() as $record): ?> + + + + + + + + + +
order(t('Task'), 'task_title') ?>order(t('Subtask'), 'subtask_title') ?>order(t('User'), 'username') ?>order(t('Time spent'), 'time_spent') ?>order(t('Date'), 'start') ?>
a($this->e($record['task_title']), 'task', 'show', array('project_id' => $project['id'], 'task_id' => $record['task_id'])) ?>a($this->e($record['subtask_title']), 'task', 'show', array('project_id' => $project['id'], 'task_id' => $record['task_id'])) ?>e($record['name'] ?: $record['username']) ?>
+ + + \ No newline at end of file diff --git a/app/Template/budget/create.php b/app/Template/budget/create.php index 0ff395c9..5a919ce6 100644 --- a/app/Template/budget/create.php +++ b/app/Template/budget/create.php @@ -2,7 +2,7 @@

diff --git a/app/Template/budget/index.php b/app/Template/budget/index.php index 8bdf1a57..bdeda781 100644 --- a/app/Template/budget/index.php +++ b/app/Template/budget/index.php @@ -2,7 +2,7 @@

-- cgit v1.2.3