You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.5 KiB
28 lines
1.5 KiB
<% search_results.each do |search_result| %> |
|
<tr> |
|
<td> <%= search_result["reference_number"] %> </td> |
|
<td> <%= search_result["short_title"] || search_result["title"] %> </td> |
|
<td> <%= search_result["docdate"].present? ? search_result["docdate"].to_date.strftime("%m/%d/%Y") : search_result["year"] %> </td> |
|
|
|
<% if opts[:is_case_lists].present? && opts[:document_id].present? && opts[:doctrine_id].present? %> |
|
<td> |
|
<% date_or_year = search_result["docdate"].present? ? search_result["docdate"].to_date.strftime("%B %d, %Y") : search_result["year"] %> |
|
<% title = search_result["short_title"].present? ? search_result["short_title"] : search_result["title"] %> |
|
<a class="btn btn-sm btn-primary" data-bs-toggle="modal" data-bs-target="#newAnnotationModal" data-controller="document" data-document-title="<%= title %>" |
|
data-document-id="<%= search_result["id"] %>" data-document-reference-number="<%= search_result["reference_number"] %>" |
|
data-document-date-or-year="<%= date_or_year %>" data-action="click->document#loadFormDocumentDetais"> |
|
Add Annotation Marks |
|
</a> |
|
</td> |
|
<% end %> |
|
|
|
<% if opts[:is_citing_document].present? %> |
|
<td> |
|
<a class="btn btn-sm btn-primary" data-action="click->document#addCitingDocument" data-controller="document" data-document-id="<%= search_result["id"] %>" |
|
data-document-reference-number="<%= search_result["reference_number"] %>"> |
|
Add |
|
</a> |
|
</td> |
|
<% end %> |
|
</tr> |
|
<% end %> |