[BUGFIX] EXT:form - respect class for file upload field
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Resources / Private / Frontend / Partials / FileUpload.html
1 <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers" data-namespace-typo3-fluid="true">
2 <formvh:renderRenderable renderable="{element}">
3 <f:render partial="Field/Field" arguments="{element: element}" contentAs="elementContent">
4 <formvh:form.uploadedResource
5 property="{element.identifier}"
6 as="resource"
7 id="{element.uniqueIdentifier}"
8 class="{element.properties.elementClassAttribute}"
9 additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
10 accept="{element.properties.allowedMimeTypes}"
11 >
12 <f:if condition="{resource}">
13 <div id="{element.uniqueIdentifier}-preview">
14 {resource.originalResource.originalFile.name}
15 </div>
16 </f:if>
17 </formvh:form.uploadedResource>
18 </f:render>
19 </formvh:renderRenderable>
20 </html>