Skip to content

Commit

Permalink
Avoid using submit() and use input() for easier theming
Browse files Browse the repository at this point in the history
This enables theme helpers to apply the appropriate style accordingly
  • Loading branch information
rchavik committed Nov 20, 2014
1 parent 57b259d commit 0903eb0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Croogo/View/Elements/admin/search.ctp
Expand Up @@ -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();
?>
</div>
Expand Down
5 changes: 2 additions & 3 deletions FileManager/View/Elements/admin/attachments_search.ctp
Expand Up @@ -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();
?>
Expand Down
5 changes: 2 additions & 3 deletions Nodes/View/Elements/admin/nodes_search.ctp
Expand Up @@ -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();
?>
Expand Down

0 comments on commit 0903eb0

Please sign in to comment.