diff -r 5b37998e522e -r 162c1de6545a web/lib/Zend/View/Helper/FormReset.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/lib/Zend/View/Helper/FormReset.php Fri Mar 11 15:05:35 2011 +0100 @@ -0,0 +1,88 @@ +_getInfo($name, $value, $attribs); + extract($info); // name, value, attribs, options, listsep, disable + + // check if disabled + $disabled = ''; + if ($disable) { + $disabled = ' disabled="disabled"'; + } + + // get closing tag + $endTag = '>'; + if ($this->view->doctype()->isXhtml()) { + $endTag = ' />'; + } + + // Render button + $xhtml = 'view->escape($value) . '"'; + } + + // add attributes, close, and return + $xhtml .= $this->_htmlAttribs($attribs) . $endTag; + return $xhtml; + } +}