<%= form_tag(doctrine_form_url, method: :patch) do %>
<%= label_tag :subject_indexes %> <%= select_tag "subject_ids[]", options_from_collection_for_select(Cdao::Subject.all, :id, :lineage_name, subject_ids), class: "form-select i-chosen", multiple: true, prompt: "Please select" %>
<%= label_tag :content %> <%= text_area_tag :content, content, class: "i-ckeditor form-control", placeholder: "Doctrine" %>
<% end %>
<%= text_field_tag :q, nil, class: "form-control", placeholder: "Search GR Number" %>
<%= button_tag "search", class: "btn btn-primary" %>
<%= render(DocumentIndexTableComponent.with_collection(Cdao::Jurisprudence.first(5), current_user: current_user, opts: { is_case_lists: true, form_url: annotation_form_url, document_id: document_id })) %>
Reference No. Date Title
<% doctrine.annotations.each do |annotation| %>
<%= "#{annotation.annomarks.map { |annomark| "(#{annomark.code})" }.join(" ")} #{[annotation.document.title, annotation.document.reference_number, annotation.document.docdate.strftime("%B %d, %Y"), annotation.phil_rep].join(', ')}" %>
Editors Note: <%= annotation.editor_notes %>
<% end %>