mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
MINOR: removed Text Length as width of the fields are overridden by css styles
This commit is contained in:
parent
05175d2a17
commit
16307e5562
@ -18,13 +18,11 @@ class EditableTextField extends EditableFormField {
|
||||
// eventually replace hard-coded "Fields"?
|
||||
$baseName = "Fields[$this->ID]";
|
||||
|
||||
$size = ($this->getSetting('Size')) ? $this->getSetting('Size') : '32';
|
||||
$minLength = ($this->getSetting('MinLength')) ? $this->getSetting('MinLength') : '0';
|
||||
$maxLength = ($this->getSetting('MaxLength')) ? $this->getSetting('MaxLength') : '32';
|
||||
$minLength = ($this->getSetting('MinLength')) ? $this->getSetting('MinLength') : '';
|
||||
$maxLength = ($this->getSetting('MaxLength')) ? $this->getSetting('MaxLength') : '';
|
||||
$rows = ($this->getSetting('Rows')) ? $this->getSetting('Rows') : '1';
|
||||
|
||||
$extraFields = new FieldSet(
|
||||
new TextField($baseName . "[CustomSettings][Size]", _t('EditableTextField.TEXTBOXLENGTH', 'Length of text box'), $size),
|
||||
new FieldGroup(_t('EditableTextField.TEXTLENGTH', 'Text length'),
|
||||
new TextField($baseName . "[CustomSettings][MinLength]", "", $minLength),
|
||||
new TextField($baseName . "[CustomSettings][MaxLength]", " - ", $maxLength)
|
||||
|
Loading…
Reference in New Issue
Block a user