buttons part of zend form.

This commit is contained in:
naomiaro 2011-01-03 15:15:00 -05:00
parent 58a25186bb
commit f6a56c01a9
2 changed files with 10 additions and 2 deletions

View file

@ -10,12 +10,21 @@ class Application_Form_AdvancedSearch extends Zend_Form
));
$this->getElement('search_next_id')->removeDecorator('Label')->removeDecorator('HtmlTag');
// Add the add button
$this->addElement('button', 'search_add', array(
'ignore' => true,
'label' => 'Add',
'order' => '-2'
));
$this->getElement('search_add')->removeDecorator('DtDdWrapper');
// Add the submit button
$this->addElement('submit', 'submit', array(
$this->addElement('submit', 'search_submit', array(
'ignore' => true,
'label' => 'Submit',
'order' => '-1'
));
$this->getElement('search_submit')->removeDecorator('DtDdWrapper');
}
public function preValidation(array $data) {

View file

@ -1,4 +1,3 @@
<span id="search_add">Add</span>
<?php
$this->form->setAction($this->url());