6 changed files with 17 additions and 25 deletions
@ -1,21 +1,8 @@
|
||||
<div class="card mt-2 g-3"> |
||||
<% Cdao::Subject.where(id: params[:subject_ids].split(",").map(&:strip).map(&:to_i)).each do |subject| %> |
||||
<div class="card-header mt-1 col-sm-12"> |
||||
<%= subject.path.map(&:name).join(' > ') %> |
||||
</div> |
||||
<% end if %> |
||||
<div class="container-fluid mt-1 p-0 doctrine-index-body"> |
||||
<div class="container-fluid m-2 p-0"> <%= render PaginationComponent.new(data: @jurisprudences, opts: { is_subject_breadcrums: true, subject_ids: params[:subject_ids].split(","), is_index_table: params[:is_index_table] }) %> </div> |
||||
<hr class="mt-0"/> |
||||
|
||||
<div class="card-body col-sm-12 tableFixHead p-0 mt-1"> |
||||
<div class="container m-2"> <%= render PaginationComponent.new(data: @jurisprudences) %> </div> |
||||
<table class="table table-striped table-hover mb-0"> |
||||
<thead> |
||||
<th class="bg-light"> Reference No. </th> |
||||
<th class="bg-light"> Title </th> |
||||
<th class="bg-light"> Date </th> |
||||
</thead> |
||||
<tbody> |
||||
<%= render(DocumentIndexTableComponent.with_collection(@jurisprudences, current_user: current_user, opts: { search_params: @search_params.to_unsafe_h })) %> |
||||
</tbody> |
||||
</table> |
||||
<%= render(DoctrineIndexTableComponent.new(current_user: current_user, search_results: @jurisprudences, opts: { is_index_table: true, subject_ids: params[:subject_ids].split(",").map(&:to_i) })) %> |
||||
</div> |
||||
</div> |
||||
|
||||
Loading…
Reference in new issue