Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
voting.typo3.org
extensions
election
Commits
4a030fad
Commit
4a030fad
authored
Mar 14, 2020
by
Marco Huber
Browse files
Empty select is not added to trustedProperties and throws an error, so don't render it
parent
ef969c41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Resources/Private/Partials/Model/Electorate/FormFields/Electors.html
View file @
4a030fad
...
...
@@ -4,8 +4,15 @@
<f:translate
key=
"model.electorate.field.electors"
>
Electors
</f:translate>
</label>
<div
class=
"form-control-wrap"
style=
"max-width: 480px"
>
<f:if
condition=
"{electors}"
>
<f:then>
<f:form.select
class=
"form-control"
property=
"electors"
options=
"{electors}"
size=
"3"
optionLabelField=
"fullName"
optionValueField=
"uid"
multiple=
"true"
/>
</f:then>
<f:else>
<f:translate
key=
"model.electorate.field.electors_empty"
>
No electors available.
</f:translate>
</f:else>
</f:if>
</div>
</div>
</fieldset>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment