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 @@ ...@@ -376,13 +376,11 @@
<label for="apply-country" class="smart-label"> <label for="apply-country" class="smart-label">
<f:translate key="frontend.apply.country"/> <f:translate key="frontend.apply.country"/>
</label> </label>
<f:form.select <f:form.countrySelect
value="{f:if(condition: '{sysLanguageUid} == 0', then: 'Deutschland', else: 'Germany')}" value="DE"
property="country" id="apply-country" class="form-control" property="country"
options="{countries}" id="apply-country"
optionLabelField="{f:if(condition: '{sysLanguageUid} == 0', then: 'cnShortDe', else: 'cnShortEn')}" class="form-control" />
optionValueField="{f:if(condition: '{sysLanguageUid} == 0', then: 'cnShortDe', else: 'cnShortEn')}"
/>
<f:form.validationResults for="applyData.country"> <f:form.validationResults for="applyData.country">
<ul class="sg-jobs-validation-error parsley-errors-list filled"> <ul class="sg-jobs-validation-error parsley-errors-list filled">
<f:for each="{validationResults.errors}" as="error"> <f:for each="{validationResults.errors}" as="error">
...@@ -398,12 +396,11 @@ ...@@ -398,12 +396,11 @@
<label for="apply-nationality" class="smart-label"> <label for="apply-nationality" class="smart-label">
<f:translate key="frontend.apply.nationality"/> <f:translate key="frontend.apply.nationality"/>
</label> </label>
<f:form.select <f:form.countrySelect
value="{f:if(condition: '{sysLanguageUid} == 0', then: 'Deutschland', else: 'Germany')}" value="DE"
property="nationality" id="apply-nationality" class="form-control" options="{countries}" property="nationality"
optionLabelField="{f:if(condition: '{sysLanguageUid} == 0', then: 'cnShortDe', else: 'cnShortEn')}" id="apply-nationality"
optionValueField="{f:if(condition: '{sysLanguageUid} == 0', then: 'cnShortDe', else: 'cnShortEn')}" class="form-control" />
/>
<f:form.validationResults for="applyData.nationality"> <f:form.validationResults for="applyData.nationality">
<ul class="sg-jobs-validation-error parsley-errors-list filled"> <ul class="sg-jobs-validation-error parsley-errors-list filled">
<f:for each="{validationResults.errors}" as="error"> <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