Skip to content
Snippets Groups Projects
Verified Commit f7492909 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Change country select to the core select field

parent 68fbf27e
No related branches found
No related tags found
1 merge request!48[TASK] Require TYPO3 12
......@@ -376,13 +376,11 @@
<label for="apply-country" class="smart-label">
<f:translate key="frontend.apply.country"/>
</label>
<f:form.select
value="{f:if(condition: '{sysLanguageUid} == 0', then: 'Deutschland', else: 'Germany')}"
property="country" id="apply-country" class="form-control"
options="{countries}"
optionLabelField="{f:if(condition: '{sysLanguageUid} == 0', then: 'cnShortDe', else: 'cnShortEn')}"
optionValueField="{f:if(condition: '{sysLanguageUid} == 0', then: 'cnShortDe', else: 'cnShortEn')}"
/>
<f:form.countrySelect
value="DE"
property="country"
id="apply-country"
class="form-control" />
<f:form.validationResults for="applyData.country">
<ul class="sg-jobs-validation-error parsley-errors-list filled">
<f:for each="{validationResults.errors}" as="error">
......@@ -398,12 +396,11 @@
<label for="apply-nationality" class="smart-label">
<f:translate key="frontend.apply.nationality"/>
</label>
<f:form.select
value="{f:if(condition: '{sysLanguageUid} == 0', then: 'Deutschland', else: 'Germany')}"
property="nationality" id="apply-nationality" class="form-control" options="{countries}"
optionLabelField="{f:if(condition: '{sysLanguageUid} == 0', then: 'cnShortDe', else: 'cnShortEn')}"
optionValueField="{f:if(condition: '{sysLanguageUid} == 0', then: 'cnShortDe', else: 'cnShortEn')}"
/>
<f:form.countrySelect
value="DE"
property="nationality"
id="apply-nationality"
class="form-control" />
<f:form.validationResults for="applyData.nationality">
<ul class="sg-jobs-validation-error parsley-errors-list filled">
<f:for each="{validationResults.errors}" as="error">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment