aa98b9aa129434c4472b0a29d2752aab876d3cd1
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Resources / Private / Frontend / Partials / ImageUpload.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="image"
7 id="{element.uniqueIdentifier}"
8 additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
9 accept="{element.properties.allowedMimeTypes}"
10 >
11 <f:if condition="{image}">
12 <div id="{element.uniqueIdentifier}-preview">
13 <a href="{f:uri.image(image: image, maxWidth: element.properties.imageLinkMaxWidth)}" class="{element.properties.elementClassAttribute}">
14 <f:image image="{image}" maxWidth="{element.properties.imageMaxWidth}" maxHeight="{element.properties.imageMaxHeight}" alt="{formvh:translateElementProperty(element: element, property: 'altText')}" />
15 </a>
16 </div>
17 </f:if>
18 </formvh:form.uploadedResource>
19 </f:render>
20 </formvh:renderRenderable>
21 </html>