public function submit($submit = 'Submit', $reset = '')
    {
        // never use name="submit" per: http://jqueryvalidation.org/reference/#developing-and-debugging-a-form
        $buttons = func_get_args();
        if (substr($submit, 0, 1) != '<') {
            $buttons[0] = $this->page->tag('button', array(
                'type' => 'submit',
                'class' => array('btn', 'btn-primary', str_replace('input', 'btn', $this->input)),
                'data-loading-text' => 'Submitting...',
            ), $submit);
        }
        if (isset($buttons[1]) && substr($reset, 0, 1) != '<') {
            $buttons[1] = $this->page->tag('button', array(
                'type' => 'reset',
                'class' => array('btn', 'btn-default', str_replace('input', 'btn', $this->input)),
            ), $reset);
        }

        return $this->field('', implode(' ', $buttons));
    }
public function submit($submit = 'Submit', $reset = '')
    {
        // never use name="submit" per: http://jqueryvalidation.org/reference/#developing-and-debugging-a-form
        $buttons = func_get_args();
        if (substr($submit, 0, 1) != '<') {
            $buttons[0] = $this->page->tag('button', array(
                'type' => 'submit',
                'class' => array('btn', 'btn-primary', str_replace('input', 'btn', $this->input)),
                'data-loading-text' => 'Submitting...',
            ), $submit);
        }
        if (isset($buttons[1]) && substr($reset, 0, 1) != '<') {
            $buttons[1] = $this->page->tag('button', array(
                'type' => 'reset',
                'class' => array('btn', 'btn-default', str_replace('input', 'btn', $this->input)),
            ), $reset);
        }

        return $this->field('', implode(' ', $buttons));
    }
public function submit ( $ submit = 'Submit' , $ reset = '' ) { // never use name="submit" per: http://jqueryvalidation.org/reference/#developing-and-debugging-a-form $ buttons = func_get_args ( ) ; if ( substr ( $ submit , 0 , 1 ) != '<' ) { $ buttons [ 0 ] = $ this -> page -> tag ( 'button' , array ( 'type' => 'submit' , 'class' => array ( 'btn' , 'btn-primary' , str_replace ( 'input' , 'btn' , $ this -> input ) ) , 'data-loading-text' => 'Submitting...' , ) , $ submit ) ; } if ( isset ( $ buttons [ 1 ] ) && substr ( $ reset , 0 , 1 ) != '<' ) { $ buttons [ 1 ] = $ this -> page -> tag ( 'button' , array ( 'type' => 'reset' , 'class' => array ( 'btn' , 'btn-default' , str_replace ( 'input' , 'btn' , $ this -> input ) ) , ) , $ reset ) ; } return $ this -> field ( '' , implode ( ' ' , $ buttons ) ) ; }
Quickly adds a submit button to your form.

@param string $submit What you would like the submit button to say.  If it starts with a '**<**', then we assume you have spelled it all out for us.
@param string $reset  This will add a reset button if you give it a value, and if it starts with a '**<**' then it can be whatever you want it to be.  You can keep adding args until you run out of ideas for buttons to include.

@return string A ``<div class="form-group">...</div>`` html string with buttons.

@example

```php
echo $form->submit();
```
Quickly adds a submit button to your form .