From 85838f6b6e8bbe87e80501302428b7a0718ceff6 Mon Sep 17 00:00:00 2001 From: Elena Date: Mon, 19 Jun 2023 14:40:59 -0500 Subject: [PATCH] Rearrange work edit/post controls --- .../frontend/templates/edit_tags.html | 1 + .../frontend/templates/work_form.html | 72 ++++++++++--------- 2 files changed, 40 insertions(+), 33 deletions(-) diff --git a/ourchive_app/frontend/templates/edit_tags.html b/ourchive_app/frontend/templates/edit_tags.html index 475fb75c..6e5935b0 100644 --- a/ourchive_app/frontend/templates/edit_tags.html +++ b/ourchive_app/frontend/templates/edit_tags.html @@ -1,3 +1,4 @@ +

{{ object_friendly|default_if_none:'' }} Tags

{% for type, tag_data in tags.items %} {% if tag_data.admin_administrated %}
diff --git a/ourchive_app/frontend/templates/work_form.html b/ourchive_app/frontend/templates/work_form.html index d0c70daf..e13f053b 100644 --- a/ourchive_app/frontend/templates/work_form.html +++ b/ourchive_app/frontend/templates/work_form.html @@ -49,7 +49,6 @@ -

@@ -87,7 +86,12 @@ - +
+ {% include "object_attributes_form.html" with object='Work' attribute_types=work.attribute_types %} +
+ {% include "edit_tags.html" with object='work' object_friendly='Work' %} +
+

Work Details

@@ -98,8 +102,8 @@ tinymce.init({ selector: '#summaryEditor', width: '100%', - height: 450, - autoresize_min_height: 450, + height: 200, + autoresize_min_height: 150, autoresize_max_height: 800, plugins: [ 'link', 'image', 'lists', 'charmap', 'preview', 'anchor', 'pagebreak', @@ -110,7 +114,6 @@ 'bullist numlist outdent indent | link image | print preview media fullscreen | ' + 'forecolor backcolor emoticons | help | code', menubar: '', - content_css: 'css/content.css', init_instance_callback : function(editor) { var workSummary = document.getElementById('summary').value; if (workSummary === "None") { @@ -134,8 +137,8 @@ tinymce.init({ selector: '#notesEditor', width: '100%', - height: 450, - autoresize_min_height: 450, + height: 200, + autoresize_min_height: 150, autoresize_max_height: 800, plugins: [ 'link', 'image', 'lists', 'charmap', 'preview', 'anchor', 'pagebreak', @@ -146,7 +149,6 @@ 'bullist numlist outdent indent | link image | print preview media fullscreen | ' + 'forecolor backcolor emoticons | help', menubar: '', - content_css: 'css/content.css', init_instance_callback : function(editor) { var workNotes = document.getElementById('notes').value; if (workNotes === "None") { @@ -159,26 +161,7 @@
- -
- -
-
- -
-
-
- -
- -
-
- -
-
-
- -
+
{% if work.cover_url %} @@ -194,13 +177,29 @@
- + +
+
+
+
+

Work Settings

+
+ +
+
+ +
+
+
+ +
+ +
+
+
-
- {% include "object_attributes_form.html" with object='Work' attribute_types=work.attribute_types %} -
@@ -212,7 +211,6 @@
- {% include "edit_tags.html" with object='work' %}