[TASK] EXT:form - add empty option to select elements
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Resources / Private / Frontend / Partials / MultiSelect.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 <f:if condition="{element.properties.prependOptionLabel}">
5 <f:then>
6 <f:form.select
7 property="{element.identifier}"
8 id="{element.uniqueIdentifier}"
9 class="{element.properties.elementClassAttribute} form-control"
10 options="{formvh:translateElementProperty(element: element, property: 'options')}"
11 multiple="multiple"
12 errorClass="{element.properties.elementErrorClassAttribute}"
13 additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
14 prependOptionLabel="{formvh:translateElementProperty(element: element, property: 'prependOptionLabel')}"
15 prependOptionValue="{formvh:translateElementProperty(element: element, property: 'prependOptionValue')}"
16 />
17 </f:then>
18 <f:else>
19 <f:form.select
20 property="{element.identifier}"
21 id="{element.uniqueIdentifier}"
22 class="{element.properties.elementClassAttribute} form-control"
23 options="{formvh:translateElementProperty(element: element, property: 'options')}"
24 multiple="multiple"
25 errorClass="{element.properties.elementErrorClassAttribute}"
26 additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
27 />
28 </f:else>
29 </f:if>
30
31 </f:render>
32 </formvh:renderRenderable>
33 </html>