diff --git a/library/Twitter/Bootstrap3/Form.php b/library/Twitter/Bootstrap3/Form.php index ef2662d..fe28bc0 100755 --- a/library/Twitter/Bootstrap3/Form.php +++ b/library/Twitter/Bootstrap3/Form.php @@ -434,6 +434,10 @@ public function addElement($element, $name = null, $options = null) // Load default decorators if ((null === $options) || !is_array($options)) { $options = array(); + //Class is maybe not properly transfered to this element. We'll add class if it exists here. + if($element->class){ + $options['class'] = $element->class; + } } if (!array_key_exists('decorators', $options)) { diff --git a/library/Twitter/Bootstrap3/View/Helper/FormReset.php b/library/Twitter/Bootstrap3/View/Helper/FormReset.php index 36336ff..a9ad99c 100755 --- a/library/Twitter/Bootstrap3/View/Helper/FormReset.php +++ b/library/Twitter/Bootstrap3/View/Helper/FormReset.php @@ -32,7 +32,7 @@ class Twitter_Bootstrap3_View_Helper_FormReset extends Zend_View_Helper_FormRese * * @return string The element XHTML. */ - public function formReset($name, $value = null, $attribs = null) + public function formReset($name = '', $value = 'Reset', $attribs = NULL) { if (isset($attribs['class'])) { $attribs['class'] = 'btn ' . $attribs['class'];