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.
62 lines
2.4 KiB
62 lines
2.4 KiB
<div class="card"> |
|
<div class="card-header"> </div> |
|
<div class="card-body"> |
|
<%= form_tag(doctrine_form_url, method: :patch) do %> |
|
<div class="row"> |
|
<%= label_tag :subject_indexes %> |
|
<%= select_tag "subject_ids[]", options_from_collection_for_select(Cdao::Subject.all, :id, :lineage_name, subject_ids), class: "form-select i-chosen", multiple: true, prompt: "Please select" %> |
|
</div> |
|
|
|
<div class="row"> |
|
<div class="col-sm-12 p-2"> |
|
<%= label_tag :content %> |
|
<%= text_area_tag :content, content, class: "i-ckeditor form-control", placeholder: "Doctrine" %> |
|
</div> |
|
</div> |
|
<% end %> |
|
|
|
<div class="row"> |
|
<div class="col-sm-12 p-2"> |
|
<button type="button" class="btn btn-primary" data-bs-toggle="collapse" data-bs-target="#caseListsCollapse" aria-expanded="false" aria-controls="collapseExample"> Case Lists </button |
|
</div> |
|
</div> |
|
|
|
<div class="collapse" id="caseListsCollapse"> |
|
<div class="row"> |
|
<div class="col-sm-10 p-2"> |
|
<%= text_field_tag :q, nil, class: "form-control", placeholder: "Search GR Number" %> |
|
</div> |
|
|
|
<div class="col-sm-1 p-2"> |
|
<%= button_tag "search", class: "btn btn-primary" %> |
|
</div> |
|
</div> |
|
|
|
<div class="row tab"> |
|
<table class="table table-striped table-hover mb-0"> |
|
<thead> |
|
<th class="bg-light"> Reference No. </th> |
|
<th class="bg-light"> Date </th> |
|
<th class="bg-light"> Title </th> |
|
<th class="bg-light"> </th> |
|
</thead> |
|
|
|
<tbody> |
|
<%= render(DocumentIndexTableComponent.with_collection(Cdao::Jurisprudence.first(5), current_user: current_user, opts: { is_case_lists: true, form_url: annotation_form_url, document_id: document_id })) %> |
|
</tbody> |
|
</table> |
|
</div> |
|
</div> |
|
|
|
<% doctrine.annotations.each do |annotation| %> |
|
<div class="row"> |
|
<div class="card col-sm-12"> |
|
<div class="card-header p-1"> |
|
<h6> <%= "#{annotation.annomarks.map { |annomark| "(#{annomark.code})" }.join(" ")} #{[annotation.document.title, annotation.document.reference_number, annotation.document.docdate.strftime("%B %d, %Y"), annotation.phil_rep].join(', ')}" %> </h6> |
|
<span class="m-3"> Editors Note: <%= annotation.editor_notes %> </span> |
|
</div> |
|
</div> |
|
</div> |
|
<% end %> |
|
</div> |
|
</div> |