From 36757e77bd9f07d680744ea348b47cde54d3f8ed Mon Sep 17 00:00:00 2001 From: janpaulo Date: Fri, 11 Feb 2022 20:37:19 +0800 Subject: [PATCH] Enahnce ui for doctrine show --- ...tation_marks_modal_form_component.html.erb | 6 +- .../document_doctrine_show_component.html.erb | 301 +++++++++--------- .../pagination_component.html.erb | 3 +- app/javascript/src/application.scss | 9 + app/views/doctrines/search.html.erb | 3 +- app/views/kaminari/_gap.html.erb | 2 +- 6 files changed, 169 insertions(+), 155 deletions(-) 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 bbd0cbc..951b599 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 @@ -3,7 +3,7 @@ @@ -33,7 +33,7 @@ -
+
diff --git a/app/components/document_doctrine_show_component/document_doctrine_show_component.html.erb b/app/components/document_doctrine_show_component/document_doctrine_show_component.html.erb index 51251b1..9c3193d 100644 --- a/app/components/document_doctrine_show_component/document_doctrine_show_component.html.erb +++ b/app/components/document_doctrine_show_component/document_doctrine_show_component.html.erb @@ -1,192 +1,197 @@ -
-
+
+
+
+
Doctrine Details
+
+ + +
+
+
+ +
+ <%= render(DoctrineModalFormComponent.new(current_user: current_user, doctrine: doctrine, subjects: all_subjects, opts: { form_url: jurisprudence_doctrine_path(jurisprudence_id: document_id, id: doctrine.id), form_method: "PUT" })) %> +
+
+ +
-
-
Doctrine Details
+
+ Subjects:
-
- Edit - Delete +
+ <%= subjects.map(&:lineage_name).join(" & ") %>
-
- <%= render(DoctrineModalFormComponent.new(current_user: current_user, doctrine: doctrine, subjects: all_subjects, opts: { form_url: jurisprudence_doctrine_path(jurisprudence_id: document_id, id: doctrine.id), form_method: "PUT" })) %> -
-
- -
-
-
- Subjects: -
- -
- <%= subjects.map(&:lineage_name).join(" & ") %> -
+
+
+ Content:
-
-
- Content: -
- -
- <%= raw content %> -
+
+ <%= raw content %>
+
-
-
-
- -
+
+
+
+
+
-
-
-
- <%= text_field_tag :q, nil, class: "form-control", placeholder: "Search GR Number", data: { target: "document.input" } %> -
-
- <%= button_tag "Search", class: "btn btn-primary", data: { action: "click->document#search" } %> -
+
+
+
+ <%= text_field_tag :q, nil, class: "form-control", placeholder: "Search GR Number", data: { target: "document.input" } %> +
+
+ <%= button_tag "Search", class: "btn btn-primary", data: { action: "click->document#search" } %>
+
-
-
Reference No.
- - - - - - - - -
Reference No. Title Date
- -