|
|
|
@ -10,14 +10,39 @@ |
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-sm-12 p-2" data-controller="select2"> |
|
|
|
<div class="col-sm-12 p-2" data-controller="select2"> |
|
|
|
<%= label_tag :annotation_marks %> |
|
|
|
<%= label_tag :annotation_marks %> |
|
|
|
<%= hidden_field_tag :document_id, opts[:document_id] %> |
|
|
|
<%= hidden_field_tag :document_id, document.id %> |
|
|
|
<%= select_tag "annomark_ids[]", options_from_collection_for_select(Annomark.all, :id, :name, annotation.annomark_ids), class: "form-select annomark-ids-select2", multiple: true, prompt: "Please select" %> |
|
|
|
<%= select_tag "annomark_ids[]", options_from_collection_for_select(Annomark.all, :id, :name, annotation.annomark_ids), class: "form-select annomark-ids-select2", multiple: true, prompt: "Please select" %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-sm-12 p-2"> |
|
|
|
<div class="col-sm-12 p-2"> |
|
|
|
<%= label_tag :document_title %> |
|
|
|
<%= label_tag :document_title %> |
|
|
|
<%= text_area_tag :document_title, document_date_or_year, class: "form-control" %> |
|
|
|
<%= text_area_tag :document_title, document_title, class: "form-control" %> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row"> |
|
|
|
|
|
|
|
<div class="row" data-controller="document"> |
|
|
|
|
|
|
|
<div class="col-sm-10 p-2"> |
|
|
|
|
|
|
|
<%= text_field_tag :q, nil, class: "form-control", placeholder: "Search GR Number", data: { target: "document.input" } %> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="col-sm-1 p-2"> |
|
|
|
|
|
|
|
<%= button_tag "Search", class: "btn btn-primary", data: { action: "click->document#modalDocumentSearch" } %> |
|
|
|
|
|
|
|
</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 id="modalDocumentSearchTable"> </tbody> |
|
|
|
|
|
|
|
</table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|