From 551b7f012fba042e5cbe1a51739ca31ccf3294eb Mon Sep 17 00:00:00 2001 From: George Katsikas <giorgakis.katsikas@gmail.com> Date: Wed, 10 Apr 2024 11:00:16 +0200 Subject: [PATCH] change style of journal selection/submission form --- .../scipost/static/scipost/assets/config/preconfig.scss | 1 + scipost_django/submissions/forms/__init__.py | 6 +++--- .../templates/submissions/submit_choose_journal.html | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/scipost_django/scipost/static/scipost/assets/config/preconfig.scss b/scipost_django/scipost/static/scipost/assets/config/preconfig.scss index aca63bbad..10d8108a7 100644 --- a/scipost_django/scipost/static/scipost/assets/config/preconfig.scss +++ b/scipost_django/scipost/static/scipost/assets/config/preconfig.scss @@ -242,6 +242,7 @@ details { // // List triangle for summary element (necessary with display: flex) &.list-triangle { + display: block; position: relative; padding-left: 2em !important; diff --git a/scipost_django/submissions/forms/__init__.py b/scipost_django/submissions/forms/__init__.py index 73ab75bdb..a060c039d 100644 --- a/scipost_django/submissions/forms/__init__.py +++ b/scipost_django/submissions/forms/__init__.py @@ -1487,9 +1487,9 @@ class SubmissionForm(forms.ModelForm): ) self.fields["fulfilled_expectations"].help_text = ( - """Please select which of the <a href='{expectations_url}'>journal expectations</a> are fulfilled by this submission. - This information will be publicly visible and used during refereeing. <br> - Try a more accessible alternative? <a href='{core_url}'>Submit to SciPost Physics Core</a>.""".format( + """<div class="mt-2">Please indicate which <a href='{expectations_url}'>journal expectations</a> you assert are being fulfilled by this Submission. + This information will be publicly visible and scrutinized during the refereeing process. <br> + Looking for a more accessible alternative? Consider <a href='{core_url}'>submitting to SciPost Physics Core</a>.</div>""".format( expectations_url=reverse_lazy( "journal:about", args=[self.submitted_to_journal.doi_label] ) diff --git a/scipost_django/submissions/templates/submissions/submit_choose_journal.html b/scipost_django/submissions/templates/submissions/submit_choose_journal.html index e3034aec9..e94b6953d 100644 --- a/scipost_django/submissions/templates/submissions/submit_choose_journal.html +++ b/scipost_django/submissions/templates/submissions/submit_choose_journal.html @@ -68,13 +68,13 @@ <div class="card-body text-center"> <p>{% automarkup journal.oneliner %}</p> <details class="text-start bg-primary bg-opacity-10 p-1"> - <summary class="list-triangle mb-1">Acceptance Criteria</summary> - <div class="overflow-scroll" style="max-height: 33vh;"> + <summary class="list-triangle">Acceptance Criteria</summary> + <div class="mt-2 overflow-scroll" style="max-height: 33vh;"> {% include 'journals/_acceptance_criteria.html' %} </div> </details> <nav class="d-flex flex-row justify-content-between align-items-end mt-2"> - <a href="{{ journal.get_absolute_url }}/about" target="_blank"><em>View details</em></a> + <a href="{{ journal.get_absolute_url }}/about" target="_blank"><em>View full details</em></a> <a class="btn btn-primary" role="button" href="{% url 'submissions:submit_choose_preprint_server' journal_doi_label=journal.doi_label %}{% if thread_hash %}?thread_hash={{ thread_hash }}{% endif %}"> {% include 'bi/arrow-right.html' %} <span class="ms-1">Submit</span> </a> </nav> -- GitLab