From e4efc73a90b0ef62b5d828db53a365184be40137 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Thu, 13 Nov 2014 20:04:34 -0500 Subject: Move category template to a subfolder --- app/Controller/Category.php | 10 +++++----- app/Template/category/edit.php | 18 ++++++++++++++++++ app/Template/category/index.php | 41 ++++++++++++++++++++++++++++++++++++++++ app/Template/category/remove.php | 17 +++++++++++++++++ app/Template/category_edit.php | 16 ---------------- app/Template/category_index.php | 41 ---------------------------------------- app/Template/category_remove.php | 16 ---------------- 7 files changed, 81 insertions(+), 78 deletions(-) create mode 100644 app/Template/category/edit.php create mode 100644 app/Template/category/index.php create mode 100644 app/Template/category/remove.php delete mode 100644 app/Template/category_edit.php delete mode 100644 app/Template/category_index.php delete mode 100644 app/Template/category_remove.php (limited to 'app') diff --git a/app/Controller/Category.php b/app/Controller/Category.php index 4a0128f3..d69ed115 100644 --- a/app/Controller/Category.php +++ b/app/Controller/Category.php @@ -38,7 +38,7 @@ class Category extends Base { $project = $this->getProjectManagement(); - $this->response->html($this->projectLayout('category_index', array( + $this->response->html($this->projectLayout('category/index', array( 'categories' => $this->category->getList($project['id'], false), 'values' => array('project_id' => $project['id']), 'errors' => array(), @@ -70,7 +70,7 @@ class Category extends Base } } - $this->response->html($this->projectLayout('category_index', array( + $this->response->html($this->projectLayout('category/index', array( 'categories' => $this->category->getList($project['id'], false), 'values' => $values, 'errors' => $errors, @@ -89,7 +89,7 @@ class Category extends Base $project = $this->getProjectManagement(); $category = $this->getCategory($project['id']); - $this->response->html($this->projectLayout('category_edit', array( + $this->response->html($this->projectLayout('category/edit', array( 'values' => $category, 'errors' => array(), 'project' => $project, @@ -120,7 +120,7 @@ class Category extends Base } } - $this->response->html($this->projectLayout('category_edit', array( + $this->response->html($this->projectLayout('category/edit', array( 'values' => $values, 'errors' => $errors, 'project' => $project, @@ -138,7 +138,7 @@ class Category extends Base $project = $this->getProjectManagement(); $category = $this->getCategory($project['id']); - $this->response->html($this->projectLayout('category_remove', array( + $this->response->html($this->projectLayout('category/remove', array( 'project' => $project, 'category' => $category, 'title' => t('Remove a category') diff --git a/app/Template/category/edit.php b/app/Template/category/edit.php new file mode 100644 index 00000000..05fe288a --- /dev/null +++ b/app/Template/category/edit.php @@ -0,0 +1,18 @@ + + +
+ + + + + + + + + +
+ +
+
\ No newline at end of file diff --git a/app/Template/category/index.php b/app/Template/category/index.php new file mode 100644 index 00000000..8a3eb4f1 --- /dev/null +++ b/app/Template/category/index.php @@ -0,0 +1,41 @@ + + + + + + + + + $category_name): ?> + + + + + +
+
    +
  • + $project['id'], 'category_id' => $category_id)) ?> +
  • +
  • + $project['id'], 'category_id' => $category_id)) ?> +
  • +
+
+ + +

+
+ + + + + + + +
+ +
+
\ No newline at end of file diff --git a/app/Template/category/remove.php b/app/Template/category/remove.php new file mode 100644 index 00000000..39e5c1db --- /dev/null +++ b/app/Template/category/remove.php @@ -0,0 +1,17 @@ +
+ + +
+

+ +

+ +
+ $project['id'], 'category_id' => $category['id']), true, 'btn btn-red') ?> + + $project['id'])) ?> +
+
+
\ No newline at end of file diff --git a/app/Template/category_edit.php b/app/Template/category_edit.php deleted file mode 100644 index 278d7e12..00000000 --- a/app/Template/category_edit.php +++ /dev/null @@ -1,16 +0,0 @@ - - -
- - - - - - - -
- -
-
\ No newline at end of file diff --git a/app/Template/category_index.php b/app/Template/category_index.php deleted file mode 100644 index 4635406e..00000000 --- a/app/Template/category_index.php +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - $category_name): ?> - - - - - -
-
    -
  • - -
  • -
  • - -
  • -
-
- - -

-
- - - - - - - -
- -
-
\ No newline at end of file diff --git a/app/Template/category_remove.php b/app/Template/category_remove.php deleted file mode 100644 index cfc23e07..00000000 --- a/app/Template/category_remove.php +++ /dev/null @@ -1,16 +0,0 @@ -
- - -
-

- -

- -
- - -
-
-
\ No newline at end of file -- cgit v1.2.3