20 changed files with 250 additions and 47 deletions
@ -0,0 +1 @@ |
|||||||
|
json.(@doctrine, *%i[id subject_ids content plain_content created_at updated_at]) |
||||||
@ -1 +1 @@ |
|||||||
json.(@doctrine, *%i[id document_id subject_ids content plain_content created_at updated_at]) |
json.(@doctrine, *%i[id subject_ids content plain_content created_at updated_at]) |
||||||
|
|||||||
@ -0,0 +1,31 @@ |
|||||||
|
<div class="card mt-1 g-3"> |
||||||
|
<div class="card-header mb-0 col-sm-12"> |
||||||
|
<table class="table table-borderless mb-0"> |
||||||
|
<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 pt-0"> |
||||||
|
<div class="row"> |
||||||
|
<div class="d-flex justify-content-end p-2"> |
||||||
|
<a class="btn btn-sm btn-primary" data-controller="doctrines" data-document-id="<%= @document.id %>" data-action="click->doctrines#renderForm" data-bs-toggle="modal" data-bs-target="#doctrineModal"> Add Doctrine </a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="row"> |
||||||
|
<%= render(DocumentDoctrineShowComponent.new(current_user: current_user, doctrine: @doctrine, document_id: @document.id, subjects: @subjects)) %> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
Loading…
Reference in new issue