From e4efc73a90b0ef62b5d828db53a365184be40137 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?=
Date: Thu, 13 Nov 2014 20:04:34 -0500
Subject: [PATCH] Move category template to a subfolder
---
app/Controller/Category.php | 10 +++++-----
app/Template/{category_edit.php => category/edit.php} | 4 +++-
.../{category_index.php => category/index.php} | 6 +++---
.../{category_remove.php => category/remove.php} | 5 +++--
4 files changed, 14 insertions(+), 11 deletions(-)
rename app/Template/{category_edit.php => category/edit.php} (79%)
rename app/Template/{category_index.php => category/index.php} (67%)
rename app/Template/{category_remove.php => category/remove.php} (51%)
diff --git a/app/Controller/Category.php b/app/Controller/Category.php
index 4a0128f34..d69ed115e 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
similarity index 79%
rename from app/Template/category_edit.php
rename to app/Template/category/edit.php
index 278d7e125..05fe288a2 100644
--- a/app/Template/category_edit.php
+++ b/app/Template/category/edit.php
@@ -2,8 +2,10 @@
= t('Category modification for the project "%s"', $project['name']) ?>
-
\ No newline at end of file