[TASK] Improve styling of infobox in ImageManipulationElement
[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} && {image.properties.width}">
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-button-preview-text="{f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:imwizard.preview')}"
23 data-button-dismiss-text="{f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:imwizard.cancel')}"
24 data-button-save-text="{f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:imwizard.accept')}"
25 data-file-field="{config.file_field}"
26 data-field="{formEngine.field.id}">
27 <span class="t3-icon fa fa-crop"></span>
28 <f:translate id="LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:imwizard.open-editor"/>
29 </button>
30 </div>
31 </f:else>
32 </f:if>
33 <div class="row media-gallery__list">
34 <f:for each="{config.cropVariants}" as="cropVariant">
35 <div class="col-xs-6 col-sm-4 col-md-3 media-gallery__item">
36 <p>
37 <b><f:translate id="{cropVariant.title}" default="{cropVariant.title}" /></b><br/>
38 <f:translate id="LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:imwizard.aspect-ratio"/>: <span class="t3js-image-manipulation-selected-ratio" data-crop-variant-id="{cropVariant.id}"><f:translate id="{cropVariant.allowedAspectRatios.{cropVariant.selectedRatio}.title}" default="{cropVariant.allowedAspectRatios.{cropVariant.selectedRatio}.title}" /></span>
39 </p>
40 <div class="t3js-image-manipulation-preview media-object"
41 data-preview-height="150"
42 data-crop-variant-id="{cropVariant.id}">
43 <f:image image="{image}" crop="{formEngine.field.value}"
44 cropVariant="{cropVariant.id}"
45 maxHeight="150"
46 class="thumbnail thumbnail-status"
47 additionalAttributes="{data-crop-variant: '{cropVariant -> f:format.json()}', data-crop-variant-id: cropVariant.id}"/>
48 </div>
49 </div>
50 </f:for>
51 </div>
52 </f:then>
53 <f:else>
54 <div class="media-body">
55 <f:if condition="{image.properties.width}">
56 <f:then>
57 <p>
58 <em>
59 <f:translate id="LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:imwizard.supported-types-message" /><br/>
60 {config.allowedExtensions -> f:format.case(mode: 'upper')}
61 </em>
62 </p>
63 </f:then>
64 <f:else>
65 <div class="alert alert-info">
66 <h4>
67 <f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:imwizard.no-image-dimensions"/>
68 </h4>
69 <p>
70 <f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:imwizard.no-image-dimensions-message"/>
71 </p>
72 </div>
73 </f:else>
74 </f:if>
75 </div>
76 </f:else>
77 </f:if>
78 </f:section>
79 </html>