2007-07-19 12:40:28 +02:00
|
|
|
<?php
|
|
|
|
|
2008-01-08 07:37:50 +01:00
|
|
|
/**
|
2008-01-09 05:18:36 +01:00
|
|
|
* @package forms
|
|
|
|
* @subpackage fieldeditor
|
2008-01-08 07:37:50 +01:00
|
|
|
*/
|
|
|
|
|
2007-07-19 12:40:28 +02:00
|
|
|
/**
|
|
|
|
* Allows an editor to insert a generic heading into a field
|
2008-01-09 05:18:36 +01:00
|
|
|
* @package forms
|
|
|
|
* @subpackage fieldeditor
|
2007-07-19 12:40:28 +02: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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|