\ No newline at end of file
diff --git a/src/templates/admin/elements/layout/key_value_above.html b/src/templates/admin/elements/layout/key_value_above.html
new file mode 100644
index 0000000000..a703e2e5ed
--- /dev/null
+++ b/src/templates/admin/elements/layout/key_value_above.html
@@ -0,0 +1,18 @@
+
+ {% include "admin/elements/breadcrumbs/repository_submission.html" with review=True %}
{% endblock %}
{% block body %}
-
-
-
-
-
-
Submission Complete
-
-
Thank you for submitting your {{ request.repository.object_name }} to {{ request.repository.name }}.
-
-
-
Next Steps
-
-
One of our team will review your submission and will be in touch. You can close the submission system using the button below, you will be taken to the dashboard.
+
+ {% include "admin/elements/layout/key_value_above.html" with key="Title" value=preprint.title %}
+ {% include "admin/elements/layout/key_value_above.html" with key="Abstract" value=preprint.abstract render_line_breaks=True %}
+ {% include "admin/elements/layout/key_value_above.html" with key="License" value=preprint.license.name %}
+ {% include "admin/elements/layout/key_value_above.html" with key="Published DOI" value=preprint.doi %}
+ {% include "admin/elements/layout/key_value_above.html" with key="Subjects" value=preprint.subject.all list=True %}
+ {% include "admin/elements/layout/key_value_above.html" with key="Keywords" value=preprint.keywords.all list=True %}
+ {% include "admin/elements/layout/key_value_above.html" with key="Comments to the Editor" value=preprint.comments_editor render_line_breaks=True %}
+
+ {% for field_answer in preprint.repositoryfieldanswer_set.all %}
+ {% include "admin/elements/layout/key_value_above.html" with key=field_answer.field.name value=field_answer.answer render_line_breaks=True %}
+ {% endfor %}
+
-
{% include "admin/elements/layout/key_value_above.html" with key="Title" value=preprint.title %}
{% include "admin/elements/layout/key_value_above.html" with key="Abstract" value=preprint.abstract render_line_breaks=True %}
{% include "admin/elements/layout/key_value_above.html" with key="License" value=preprint.license.name %}
@@ -33,7 +34,6 @@
{{ request.repository.object_name }} Metadata
{% include "admin/elements/layout/key_value_above.html" with key="Subjects" value=preprint.subject.all list=True %}
{% include "admin/elements/layout/key_value_above.html" with key="Keywords" value=preprint.keywords.all list=True %}
{% include "admin/elements/layout/key_value_above.html" with key="Comments to the Editor" value=preprint.comments_editor render_line_breaks=True %}
-
{% for field_answer in preprint.repositoryfieldanswer_set.all %}
{% include "admin/elements/layout/key_value_above.html" with key=field_answer.field.name value=field_answer.answer render_line_breaks=True %}
{% endfor %}
@@ -41,9 +41,11 @@
From bf0fb010cab225e2eb9e257566edd3f5b3a0ef91 Mon Sep 17 00:00:00 2001
From: Andy Byers
Date: Wed, 7 Aug 2024 14:32:26 +0100
Subject: [PATCH 7/8] #3478 use a definition list to make content semantic
---
src/static/admin/css/admin.css | 1 +
.../elements/layout/key_value_above.html | 18 ++++++++++-----
.../admin/repository/submit/review.html | 22 ++++++++++---------
3 files changed, 26 insertions(+), 15 deletions(-)
diff --git a/src/static/admin/css/admin.css b/src/static/admin/css/admin.css
index 3f78b3e64e..293f240f5f 100644
--- a/src/static/admin/css/admin.css
+++ b/src/static/admin/css/admin.css
@@ -834,6 +834,7 @@ ul.menu {
text-align: left;
color: #696969;
margin-bottom: 0.31rem;
+ font-weight: normal;
}
.key-value-pair.key-above .value {
diff --git a/src/templates/admin/elements/layout/key_value_above.html b/src/templates/admin/elements/layout/key_value_above.html
index 2708a751f8..ce8f663829 100644
--- a/src/templates/admin/elements/layout/key_value_above.html
+++ b/src/templates/admin/elements/layout/key_value_above.html
@@ -1,8 +1,16 @@
+{% comment %}
+ This template should be wrapped in
tags when included. Example:
+
+ {% include "admin/elements/layout/key_value_above.html" with key="Title" value=preprint.title %}
+ {% include "admin/elements/layout/key_value_above.html" with key="Abstract" value=preprint.abstract %}
+
+{% endcomment %}
+
-
+
{{ key }}
-
-
+
+
{% if list %}
{% for item in value %}
@@ -10,9 +18,9 @@
{% endfor %}
{% elif render_line_breaks %}
- {{ value|linebreaksbr|default_if_none:"No value supplied" }}
+ {{ value|linebreaksbr|default:"No value supplied" }}
{% else %}
{{ value|default:"No value supplied" }}
{% endif %}
-
+
\ No newline at end of file
diff --git a/src/templates/admin/repository/submit/review.html b/src/templates/admin/repository/submit/review.html
index 5f39ec56e2..f4dbd2ce29 100644
--- a/src/templates/admin/repository/submit/review.html
+++ b/src/templates/admin/repository/submit/review.html
@@ -27,16 +27,18 @@
{{ request.repository.object_name }} Metadata
- {% include "admin/elements/layout/key_value_above.html" with key="Title" value=preprint.title %}
- {% include "admin/elements/layout/key_value_above.html" with key="Abstract" value=preprint.abstract render_line_breaks=True %}
- {% include "admin/elements/layout/key_value_above.html" with key="License" value=preprint.license.name %}
- {% include "admin/elements/layout/key_value_above.html" with key="Published DOI" value=preprint.doi %}
- {% include "admin/elements/layout/key_value_above.html" with key="Subjects" value=preprint.subject.all list=True %}
- {% include "admin/elements/layout/key_value_above.html" with key="Keywords" value=preprint.keywords.all list=True %}
- {% include "admin/elements/layout/key_value_above.html" with key="Comments to the Editor" value=preprint.comments_editor render_line_breaks=True %}
- {% for field_answer in preprint.repositoryfieldanswer_set.all %}
- {% include "admin/elements/layout/key_value_above.html" with key=field_answer.field.name value=field_answer.answer render_line_breaks=True %}
- {% endfor %}
+
+ {% include "admin/elements/layout/key_value_above.html" with key="Title" value=preprint.title %}
+ {% include "admin/elements/layout/key_value_above.html" with key="Abstract" value=preprint.abstract render_line_breaks=True %}
+ {% include "admin/elements/layout/key_value_above.html" with key="License" value=preprint.license.name %}
+ {% include "admin/elements/layout/key_value_above.html" with key="Published DOI" value=preprint.doi %}
+ {% include "admin/elements/layout/key_value_above.html" with key="Subjects" value=preprint.subject.all list=True %}
+ {% include "admin/elements/layout/key_value_above.html" with key="Keywords" value=preprint.keywords.all list=True %}
+ {% include "admin/elements/layout/key_value_above.html" with key="Comments to the Editor" value=preprint.comments_editor render_line_breaks=True %}
+ {% for field_answer in preprint.repositoryfieldanswer_set.all %}
+ {% include "admin/elements/layout/key_value_above.html" with key=field_answer.field.name value=field_answer.answer render_line_breaks=True %}
+ {% endfor %}
+
Please review your submission carefully. Make any necessary changes to ensure that all information is accurate and complete.
When you are satisfied with your review click the button below to finalize your submission.
', help_text='Text that displays on the review page just before the author completes their submission.'),
+ field=core.model_utils.JanewayBleachField(blank=True, default='
Please review your submission carefully. Make any necessary changes to ensure that all information is accurate and complete.
When you are satisfied with your review click the button below to finalize your submission.
', help_text='Text that displays on the review page just before the author completes their submission.'),
),
migrations.AddField(
model_name='repository',
name='review_submission_text',
- field=core.model_utils.JanewayBleachField(blank=True, default='
Please review your submission carefully. Make any necessary changes to ensure that all information is accurate and complete.
When you are satisfied with your review click the button below to finalize your submission.
', help_text='Text that displays on the review page just before the author completes their submission.'),
+ field=core.model_utils.JanewayBleachField(blank=True, default='
Please review your submission carefully. Make any necessary changes to ensure that all information is accurate and complete.
When you are satisfied with your review click the button below to finalize your submission.
', help_text='Text that displays on the review page just before the author completes their submission.'),
),
migrations.AlterField(
model_name='repositoryfield',
diff --git a/src/repository/models.py b/src/repository/models.py
index 55f256f8bf..c2533e1bd4 100755
--- a/src/repository/models.py
+++ b/src/repository/models.py
@@ -237,7 +237,7 @@ class Repository(model_utils.AbstractSiteModel):
"and complete.
When you are satisfied with your review "
"click the button below to finalize your submission.
",
help_text="Text that displays on the review page just before the "
- "author completes their submission."
+ "author completes their submission."
)
submission_access_contact = models.EmailField(
blank=True,