2007-07-19 10:40:28 +00:00
|
|
|
<?php
|
|
|
|
|
2008-01-08 06:37:50 +00:00
|
|
|
/**
|
2008-01-09 04:18:36 +00:00
|
|
|
* @package forms
|
|
|
|
* @subpackage fieldeditor
|
2008-01-08 06:37:50 +00:00
|
|
|
*/
|
|
|
|
|
2007-07-19 10:40:28 +00:00
|
|
|
/**
|
|
|
|
* Allows an editor to insert a generic heading into a field
|
2008-01-09 04:18:36 +00:00
|
|
|
* @package forms
|
|
|
|
* @subpackage fieldeditor
|
2007-07-19 10:40:28 +00:00
|
|
|
*/
|
|
|
|
class EditableFormHeading extends EditableFormField {
|
|
|
|
static $singular_name = 'Form heading';
|
|
|
|
static $plural_name = 'Form headings';
|
|
|
|
|
|
|
|
function getFormField() {
|
|
|
|
// TODO customise this
|
|
|
|
return new LabelField( $this->Title, 'FormHeading' );
|
|
|
|
// return '<h3>' . $this->Title . '</h3>';
|
|
|
|
}
|
|
|
|
|
|
|
|
function showInReports() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|