|
|
|
|
@ -2,4 +2,57 @@
|
|
|
|
|
<td> <%= reference_number %> </td> |
|
|
|
|
<td> <%= title %> </td> |
|
|
|
|
<td> <%= date_or_year %> </td> |
|
|
|
|
<% if opts[:is_case_lists].present? %> |
|
|
|
|
<td> |
|
|
|
|
<a class="btn btn-sm btn-primary" data-bs-toggle="modal" data-bs-target="#annotationModal<%= document_id %>"> Add </a> |
|
|
|
|
|
|
|
|
|
<div class="modal fade" id="annotationModal<%= document_id %>" tabindex="-1" aria-labelledby="annotationModal" aria-hidden="true"> |
|
|
|
|
<%= form_tag(opts[:form_url], method: :post) do %> |
|
|
|
|
<div class="modal-dialog modal-lg modal-dialog-scrollable"> |
|
|
|
|
<div class="modal-content"> |
|
|
|
|
<div class="modal-header"> |
|
|
|
|
<h5 class="modal-title">New Annotation Marks</h5> |
|
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="modal-body"> |
|
|
|
|
<div class="row"> |
|
|
|
|
<div class="col-sm-12 p-2"> |
|
|
|
|
<%= label_tag :annotation_marks %> |
|
|
|
|
<%= hidden_field_tag :document_id, document_id %> |
|
|
|
|
<%= select_tag "annomark_ids[]", options_from_collection_for_select(Annomark.all, :id, :name, params[:annomark_ids]), class: "form-select i-chosen", multiple: true, prompt: "Please select" %> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="row"> |
|
|
|
|
<div class="col-sm-12 p-2"> |
|
|
|
|
<%= label_tag :document_title %> |
|
|
|
|
<%= text_area_tag :document_title, [title, reference_number, date_or_year].join(", "), class: "form-control" %> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="row"> |
|
|
|
|
<div class="col-sm-12 p-2"> |
|
|
|
|
<%= label_tag :phil_rep %> |
|
|
|
|
<%= text_field_tag :phil_rep, params[:phil_rep], class: "form-control" %> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="row"> |
|
|
|
|
<div class="col-sm-12 p-2"> |
|
|
|
|
<%= label_tag :editor_notes %> |
|
|
|
|
<trix-editor id="editor_notes" placeholder="Doctrine Content"> <%= params[:editor_notes] %> </trix-editor> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="modal-footer"> |
|
|
|
|
<%= submit_tag "Save", class: "btn btn-primary" %> |
|
|
|
|
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<% end %> |
|
|
|
|
</div> |
|
|
|
|
</td> |
|
|
|
|
<% end %> |
|
|
|
|
</tr> |
|
|
|
|
|