diff --git a/app/views/authors/index.html.erb b/app/views/authors/index.html.erb index 33039f8b..62b5fd5e 100644 --- a/app/views/authors/index.html.erb +++ b/app/views/authors/index.html.erb @@ -4,22 +4,12 @@ <% content_for :content do %> <%= render SearchTermComponent.new(search_term: params[:search_term]) %>
- +

All

- - - <%= form_tag(authors_path, method: "get", id: 'search_form', remote: true) do %> -
- - <%= text_field_tag(:search_term, nil, placeholder: 'Search name', class: 'form-control', value: html_escape(params[:search_term])) %> - - - - <%= link_to authors_path, type: :submit, class: "btn btn-warning", id: "clear-search-btn", title: "Reset", style: "margin-left: 10px; color: black" do %> X <% end %> - -
- <% end %> -
+
+
+ <%= render SearchComponent.new(path: authors_path, search_term: params[:search_term]) %> +
<%= render partial: "authors/list", locals: { list: @authors } %> <% end %> diff --git a/app/views/podcasts/index.html.erb b/app/views/podcasts/index.html.erb index bd7ce257..bbeb343d 100644 --- a/app/views/podcasts/index.html.erb +++ b/app/views/podcasts/index.html.erb @@ -4,22 +4,12 @@ <% content_for :content do %> <%= render SearchTermComponent.new(search_term: params[:search_term]) %>
- +

All Podcasts

- - - <%= form_tag(podcasts_path, method: "get", id: 'search_form', remote: true) do %> -
- - <%= text_field_tag(:search_term, nil, placeholder: 'Search name', class: 'form-control', value: html_escape(params[:search_term])) %> - - - - <%= link_to podcasts_path, type: :submit, class: "btn btn-warning", id: "clear-search-btn", title: "Reset", style: "margin-left: 10px; color: black" do %> X <% end %> - -
- <% end %> -
+
+
+ <%= render SearchComponent.new(path: podcasts_path, search_term: params[:search_term]) %> +
<%= render partial: "podcasts/list", locals: { list: @podcasts } %> <% end %>