diff --git a/app/views/scores/_score.html.erb b/app/views/scores/_score.html.erb index 5478f33..c4006ec 100644 --- a/app/views/scores/_score.html.erb +++ b/app/views/scores/_score.html.erb @@ -1,6 +1,6 @@ - <%= score.name %> + <%= highlight(score.name, params.dig(:q,:name_cont)) %> <%= score.grade %> diff --git a/app/views/scores/_scores.html.erb b/app/views/scores/_scores.html.erb index 0d14e72..7cc3b61 100644 --- a/app/views/scores/_scores.html.erb +++ b/app/views/scores/_scores.html.erb @@ -1,4 +1,13 @@ <%= turbo_frame_tag :scores do %> + + <%= search_form_for @q do |f| %> + + <%= f.label :name_cont %> + <%= f.search_field :name_cont %> + + <%= f.submit %> + <% end %> +