mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
add warning about publicly accessible files
This commit is contained in:
parent
ac731067a8
commit
cfa1f8345a
@ -31,6 +31,11 @@ class EditableFileField extends EditableFormField {
|
||||
)
|
||||
);
|
||||
|
||||
$fields->addFieldToTab("Root.Main", new LiteralField("FileUploadWarning",
|
||||
"<p class=\"message notice\">" . _t("UserDefinedForm.FileUploadWarning",
|
||||
"Files uploaded through this field could be publicly accessible if the exact URL is known")
|
||||
. "</p>"), "Type");
|
||||
|
||||
return $fields;
|
||||
}
|
||||
|
||||
|
@ -193,7 +193,7 @@ class EditableFormField extends DataObject {
|
||||
$fields->addFieldToTab('Root.Main',
|
||||
TextField::create(
|
||||
'ExtraClass',
|
||||
_t('EditableFormField.EXTRACLASS_Title', 'Extra CSS Classes')
|
||||
_t('EditableFormField.EXTRACLASS_Title', 'Extra CSS classes')
|
||||
)->setDescription(_t(
|
||||
'EditableFormField.EXTRACLASS_MULTIPLE',
|
||||
'Separate each CSS class with a single space'
|
||||
|
Loading…
Reference in New Issue
Block a user