From b393608c728cf2b63c037ce28577bc08547c8a3d Mon Sep 17 00:00:00 2001 From: sfisher Date: Fri, 20 Dec 2024 16:57:16 -0800 Subject: [PATCH] Encloses radio buttons in fieldset as indicated in ticket 544. --- templates/create/_datacite_title.html | 4 +- templates/includes/advanced_publish_id.html | 40 ++++++++-------- templates/includes/simple_id_type.html | 53 +++++++++++---------- 3 files changed, 50 insertions(+), 47 deletions(-) diff --git a/templates/create/_datacite_title.html b/templates/create/_datacite_title.html index ea7d01493..1d0a335ab 100644 --- a/templates/create/_datacite_title.html +++ b/templates/create/_datacite_title.html @@ -23,7 +23,7 @@ {% if forloop.counter == 1 %} {% include "create/_datacite_inlinetext.html" with field=t_field reqd="true" %} {% elif forloop.counter == 2 %} -
+
{{ t_field.label }} {% for radio in t_field %} {% endfor %} -
+ {% else %} {% include "create/_datacite_inlinetext.html" with field=t_field %} {% endif %} diff --git a/templates/includes/advanced_publish_id.html b/templates/includes/advanced_publish_id.html index 44fa2be06..a25451440 100644 --- a/templates/includes/advanced_publish_id.html +++ b/templates/includes/advanced_publish_id.html @@ -3,25 +3,25 @@

{% trans "Decide" %}

-
- {% trans "Make this identifier" %} - - - {% help_icon "decide_public" _("on making an identifier public or reserved") %} -
-
+
+ {% trans "Make this identifier" %} + + + {% help_icon "decide_public" _("on making an identifier public or reserved") %} +
+ {% trans "Allow harvesting/indexing?" %} {% help_icon "decide_export" _("on harvesting/indexing") %} -
+
diff --git a/templates/includes/simple_id_type.html b/templates/includes/simple_id_type.html index d7cc2876d..8e5ff2707 100644 --- a/templates/includes/simple_id_type.html +++ b/templates/includes/simple_id_type.html @@ -1,30 +1,33 @@ {% load layout_extras %} {% load i18n %} -
-

{% trans "Choose an identifier type" %}

- {% if calling_page == 'demo' %} - {% help_icon "choose_id_demo" _("on choosing the type of identifier") %} +
+
+
+

{% trans "Choose an identifier type" %}

+ {% if calling_page == 'demo' %} + {% help_icon "choose_id_demo" _("on choosing the type of identifier") %} + {% else %} + {% help_icon "choose_id" _("on choosing the type of identifier") %} + {% endif %} +
+ {% if prefixes|duplicate_id_types %} + {% comment %} + class 'ays-ignore' is used by 'are-you-sure.js' which prevents users from accidentally leaving + a form they are working on. In this case, we will allow users to choose between shoulder types. + Although it's best we map already filled in fields over to next profile, which is something we should implement. + {% endcomment %} + {% for p in prefixes %} + + {% endfor %} {% else %} - {% help_icon "choose_id" _("on choosing the type of identifier") %} + {% for p in prefixes %} + + {% endfor %} {% endif %} -
- {% if prefixes|duplicate_id_types %} - {% comment %} - class 'ays-ignore' is used by 'are-you-sure.js' which prevents users from accidentally leaving - a form they are working on. In this case, we will allow users to choose between shoulder types. - Although it's best we map already filled in fields over to next profile, which is something we should implement. - {% endcomment %} - {% for p in prefixes %} - - {% endfor %} - {% else %} - {% for p in prefixes %} - - {% endfor %} - {% endif %} -
+ +