function ExtraOptions() { $baseName = "Fields[{$this->ID}]"; $extraFields = new FieldSet(new CheckboxField($baseName . "[SendCopy]", _t('EditableEmailField.SENDCOPY', 'Send copy of submission to this address'), $this->SendCopy)); foreach (parent::ExtraOptions() as $extraField) { $extraFields->push($extraField); } if ($this->readonly) { $extraFields = $extraFields->makeReadonly(); } return $extraFields; }
function ExtraOptions() { // eventually replace hard-coded "Fields"? $baseName = "Fields[{$this->ID}]"; $extraFields = new FieldSet(new TextField($baseName . "[Size]", _t('EditableTextField.TEXTBOXLENGTH', 'Length of text box'), (string) $this->Size), new FieldGroup(_t('EditableTextField.TEXTLENGTH', 'Text length'), new TextField($baseName . "[MinLength]", "", (string) $this->MinLength), new TextField($baseName . "[MaxLength]", " - ", (string) $this->MaxLength)), new TextField($baseName . "[Rows]", _t('EditableTextField.NUMBERROWS', 'Number of rows'), (string) $this->Rows)); foreach (parent::ExtraOptions() as $extraField) { $extraFields->push($extraField); } if ($this->readonly) { $extraFields = $extraFields->makeReadonly(); } return $extraFields; }
function ExtraOptions() { return parent::ExtraOptions(); }