Translation Table
-
diff --git a/app/views/entries/_search_form.html.erb b/app/views/entries/_search_form.html.erb
new file mode 100644
index 0000000..62731c8
--- /dev/null
+++ b/app/views/entries/_search_form.html.erb
@@ -0,0 +1,35 @@
+ <%= form_with url: entries_path,
+ method: :get,
+ data: { turbo_stream: true } do |form| %>
+
+ <%= render "entries/search_hidden_fields" %>
+
+
+
+
+
+
+ <%= form.text_field :q,
+ value: @query,
+ placeholder: "Search words, phrases, or biblical terms...",
+ class: "block w-full pl-11 pr-10 mt-2 mb-2 py-4 bg-white border border-slate-200 rounded-2xl shadow-sm focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 transition",
+ oninput: "const clearBtn=this.form.querySelector('[data-clear-search]'); if(clearBtn){clearBtn.classList.toggle('hidden', this.value.length===0);} this.form.requestSubmit();" %>
+
+
+ <% end %>
diff --git a/app/views/entries/_search_hidden_fields.html.erb b/app/views/entries/_search_hidden_fields.html.erb
new file mode 100644
index 0000000..c1dba40
--- /dev/null
+++ b/app/views/entries/_search_hidden_fields.html.erb
@@ -0,0 +1,3 @@
+<%= hidden_field_tag :language, @language_code if @language_code.present? %>
+<%= hidden_field_tag :category, @category if @category.present? %>
+<%= hidden_field_tag :starts_with, @starts_with if @starts_with.present? %>
diff --git a/app/views/entries/index.html.erb b/app/views/entries/index.html.erb
index 2a18105..969a679 100644
--- a/app/views/entries/index.html.erb
+++ b/app/views/entries/index.html.erb
@@ -21,34 +21,11 @@