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.
72 lines
3.3 KiB
72 lines
3.3 KiB
<div class="card mt-1 g-3"> |
|
<div class="card-header mt-1 mb-2 col-sm-12"> |
|
<table class="table table-borderless"> |
|
<tbody> |
|
<tr> |
|
<td class="text-start" style="width: 160px;"> Reference Number: </td> |
|
<td class="text-start"> <strong> <%= @document.reference_number %> </strong> </td> |
|
<td class="text-end" style="width: 50px;" > Date: </td> |
|
<td class="text-end" style="width: 160px;"> <strong> <%= @document.docdate.present? ? @document.docdate.strftime("%m/%d/%Y") : @document.year %> </strong> </td> |
|
</tr> |
|
|
|
<tr> |
|
<td style="width: 160px;" class="text-start"> Title: </td> |
|
<td colspan="3" class="text-start"> <strong> <%= @document.title %> </strong> </td> |
|
</tr> |
|
</tbody> |
|
</table> |
|
</div> |
|
|
|
<div class="card-body"> |
|
<ul class="nav nav-tabs" id="menuTab" role="tablist"> |
|
<li class="nav-item" role="presentation"> |
|
<button class="nav-link active" id="analysisMenuTab" data-bs-toggle="tab" data-bs-target="#analysisTabContent" type="button" role="tab" aria-controls="analysisTab" aria-selected="true">Analysis</button> |
|
</li> |
|
<li class="nav-item" role="presentation"> |
|
<button class="nav-link" id="analysisMenuTab" data-bs-toggle="tab" data-bs-target="#documentTabContent" type="button" role="tab" aria-controls="analysisTab" aria-selected="true">Full Text</button> |
|
</li> |
|
<li class="nav-item" role="presentation"> |
|
<button class="nav-link" id="analysisMenuTab" data-bs-toggle="tab" data-bs-target="#ciatatonTabContent" type="button" role="tab" aria-controls="analysisTab" aria-selected="true">Citator</button> |
|
</li> |
|
</ul> |
|
|
|
<div class="tab-content"> |
|
<div class="tab-pane fade show active" id="analysisTabContent" role="tabpanel" aria-labelledby="home-tab"> |
|
<div class="row"> |
|
<div class="d-flex justify-content-end p-3"> |
|
<a class="btn btn-sm btn-primary" data-bs-toggle="modal" data-bs-target="#doctrineModal"> Add Doctrine </a> |
|
</div> |
|
|
|
<div class="container-sm row-flex col-sm-12 mt-2"> |
|
<%= render(DoctrineModalFormComponent.new(current_user: current_user, doctrine: @document.doctrines.new, subjects: @subjects.order(name: :asc), opts: { form_url: jurisprudence_doctrines_path(jurisprudence_id: @document.id), form_method: :post })) %> |
|
</div> |
|
</div> |
|
|
|
<div class="container-sm row-flex col-sm-12 mt-2"> |
|
<%= render(DocumentDoctrineIndexComponent.with_collection(@doctrines, current_user: current_user)) %> |
|
</div> |
|
</div> |
|
|
|
<div class="tab-pane fade" id="documentTabContent" role="tabpanel"> |
|
<div class="container-sm mt-2"> |
|
<%= raw @document.content.html_safe%> |
|
</div> |
|
</div> |
|
|
|
<div class="tab-pane fade" id="ciatatonTabContent" role="tabpanel"> |
|
<div class="card card-header mt-1"> <h4> Cited Ins Documents </h4> </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(@cited_in_documents, current_user: current_user)) %> |
|
</tbody> |
|
</table> |
|
</div> |
|
</div> |
|
</div> |
|
</div>
|
|
|