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.
35 lines
1.5 KiB
35 lines
1.5 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"> |
|
<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: Cdao::Subject.all.order(name: :asc), opts: { form_url: jurisprudence_doctrines_path(jurisprudence_id: @document.id), form_method: :post })) %> |
|
</div> |
|
</div> |
|
|
|
<div class="row"> |
|
<%= render(DocumentDoctrineShowComponent.new(current_user: current_user, doctrine: @doctrine, subjects: @subjects)) %> |
|
</div> |
|
</div> |
|
</div>
|
|
|