From eaa2c2d1dab2cd644e6f97d0fae87db6e1165c0f Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Thu, 18 Jun 2009 02:41:12 +0000 Subject: [PATCH] Resolved the filtering issue. git-svn-id: http://svn.cleancode.org/svn/pickles@137 4d10bc64-7434-11dc-a737-d2d0f8310089 --- classes/Display/Smarty.php | 5 +++-- common/templates/store/admin/discounts/edit.tpl | 3 +++ common/templates/store/admin/home.tpl | 14 +++++++------- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/classes/Display/Smarty.php b/classes/Display/Smarty.php index 6641fd8..b72448e 100644 --- a/classes/Display/Smarty.php +++ b/classes/Display/Smarty.php @@ -95,9 +95,10 @@ class Display_Smarty extends Display_Common { if (!file_exists($template)) { $shared_template = PICKLES_PATH . 'common/templates/' . ($this->shared_module_filename == false ? $this->module_filename : $this->shared_module_filename) . '.tpl'; - + // $shared_template = PICKLES_PATH . 'common/templates/' . ($this->shared_filname == false ? $this->module_filename : $this->shared_filename) . '.tpl'; + // @todo SUPER HACKINSHIT - if ($this->module_filename == 'store/admin') { + if (strstr($this->module_filename, 'store/admin')) { $shared_template = PICKLES_PATH . 'common/templates/store/admin.tpl'; } diff --git a/common/templates/store/admin/discounts/edit.tpl b/common/templates/store/admin/discounts/edit.tpl index d00d787..be88f48 100644 --- a/common/templates/store/admin/discounts/edit.tpl +++ b/common/templates/store/admin/discounts/edit.tpl @@ -95,6 +95,9 @@ to {html_select_date prefix='valid_to_'} +
+ +

diff --git a/common/templates/store/admin/home.tpl b/common/templates/store/admin/home.tpl index c6ba455..269b83d 100644 --- a/common/templates/store/admin/home.tpl +++ b/common/templates/store/admin/home.tpl @@ -11,13 +11,13 @@
  1. Orders

  2. -
  3.   Pending
  4. -
  5.   Approved
  6. -
  7.   Partially Shipped
  8. -
  9.   Shipped/Completed
  10. -
  11.   Backorder
  12. -
  13.   Declined
  14. -
  15.   Void
  16. +
  17.   Pending
  18. +
  19.   Approved
  20. +
  21.   Partially Shipped
  22. +
  23.   Shipped/Completed
  24. +
  25.   Backorder
  26. +
  27.   Declined
  28. +
  29.   Void