Skip to content

Conversation

@SK2108
Copy link
Collaborator

@SK2108 SK2108 commented Dec 15, 2025

See issue #221.
This Pull Request adds select boxes.

Currently, songs can only be filtered by language:

  • English
  • German

@SK2108 SK2108 marked this pull request as ready for review December 23, 2025 17:08
@SK2108 SK2108 requested a review from nerdinand December 23, 2025 17:08
@SK2108 SK2108 self-assigned this Dec 23, 2025
Copy link
Owner

@nerdinand nerdinand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SK2108 So far so good! In the future you could also attach a screenshot to the PR so we can see what the changes look like without running your branch.

<% end %>

<%= form_with url: songs_path, method: :get do |form| %>
<%= form.select :language, ["English", "German"], { include_blank: true } %>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eventually, these values (["English", "German"]) will have to be loaded from the database (should include all the values that are in use currently.


<%= form_with url: songs_path, method: :get do |form| %>
<%= form.select :language, ["English", "German"], { include_blank: true } %>
<%= submit_tag 'Apply', class: 'btn btn-primary' %>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'Apply' will have to be replaced with an I18n call.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have now pushed this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants