#--
# The main macro is addFileInputAndfilesBox. The macro addRequiredJsFiles is used to include required JavaScript and CSS files.
# Others macros are private.
-->
<#--
# Add required CSS and JavaScript files to use asynchronous uploads.
# This is only needed in Back Office or in FO page not served by the portal service.
-->
<#macro addRequiredJsFiles>
#macro>
<#macro addFileInput fieldLabel fieldName handler cssClass multiple=false>
#macro>
<#-- Macro to add a file input for asynchronous and synchronous uploads.
# @param fieldName The name of the field.
# @param handler The associated handler service.
# @param listUploadedFiles The list of files that have already been uploaded. Files must have a 'title' or a 'name' attribute.
# @param inputCssClass The CSS class to add to the input if any. Default value is an empty string.
# @param multiple True to use an HTML5 multiple file input, false otherwise. Default value if false.
-->
<#macro addFileInputAndfilesBox fieldLabel fieldName handler listUploadedFiles inputCssClass='' multiple=false>
<@addFileInput fieldLabel=fieldLabel fieldName=fieldName handler=handler cssClass=inputCssClass multiple=multiple />
<@addUploadedFilesBox fieldName=fieldName handler=handler listFiles=listUploadedFiles />
#macro>
<#-- Macro to add a file image input for asynchronous and synchronous uploads.
# @param fieldName The name of the field.
# @param handler The associated handler service.
# @param listUploadedFiles The list of files that have already been uploaded. Files must have a 'title' or a 'name' attribute.
# @param inputCssClass The CSS class to add to the input if any. Default value is an empty string.
# @param multiple True to use an HTML5 multiple file input, false otherwise. Default value if false.
-->
<#macro addFileInputImageAndfilesBox fieldName handler listUploadedFiles inputCssClass='' multiple=false>
<@addFileInputImage fieldName=fieldName handler=handler cssClass=inputCssClass multiple=multiple />
<@addUploadedFilesBox fieldName=fieldName handler=handler listFiles=listUploadedFiles />
#macro>