Commit d803eaea authored by Stefan Busemann's avatar Stefan Busemann

Merge branch '10-creating-an-electorate-with-no-existing-electors-throws-an-error' into 'master'

Resolve "Creating an Electorate with no existing Electors throws an error"

Closes #10

See merge request t3o/election!12
parents ef969c41 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>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment