|
|
@@ -56,14 +56,17 @@ class Zend_View_Helper_FormSubmit extends Zend_View_Helper_FormElement
|
|
|
public function formSubmit($name, $value = null, $attribs = null)
|
|
|
{
|
|
|
$info = $this->_getInfo($name, $value, $attribs);
|
|
|
- extract($info); // name, value, attribs, options, listsep, disable
|
|
|
-
|
|
|
+ extract($info); // name, value, attribs, options, listsep, disable, id
|
|
|
// check if disabled
|
|
|
$disabled = '';
|
|
|
if ($disable) {
|
|
|
$disabled = ' disabled="disabled"';
|
|
|
}
|
|
|
|
|
|
+ if ($id) {
|
|
|
+ $id = ' id="' . $this->view->escape($id) . '"';
|
|
|
+ }
|
|
|
+
|
|
|
// XHTML or HTML end tag?
|
|
|
$endTag = ' />';
|
|
|
if (($this->view instanceof Zend_View_Abstract) && !$this->view->doctype()->isXhtml()) {
|
|
|
@@ -73,7 +76,7 @@ class Zend_View_Helper_FormSubmit extends Zend_View_Helper_FormElement
|
|
|
// Render the button.
|
|
|
$xhtml = '<input type="submit"'
|
|
|
. ' name="' . $this->view->escape($name) . '"'
|
|
|
- . ' id="' . $this->view->escape($id) . '"'
|
|
|
+ . $id
|
|
|
. ' value="' . $this->view->escape($value) . '"'
|
|
|
. $disabled
|
|
|
. $this->_htmlAttribs($attribs)
|