|
|
|
|
@ -1,14 +1,14 @@
|
|
|
|
|
<% search_results.each do |search_result| %> |
|
|
|
|
<tr> |
|
|
|
|
<td> <%= search_result.clean_reference_number %> </td> |
|
|
|
|
<td> <%= search_result.short_title || search_result.title %> </td> |
|
|
|
|
<td> <%= search_result.doc_date.present? ? search_result.doc_date : search_result.year %> </td> |
|
|
|
|
<td style="width: 25%"> <%= search_result.clean_reference_number %> </td> |
|
|
|
|
<td style="width: 45%"> <%= search_result.short_title || search_result.title %> </td> |
|
|
|
|
<td style="width: 15%"> <%= search_result.doc_date.present? ? search_result.doc_date : search_result.year %> </td> |
|
|
|
|
|
|
|
|
|
<% if opts[:is_case_lists].present? && opts[:doctrine_id].present? %> |
|
|
|
|
<td> |
|
|
|
|
<% date_or_year = search_result.doc_date || search_result.year %> |
|
|
|
|
<% title = search_result.short_title || search_result.title %> |
|
|
|
|
<a class="btn btn-success" data-bs-toggle="modal" data-bs-target="#annotationModal" data-controller="annotations" |
|
|
|
|
<a class="btn btn-success btn-sm" data-bs-toggle="modal" data-bs-target="#annotationModal" data-controller="annotations" |
|
|
|
|
data-doctrine-id="<%= opts[:doctrine_id] %>" data-document-id="<%= search_result.id %>" data-document-title="<%= title %>" |
|
|
|
|
data-document-reference-number="<%= search_result.clean_reference_number %>" data-document-date-or-year="<%= date_or_year %>" |
|
|
|
|
data-document-phil-rep="<%= search_result.phil_rep %>" data-action="click->annotations#renderForm"> |
|
|
|
|
|