Skip to content

Commit a5fd512

Browse files
authored
Merge pull request #3517 from DMPRoadmap/aaron/gjacob24-contribution-of-style-of-select-tags-and-plan-download-layout
Additional `form-control` to `form-select` changes & styling changes to "Download settings" subheadings
2 parents 36ba6aa + 72c2519 commit a5fd512

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

app/views/guidances/new_edit.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ end
3434
<%= f.label _('Guidance group'), for: :guidance_group_id, class: 'form-label' %>
3535
<%= f.collection_select(:guidance_group_id,
3636
GuidanceGroup.where(org_id: current_user.org_id).order("name ASC"),
37-
:id, :name, {prompt: false}, {multiple: false, 'data-toggle': 'tooltip', title: _('Select which group this guidance relates to.'), class: 'form-control', 'aria-required': true})%>
37+
:id, :name, {prompt: false}, {multiple: false, 'data-toggle': 'tooltip', title: _('Select which group this guidance relates to.'), class: 'form-select', 'aria-required': true})%>
3838
</div>
3939
<div class="form-check">
4040
<%= f.label :published do %>

app/views/org_admin/questions/_form.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
:title,
3333
question.question_format_id),
3434
{},
35-
class: "form-control question_format",
35+
class: "form-select question_format",
3636
'data-toggle': 'tooltip',
3737
'data-html': true,
3838
title: _("You can choose from:<ul><li>- text area (large box for paragraphs);</li> <li>- text field (for a short answer);</li> <li>- checkboxes where options are presented in a list and multiple values can be selected;</li> <li>- radio buttons where options are presented in a list but only one can be selected;</li> <li>- dropdown like this box - only one option can be selected;</li> <li>- multiple select box allows users to select several options from a scrollable list, using the CTRL key;</li></ul>")

app/views/plans/_download_form.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
</div>
1717
</div>
1818
<div class="row">
19-
<div class="col-sm-12 col-lg-6">
19+
<div class="form-control col-sm-12 col-lg-6">
2020
<fieldset>
21-
<legend><%= _("Optional plan components") %></legend>
21+
<%= label_tag('', _("Optional plan components"), class: 'form-label') %>
2222
<div class="form-check">
2323
<%= label_tag 'export[project_details]', class:'form-check-label' do %>
2424
<%= check_box_tag 'export[project_details]', true, download_coversheet_tickbox_checked %>

app/views/plans/_project_details.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ ethics_report_tooltip = _("Link to a protocol from a meeting with an ethics comm
5050
include_blank: _("- Please select one -"),
5151
selected: form.object.research_domain_id
5252
},
53-
{ class: "form-control" } %>
53+
{ class: "form-select" } %>
5454
</div>
5555
</div>
5656
<% end %>
@@ -171,7 +171,7 @@ ethics_report_tooltip = _("Link to a protocol from a meeting with an ethics comm
171171
include_blank: _("- Please select one -"),
172172
selected: form.object.funding_status
173173
},
174-
{ class: "form-control" } %>
174+
{ class: "form-select" } %>
175175
</div>
176176
<%= form.fields_for :grant, plan.grant do |grant_fields| %>
177177
<div class="col-lg-12">

app/views/research_outputs/_form.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repository_tooltip = _("Repositories preserve, manage, and provide access to man
2323
include_blank: _("- Please select one -"),
2424
selected: (research_output.output_type.present? ? research_output.output_type : "" )
2525
}, {
26-
class: "form-control",
26+
class: "form-select",
2727
aria: { required: true, label: _("Research output type") },
2828
data: { remote: true, url: plan_output_type_selection_path(plan), method: :get }
2929
} %>
@@ -140,7 +140,7 @@ repository_tooltip = _("Repositories preserve, manage, and provide access to man
140140
<%= f.label(:access, _("Initial access level"), class: "form-label") %>
141141
<%= f.select :access, options_for_select(presenter.selectable_access_types, f.object.access),
142142
{ selected: f.object.access },
143-
{ class: "form-control" } %>
143+
{ class: "form-select" } %>
144144
</span>
145145
</div>
146146
</div>

app/views/super_admin/notifications/_form.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<%= f.select :level,
1717
Notification.levels.keys.map { |l| [l.humanize, l] },
1818
{ value: @notification.level },
19-
{ class: 'form-control',
19+
{ class: 'form-select',
2020
data: { toggle: 'tooltip', html: true }, title: _('<strong>Info:</strong> Simple information message, displayed in blue.<br/><strong>Warning:</strong> warning message, for signaling something unusual, displayed in orange.<br/><strong>Danger:</strong> error message, for anything critical, displayed in red') } %>
2121
</div>
2222
</div>

0 commit comments

Comments
 (0)