From fdeedf23ee8fb9d9eec45925f044252be153c7ff Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Mon, 7 Dec 2020 15:08:55 +0100 Subject: [PATCH] Improved: Adds the HTML accept Attribute in form widgets and Freemaker templates (OFBIZ-12049) As explained at https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept this is only an help for the users (ie not a security feature), but an appreciable one easy to implement. Here we start with website/WebSiteCMSContent.ftl Also add some missing file extensions --- .../template/website/WebSiteCMSContent.ftl | 19 +++++++++++++++---- .../datamodel/data/seed/ContentSeedData.xml | 5 +++++ 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/applications/content/template/website/WebSiteCMSContent.ftl b/applications/content/template/website/WebSiteCMSContent.ftl index 67b3df94c7..7a81a5c0a6 100644 --- a/applications/content/template/website/WebSiteCMSContent.ftl +++ b/applications/content/template/website/WebSiteCMSContent.ftl @@ -333,7 +333,18 @@ ${uiLabelMap.CommonUpload} - + <#if dataResourceTypeId == 'IMAGE_OBJECT'> + + + <#if dataResourceTypeId == 'VIDEO_OBJECT'> + + + <#if dataResourceTypeId == 'AUDIO_OBJECT'> + + + <#if dataResourceTypeId == 'OTHER_OBJECT' || dataResourceTypeId == 'LOCAL_FILE' || dataResourceTypeId == 'OFBIZ_FILE' > + + <#elseif (dataResourceTypeId == 'URL_RESOURCE')> @@ -354,9 +365,9 @@
-
@@ -370,4 +381,4 @@ - \ No newline at end of file + diff --git a/applications/datamodel/data/seed/ContentSeedData.xml b/applications/datamodel/data/seed/ContentSeedData.xml index 54472c1859..aae7cb30bc 100644 --- a/applications/datamodel/data/seed/ContentSeedData.xml +++ b/applications/datamodel/data/seed/ContentSeedData.xml @@ -509,8 +509,13 @@ under the License. + + + + +