From 8936792f6f7a408dae7e0a6a41274202822acd9c Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Tue, 16 Feb 2016 21:12:43 -0500 Subject: Add file attachements to projects --- app/Template/task_file/create.php | 33 +++++++++++++++++++++++++++++++++ app/Template/task_file/new.php | 33 --------------------------------- app/Template/task_file/open.php | 6 ------ app/Template/task_file/show.php | 6 +++--- 4 files changed, 36 insertions(+), 42 deletions(-) create mode 100644 app/Template/task_file/create.php delete mode 100644 app/Template/task_file/new.php delete mode 100644 app/Template/task_file/open.php (limited to 'app/Template/task_file') diff --git a/app/Template/task_file/create.php b/app/Template/task_file/create.php new file mode 100644 index 00000000..f03ce8dc --- /dev/null +++ b/app/Template/task_file/create.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/new.php b/app/Template/task_file/new.php deleted file mode 100644 index f03ce8dc..00000000 --- a/app/Template/task_file/new.php +++ /dev/null @@ -1,33 +0,0 @@ - - - - - -
-
- -
-
- - - -
- - - 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 deleted file mode 100644 index e3721b59..00000000 --- a/app/Template/task_file/open.php +++ /dev/null @@ -1,6 +0,0 @@ - \ No newline at end of file diff --git a/app/Template/task_file/show.php b/app/Template/task_file/show.php index 98f26c33..67d7a99c 100644 --- a/app/Template/task_file/show.php +++ b/app/Template/task_file/show.php @@ -8,7 +8,7 @@
- <?= $this->e($file['name']) ?> + <?= $this->e($file['name']) ?>
@@ -62,7 +62,7 @@
  • - url->link(t('Download'), 'TaskFile', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> + url->link(t('Download'), 'FileViewer', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?>
  • -- cgit v1.2.3