diff --git a/app/components/annotation_marks_modal_form_component/annotation_marks_modal_form_component.html.erb b/app/components/annotation_marks_modal_form_component/annotation_marks_modal_form_component.html.erb index 5bb36f3..094bd72 100644 --- a/app/components/annotation_marks_modal_form_component/annotation_marks_modal_form_component.html.erb +++ b/app/components/annotation_marks_modal_form_component/annotation_marks_modal_form_component.html.erb @@ -8,17 +8,24 @@ @@ -48,14 +55,14 @@
- <%= label_tag :phil_rep %> + <%= label_tag :phil_rep %> <%= text_field_tag :phil_rep, annotation.phil_rep, class: "form-control" %>
- <%= label_tag :editor_notes %> + <%= label_tag :editor_notes %> <%= rich_text_area_tag :editor_notes, annotation.editor_notes, placeholder: "Editor Notes" %>
diff --git a/app/components/doctrine_modal_form_component/doctrine_modal_form_component.html.erb b/app/components/doctrine_modal_form_component/doctrine_modal_form_component.html.erb index f4aa8d6..6f31dce 100644 --- a/app/components/doctrine_modal_form_component/doctrine_modal_form_component.html.erb +++ b/app/components/doctrine_modal_form_component/doctrine_modal_form_component.html.erb @@ -9,9 +9,9 @@
- <%= form_tag(doctrine_form_url, method: :patch, local: true) do %> -
+
<%= label_tag :subjects %> - <%= select_tag "subjects_ids[]", options_from_collection_for_select(Cdao::Subject.all, :id, :lineage_name, subject_ids), class: "form-select subjects-select2", multiple: true, prompt: "Please select" %> + <%= select_tag "subjects_ids[]", options_from_collection_for_select(Cdao::Subject.all, :id, :lineage_name, subject_ids), class: "form-select default-selectize", multiple: true, prompt: "Please select", readonly: true %>
<%= label_tag :content %> - <%= rich_text_area_tag :content, content, placeholder: "Doctrine Content" %> + <%= rich_text_area_tag :content, content, placeholder: "Doctrine Content", readonly: true %>
- <% end %>
@@ -59,6 +57,79 @@ + +
@@ -66,26 +137,31 @@
Annotation Marks
<% doctrine.annotations.order(rank: :asc).each do |annotation| %> -
+
+
+

+ <%= "#{annotation.annomarks.map { |annomark| "(#{annomark.code})" }.join(" ")}" %> + <%= raw [annotation.document.title, annotation.document.reference_number, annotation.document.docdate.strftime("%B %d, %Y"), annotation.phil_rep].reject(&:blank?).join(', ').html_safe %> +

+
+ + +
+ + <% if annotation.editor_notes.present? %>
-
-

- <%= "#{annotation.annomarks.map { |annomark| "(#{annomark.code})" }.join(" ")}" %> - <%= raw [annotation.document.title, annotation.document.reference_number, annotation.document.docdate.strftime("%B %d, %Y"), annotation.phil_rep].reject(&:blank?).join(', ').html_safe %> -

+
+ Editors Note:
- -
- Edit - Delete + +
+ <%= raw annotation.editor_notes %>
- -
- - <% if annotation.editor_notes.present? %> - Editors Note: <%= annotation.editor_notes %> - <% end %> -
+
+ <% end %>
+ - + + +
<% end %> diff --git a/app/components/subject_accordion_component/subject_accordion_component.html.erb b/app/components/subject_accordion_component/subject_accordion_component.html.erb index 0242d25..045cfc6 100644 --- a/app/components/subject_accordion_component/subject_accordion_component.html.erb +++ b/app/components/subject_accordion_component/subject_accordion_component.html.erb @@ -1,35 +1,60 @@ -<% parent.children.each do |second_subject| %> -
+<% parent.children.each do |sub1| %> +
-