Skip to content

Commit

Permalink
Update app/views/qae_form/_sub_fields_question.html.slim
Browse files Browse the repository at this point in the history
Co-authored-by: Vasili Kachalko <[email protected]>
  • Loading branch information
TheDancingClown and dreamfall authored May 22, 2024
1 parent 8daa0e4 commit 4b576a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/qae_form/_sub_fields_question.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ div role="group" id="#{question.key}"
id=question.input_name(suffix: sub_field_key)
aria-describedby=(@form_answer.validator_errors && @form_answer.validator_errors[question.hash_key] ? "error_for_#{sub_field_key}" : nil )
]
option value='' disabled=true selected=(!User::POSSIBLE_TITLES.include?(question.input_value(suffix: sub_field_key)))
option value='' disabled=true selected=(User::POSSIBLE_TITLES.exclude?(question.input_value(suffix: sub_field_key)))
| Select a title
- User::POSSIBLE_TITLES.each do |option|
option value="#{option}" selected=((question.input_value(suffix: sub_field_key)).to_s == option.to_s)
Expand Down

0 comments on commit 4b576a0

Please sign in to comment.