mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-09-08 10:41:30 +02:00
22 lines
497 B
PHP
Executable File
22 lines
497 B
PHP
Executable File
<?php
|
|
/**
|
|
* Allows an editor to insert a generic heading into a field
|
|
* @package forms
|
|
* @subpackage fieldeditor
|
|
*/
|
|
class EditableFormHeading extends EditableFormField {
|
|
static $singular_name = 'Form heading';
|
|
static $plural_name = 'Form headings';
|
|
|
|
function getFormField() {
|
|
// TODO customise this
|
|
$labelField = new LabelField('FormHeadingLabel',$this->Title);
|
|
$labelField->addExtraClass('FormHeading');
|
|
return $labelField;
|
|
}
|
|
|
|
function showInReports() {
|
|
return false;
|
|
}
|
|
}
|
|
?>
|