reverted "BUGFIX: overloaded FieldHolder() to avoid DefaultFieldHolder.ss usage"

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@43563 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-10-18 01:44:37 +00:00
parent 3bb267bd83
commit 0da5773278

View File

@ -28,17 +28,11 @@ class FormAction extends FormField {
function actionName() { function actionName() {
return substr($this->name,7); return substr($this->name,7);
} }
function extraData() { function extraData() {
return $this->extraData; return $this->extraData;
} }
/**
* Avoid rendering with DefaultFieldHolder (renders <label>-tags etc.)
*/
function FieldHolder() {
return $this->Field();
}
function Field() { function Field() {
$titleAttr = $this->description ? "title=\"" . Convert::raw2att($this->description) . "\"" : ''; $titleAttr = $this->description ? "title=\"" . Convert::raw2att($this->description) . "\"" : '';
return "<input class=\"action" . $this->extraClass() . "\" id=\"" . $this->id() . "\" type=\"submit\" name=\"{$this->name}\" value=\"" . $this->attrTitle() . "\" $titleAttr />"; return "<input class=\"action" . $this->extraClass() . "\" id=\"" . $this->id() . "\" type=\"submit\" name=\"{$this->name}\" value=\"" . $this->attrTitle() . "\" $titleAttr />";