From 8477da26437cd927b47fbac8874e2a7e02b580ca Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 14 Feb 2016 15:49:59 -0500 Subject: Rename File controller to TaskFile --- app/Template/task_file/new.php | 33 ++++++++++++++ app/Template/task_file/open.php | 6 +++ app/Template/task_file/remove.php | 15 +++++++ app/Template/task_file/screenshot.php | 19 ++++++++ app/Template/task_file/show.php | 84 +++++++++++++++++++++++++++++++++++ 5 files changed, 157 insertions(+) create mode 100644 app/Template/task_file/new.php create mode 100644 app/Template/task_file/open.php create mode 100644 app/Template/task_file/remove.php create mode 100644 app/Template/task_file/screenshot.php create mode 100644 app/Template/task_file/show.php (limited to 'app/Template/task_file') diff --git a/app/Template/task_file/new.php b/app/Template/task_file/new.php new file mode 100644 index 00000000..f03ce8dc --- /dev/null +++ b/app/Template/task_file/new.php @@ -0,0 +1,33 @@ + + + + + +
+
+ +
+
+ + + +
+ + + url->link(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'close-popover') ?> +
diff --git a/app/Template/task_file/open.php b/app/Template/task_file/open.php new file mode 100644 index 00000000..e3721b59 --- /dev/null +++ b/app/Template/task_file/open.php @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/app/Template/task_file/remove.php b/app/Template/task_file/remove.php new file mode 100644 index 00000000..5e6c83f2 --- /dev/null +++ b/app/Template/task_file/remove.php @@ -0,0 +1,15 @@ + + +
+

+ e($file['name'])) ?> +

+ +
+ url->link(t('Yes'), 'TaskFile', 'remove', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), true, 'btn btn-red') ?> + + url->link(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'close-popover') ?> +
+
\ No newline at end of file diff --git a/app/Template/task_file/screenshot.php b/app/Template/task_file/screenshot.php new file mode 100644 index 00000000..72214362 --- /dev/null +++ b/app/Template/task_file/screenshot.php @@ -0,0 +1,19 @@ + + +
+

+
+ +
+ + form->csrf() ?> +
+ + + url->link(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'close-popover') ?> +
+
+ +

\ No newline at end of file diff --git a/app/Template/task_file/show.php b/app/Template/task_file/show.php new file mode 100644 index 00000000..98f26c33 --- /dev/null +++ b/app/Template/task_file/show.php @@ -0,0 +1,84 @@ + +
+ + + +
+ +
+ <?= $this->e($file['name']) ?> +
+
+ +
+
+ dt->datetime($file['date'])).'
'.t('Size: %s', $this->text->bytes($file['size'])) ?>'> + +
+ +
+
+
+ +
+ + + + + + + + + + + + + + + + + + +
+ + + + e($file['user_name'] ?: $file['username']) ?> + + dt->date($file['date']) ?> + + text->bytes($file['size']) ?> +
+ +
+ \ No newline at end of file -- cgit v1.2.3