From 0903eb0d73b7bd1b24db6e784f3cc216d52eedd8 Mon Sep 17 00:00:00 2001 From: Rachman Chavik Date: Thu, 20 Nov 2014 19:21:22 +0700 Subject: [PATCH] Avoid using submit() and use input() for easier theming This enables theme helpers to apply the appropriate style accordingly --- Croogo/View/Elements/admin/search.ctp | 2 +- FileManager/View/Elements/admin/attachments_search.ctp | 5 ++--- Nodes/View/Elements/admin/nodes_search.ctp | 5 ++--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Croogo/View/Elements/admin/search.ctp b/Croogo/View/Elements/admin/search.ctp index a8232b1dbb..a9ef1f6327 100644 --- a/Croogo/View/Elements/admin/search.ctp +++ b/Croogo/View/Elements/admin/search.ctp @@ -43,7 +43,7 @@ if (!empty($searchFields)): echo $this->Form->input($field, $options); } - echo $this->Form->submit(__d('croogo', 'Filter'), array('div' => false)); + echo $this->Form->input(__d('croogo', 'Filter'), array('type' => 'submit', 'label' => false)); echo $this->Form->end(); ?> diff --git a/FileManager/View/Elements/admin/attachments_search.ctp b/FileManager/View/Elements/admin/attachments_search.ctp index 96f751ae60..ada7d785bf 100644 --- a/FileManager/View/Elements/admin/attachments_search.ctp +++ b/FileManager/View/Elements/admin/attachments_search.ctp @@ -50,9 +50,8 @@ $chooserType = isset($this->request->query['chooser_type']) ? $this->request->qu endif; - echo $this->Form->submit(__d('croogo', 'Filter'), array( - 'button' => 'default', - 'div' => false, + echo $this->Form->input(__d('croogo', 'Filter'), array( + 'type' => 'submit', )); echo $this->Form->end(); ?> diff --git a/Nodes/View/Elements/admin/nodes_search.ctp b/Nodes/View/Elements/admin/nodes_search.ctp index b79ea08436..d141dd1bc1 100644 --- a/Nodes/View/Elements/admin/nodes_search.ctp +++ b/Nodes/View/Elements/admin/nodes_search.ctp @@ -49,9 +49,8 @@ $url = isset($url) ? $url : array('action' => 'index'); endif; - echo $this->Form->submit(__d('croogo', 'Filter'), array( - 'button' => 'default', - 'div' => false, + echo $this->Form->input(__d('croogo', 'Filter'), array( + 'type' => 'submit', )); echo $this->Form->end(); ?>