|
|
|
|
@ -33,18 +33,13 @@
|
|
|
|
|
<div class="tab-content"> |
|
|
|
|
<div class="tab-pane fade show active" id="analysisTabContent" role="tabpanel" aria-labelledby="home-tab"> |
|
|
|
|
<div class="row"> |
|
|
|
|
<div class="col-sm-11"> </div> |
|
|
|
|
|
|
|
|
|
<div class="col-sm-1 p-3 end-0"> |
|
|
|
|
<a class="btn btn-sm btn-primary" data-bs-toggle="modal" data-bs-target="#doctrineModal"> |
|
|
|
|
<i class="fas fa-plus-circle" data-toggle="tooltip" data-placement="bottom" title="New Doctrine"></i> |
|
|
|
|
</a> |
|
|
|
|
<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> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="container-sm row-flex col-sm-12 mt-2"> |
|
|
|
|
<%= render(DoctrineModalFormComponent.new(current_user: current_user, doctrine: @document.doctrines.new, subjects: @subjects, opts: { form_url: jurisprudence_doctrines_path(jurisprudence_id: @document.id), form_method: :post })) %> |
|
|
|
|
<div class="container-sm row-flex col-sm-12 mt-2"> |
|
|
|
|
<%= render(DoctrineModalFormComponent.new(current_user: current_user, doctrine: @document.doctrines.new, subjects: @subjects, 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"> |
|
|
|
|
@ -53,13 +48,24 @@
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="tab-pane fade" id="documentTabContent" role="tabpanel"> |
|
|
|
|
<div class="container"> |
|
|
|
|
<div class="container-sm mt-2"> |
|
|
|
|
<%= raw @document.content.html_safe%> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="tab-pane fade" id="ciatatonTabContent" role="tabpanel"> |
|
|
|
|
<span> Citator </span> |
|
|
|
|
<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> |
|
|
|
|
|