[BUGFIX] Fix dynamic variable name parts in Fluid
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Resources / Private / Templates / ImageManipulation / ImageManipulationElement.html
1 <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
2 xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers">
3 <f:layout name="ImageManipulation" />
4
5 <f:section name="Main">
6 <f:if condition="{isAllowedFileExtension}">
7 <f:then>
8 <f:if condition="{config.readOnly}">
9 <f:else>
10 <div class="form-control-wrap">
11 <input type="hidden" id="{formEngine.field.id}"
12 name="{formEngine.field.name}"
13 value="{formEngine.field.value}"
14 data-formengine-validation-rules="{formEngine.validation}"/>
15 <button class="btn btn-default t3js-image-manipulation-trigger"
16 data-url="{wizardUri}"
17 data-preview-url="{previewUrl}"
18 data-severity="notice"
19 data-modal-title="{f:render(partial: 'ModalTitle', section:'Main', arguments: _all)}"
20 data-image-uid="{image.uid}"
21 data-crop-variants="{config.cropVariants -> f:format.json()}"
22 data-file-field="{config.file_field}"
23 data-field="{formEngine.field.id}">
24 <span class="t3-icon fa fa-crop"></span>
25 <f:translate id="LLL:EXT:lang/Resources/Private/Language/locallang_wizards.xlf:imwizard.open-editor"/>
26 </button>
27 </div>
28 </f:else>
29 </f:if>
30 <div class="row media-gallery__list">
31 <f:for each="{config.cropVariants}" as="cropVariant">
32 <div class="col-xs-6 col-sm-4 col-md-3 media-gallery__item">
33 <p>
34 <b><f:translate id="{cropVariant.title}" default="{cropVariant.title}" /></b><br/>
35 <f:translate id="LLL:EXT:lang/Resources/Private/Language/locallang_wizards.xlf:imwizard.aspect-ratio"/>: <f:translate id="{cropVariant.allowedAspectRatios.{cropVariant.selectedRatio}.title}" default="{cropVariant.allowedAspectRatios.{cropVariant.selectedRatio}.title}" />
36 </p>
37 <div class="t3js-image-manipulation-preview media-object"
38 data-preview-height="150"
39 data-crop-variant-id="{cropVariant.id}">
40 <f:image image="{image}" crop="{formEngine.field.value}"
41 cropVariant="{cropVariant.id}"
42 maxHeight="150"
43 class="thumbnail thumbnail-status"
44 additionalAttributes="{data-crop-variant: '{cropVariant -> f:format.json()}', data-crop-variant-id: cropVariant.id}"/>
45 </div>
46 </div>
47 </f:for>
48 </div>
49 </f:then>
50 <f:else>
51 <div class="media-body">
52 <p>
53 <em>
54 <f:translate id="LLL:EXT:lang/Resources/Private/Language/locallang_wizards.xlf:imwizard.supported-types-message" /><br/>
55 {config.allowedExtensions -> f:format.case(mode: 'upper')}
56 </em>
57 </p>
58 </div>
59 </f:else>
60 </f:if>
61 </f:section>
62 </html>