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.
18 lines
703 B
18 lines
703 B
# frozen_string_literal: true |
|
|
|
class DocumentReflex < ApplicationReflex |
|
include JurisprudenceSearch |
|
|
|
def render_index_table(results) |
|
@results = results |
|
morph "tbody#documentIndexTable", render(DocumentIndexTableBodyComponent.with_collection(@results, current_user: current_user, opts: { is_case_lists: true })) |
|
end |
|
|
|
def render_years(results) |
|
morph "tbody#yearsIndex", render(DocumentsYearsComponent.new(current_user: current_user, years: results)) |
|
end |
|
|
|
def render_moda_document_search_table(results) |
|
morph "tbody#modalDocumentSearchTable", render(DocumentIndexTableBodyComponent.with_collection(@results, current_user: current_user, opts: { is_case_lists: true })) |
|
end |
|
end
|
|
|