1
0
mirror of https://github.com/silverstripe/silverstripe-userforms.git synced 2024-10-22 17:05:42 +02:00

BUGFIX Fixed usage of HeaderField arguments in EditableFormHeading

This commit is contained in:
Ingo Schommer 2008-11-01 15:32:36 +00:00
parent b57bc7e58c
commit 87b458bba8

View File

@ -10,8 +10,9 @@ class EditableFormHeading extends EditableFormField {
function getFormField() { function getFormField() {
// TODO customise this // TODO customise this
return new LabelField( $this->Title, 'FormHeading' ); $labelField = new LabelField('FormHeadingLabel',$this->Title);
// return '<h3>' . $this->Title . '</h3>'; $labelField->addExtraClass('FormHeading');
return $labelField;
} }
function showInReports() { function showInReports() {