mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
46 lines
853 B
PHP
46 lines
853 B
PHP
<?php
|
|
|
|
/**
|
|
* Specifies that this ends a group of fields
|
|
*/
|
|
class EditableFieldGroupEnd extends EditableFormField {
|
|
|
|
/**
|
|
* Disable selection of group class
|
|
*
|
|
* @config
|
|
* @var bool
|
|
*/
|
|
private static $hidden = true;
|
|
|
|
public function getCMSFields() {
|
|
$fields = parent::getCMSFields();
|
|
$fields->removeByName(array('MergeField', 'Default', 'Validation', 'DisplayRules'));
|
|
return $fields;
|
|
}
|
|
|
|
public function getInlineClassnameField($column, $fieldClasses) {
|
|
return new LabelField(
|
|
$column,
|
|
_t('EditableFieldGroupEnd.FIELD_GROUP_END', 'Field Group (end)')
|
|
);
|
|
}
|
|
|
|
public function getInlineTitleField($column) {
|
|
return HiddenField::create($column);
|
|
}
|
|
|
|
public function getFormField() {
|
|
return null;
|
|
}
|
|
|
|
public function showInReports() {
|
|
return false;
|
|
}
|
|
|
|
public function canEdit($member = null) {
|
|
return false;
|
|
}
|
|
|
|
}
|