<%= form_for @search, as: :bookmark_search, url: search_bookmarks_path, html: { class: "search", method: :get } do |f| %>
<%= ts("Bookmarked Item") %>

<%= ts("Bookmarked Item") %>

<%= f.label :bookmarkable_query, ts("Any field on work") %> <%= link_to_help "bookmark-search-text-help" %>
<%= f.text_field :bookmarkable_query %>
<%= f.label :other_tag_names, ts("Work tags") %> <%= link_to_help "bookmark-search-work-tag" %>
<%= f.text_field :other_tag_names, autocomplete_options("tag") %>
<%= f.label :bookmarkable_type, ts("Type") %> <%= link_to_help "bookmark-search-type-help" %>
<%= f.select :bookmarkable_type, options_for_select(["", "Work", "Series", "External Work"], @search.bookmarkable_type) %>
<%= f.label :language_id, ts("Work language") %>
<%= f.select(:language_id, language_options_for_select(@languages, "short"), include_blank: true) %>
<%= f.label :bookmarkable_date, ts("Date updated") %> <%= link_to_help "bookmark-search-date-updated-help" %>
<%= f.text_field :bookmarkable_date %>
<%= ts("Bookmark") %>

<%= ts("Bookmark") %>

<%= f.label :bookmark_query, ts("Any field on bookmark") %> <%= link_to_help "bookmark-search-text-help" %>
<%= f.text_field :bookmark_query %>
<%= f.label :other_bookmark_tag_names, ts("Bookmarker's tags") %> <%= link_to_help "bookmark-search-bookmarker-tag" %>
<%= f.text_field :other_bookmark_tag_names, autocomplete_options("tag") %>
<%= f.label :bookmarker, ts("Bookmarker") %> <%= link_to_help "bookmark-search-text-help" %>
<%= f.text_field :bookmarker %>
<%= f.label :bookmark_notes, ts("Notes") %> <%= link_to_help "bookmark-search-text-help" %>
<%= f.text_field :bookmark_notes %>
<%= ts("Bookmark type") %>
  • <%= f.check_box :rec %> <%= f.label :rec, ts("Rec") %> <%= link_to_help "bookmark-search-rec-help" %>
  • <%= f.check_box :with_notes %> <%= f.label :with_notes, ts("With notes") %> <%= link_to_help "bookmark-search-notes-help" %>
<%= f.label :date, ts("Date bookmarked") %> <%= link_to_help "bookmark-search-date-bookmarked-help" %>
<%= f.text_field :date %>
<%= ts("Search") %>

<%= ts("Search") %>

<%= f.label :sort_column, ts("Sort by") %>
<%= f.select :sort_column, options_for_select(@search.sort_options, @search.sort_column), { include_blank: ts("Best Match") } %>

<%= f.submit ts("Search Bookmarks") %>

<% end %>