mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
50 lines
814 B
PHP
50 lines
814 B
PHP
<?php
|
|
/**
|
|
* A step in multi-page user form
|
|
*
|
|
* @package userforms
|
|
*/
|
|
class EditableFormStep extends EditableFormField {
|
|
|
|
/**
|
|
* @config
|
|
* @var string
|
|
*/
|
|
private static $singular_name = 'Step';
|
|
|
|
/**
|
|
* @config
|
|
* @var string
|
|
*/
|
|
private static $plural_name = 'Steps';
|
|
|
|
/**
|
|
* @return FieldList
|
|
*/
|
|
public function getCMSFields() {
|
|
$fields = parent::getCMSFields();
|
|
|
|
$fields->removeByName('MergeField');
|
|
$fields->removeByName('StepID');
|
|
$fields->removeByName('Default');
|
|
$fields->removeByName('Validation');
|
|
$fields->removeByName('CustomRules');
|
|
|
|
return $fields;
|
|
}
|
|
|
|
/**
|
|
* @return FormField
|
|
*/
|
|
public function getFormField() {
|
|
return CompositeField::create()->setTitle($this->Title);
|
|
}
|
|
|
|
/**
|
|
* @return boolean
|
|
*/
|
|
public function showInReports() {
|
|
return false;
|
|
}
|
|
}
|