Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
Empty file.
3 changes: 2 additions & 1 deletion app/views/contact_us/contacts/_new_left.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<%= f.label(:subject, _('Subject')) %>
<%= f.text_field(:subject,
class: "form-control",
spellcheck: "true",
spellcheck: true,
"aria-required": true) %>
</div>
<% end %>
Expand All @@ -31,6 +31,7 @@
<%= f.text_area(:message,
class: "form-control",
rows: 10,
spellcheck: true,
"aria-required": true) %>
</div>
<% if !user_signed_in? && Rails.configuration.x.recaptcha.enabled then %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/contributors/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ roles_tooltip = _("Select each role that applies to the contributor.")
<%= form.label(:name, _("Name"), class: "control-label") %>
</div>
<div class="col-md-6">
<%= form.text_field :name, class: "form-control", aria: { required: true } %>
<%= form.text_field :name, class: "form-control", spellcheck: true, aria: { required: true } %>
</div>
</div>

Expand Down
3 changes: 2 additions & 1 deletion app/views/devise/invitations/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
</div>
<div class="form-group">
<%= f.label(:firstname, _('First name'), class: 'control-label') %>
<%= f.text_field(:firstname, class: "form-control", "aria-required": true, value: @user.firstname) %>
<%= f.text_field(:firstname, class: "form-control", "aria-required": true,
spellcheck: true, value: @user.firstname) %>
</div>
<div class="form-group">
<%= f.label(:surname, _('Last name'), class: 'control-label') %>
Expand Down
3 changes: 2 additions & 1 deletion app/views/guidances/new_edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ end
<div class="form-group" data-toggle="tooltip" title="<%= guidance_text_tooltip %>">
<em class="sr-only"><%= guidance_text_tooltip %></em>
<%= f.label :text, class: 'control-label' %>
<%= f.text_area :text, rows: 10, class: "form-control", aria: { required: true } %>
<%= f.text_area :text, rows: 10, class: "form-control", spellcheck: true,
aria: { required: true } %>
</div>
<%= render partial: 'org_admin/shared/theme_selector',
locals: { f: f, all_themes: Theme.all.order("title"), as_radio: false, required: true,
Expand Down
5 changes: 3 additions & 2 deletions app/views/notes/_edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
<%= form_for(note, url: note_path(note), method: :put) do |f| %>
<div class="form-group">
<%= f.label(:text, _('Edit comment to share with collaborators')) %>
<%= f.text_area(:text, class: 'form-control', id: "note-#{note.id}") %>
<%= f.text_area(:text, class: 'form-control', id: "note-#{note.id}",
spellcheck: true) %>
</div>
<div class="pull-right">
<%= f.button(_('Save'), class: "btn btn-default", type: "submit") %>
<%= f.button(_('Cancel'), class: "btn btn-default", type: "button") %>
</div>
<% end %>
<% end %>
<% end %>
5 changes: 3 additions & 2 deletions app/views/notes/_new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
<%= f.hidden_field :plan_id, value: plan.id %>
<div class="form-group">
<%= f.label(:text, _('Add comments to share with collaborators')) %>
<%= f.text_area(:text, class: 'form-control note', id: "note-#{question.id}") %>
<%= f.text_area(:text, class: 'form-control note', id: "note-#{question.id}",
spellcheck: true) %>
</div>
<div class="pull-right">
<%= f.button(_('Save'), class: "btn btn-default", type: "submit") %>
</div>
<% end %>
<% end %>
2 changes: 1 addition & 1 deletion app/views/org_admin/annotations/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<%= f.label(:type, lbl, class: "control-label") %>
<div data-toggle="tooltip" title="<%= tooltip_for_annotation_text(f.object) %>">
<em class="sr-only"><%= tooltip_for_annotation_text(f.object) %></em>
<%= f.text_area(:text, class: 'question',
<%= f.text_area(:text, class: 'question', spellcheck: true,
id: "question_annotations_attributes_#{unique_dom_id(f.object)}_text") %>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions app/views/org_admin/phases/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

<div class="form-group col-md-10" data-toggle="tooltip" title="<%= _("Enter a basic description. This will be presented to users on the 'Admin Plan' tab, above the summary of the sections and questions which they will be asked to answer.") %>">
<%= f.label(:description, _('Description'), class: "control-label") %>
<%= f.text_area(:description, class: "phase") %>
<%= f.text_area(:description, class: "phase", spellcheck: true) %>
</div>

<div class="form-group col-md-4 pull-right">
<%= f.button(_('Save'), class: 'btn btn-default', type: "submit") %>
</div>
</div>
4 changes: 2 additions & 2 deletions app/views/org_admin/questions/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<!--Question text -->
<div class="form-group col-md-10">
<%= f.label(:text, _('Question text'), class: "control-label") %>
<%= f.text_area(:text, class: "question", "aria-required": true) %>
<%= f.text_area(:text, class: "question", spellcheck: true, "aria-required": true) %>
</div>

<!-- Question format -->
Expand Down Expand Up @@ -52,7 +52,7 @@
<%= render partial: 'org_admin/conditions/container', locals: { f: f, question: question, conditions: conditions } %>
</p>
</div>
<% else %>
<% else %>
<div class="form-group" data-toggle="tooltip", title="<%= _('Save this question before adding conditions.') %>" >
<%= link_to _('Add Conditions'), '#', class: "add-logic btn btn-default disabled" %>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/org_admin/templates/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div class="form-group col-xs-8" data-toggle="tooltip" title="<%= description_tooltip %>">
<em class="sr-only"><%= description_tooltip %></em>
<%= f.label(:description, _('Description'), class: "control-label") %>
<%= f.text_area(:description, class: "template") %>
<%= f.text_area(:description, class: "template", spellcheck: true) %>
</div>

<% if current_user.org.funder? && !current_user.org.funder_only? %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/orgs/_feedback_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<div class="row">
<div class="form-group col-xs-8" data-html="true">
<%= f.label :feedback_msg, _('Message'), class: "control-label" %>
<%= f.text_area :feedback_msg, class: "form-control",
<%= f.text_area :feedback_msg, class: "form-control", spellcheck: true,
"aria-required" => true %>
</div>
<div class="form-group col-xs-4">
Expand All @@ -38,4 +38,4 @@
<%= f.button(_('Save'), id:"save_org_submit", class: "btn btn-primary", type: "submit") %>
</div>
</div>
<% end %>
<% end %>
35 changes: 23 additions & 12 deletions app/views/plans/_project_details.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ethics_report_tooltip = _("Link to a protocol from a meeting with an ethics comm
<div class="col-md-8" data-toggle="tooltip" title="<%= project_abstract_tooltip %>">
<em class="sr-only"><%= project_abstract_tooltip %></em>
<%= form.text_area :description, rows: 6, class: 'form-control tinymce',
"aria-required": false %>
spellcheck: true, "aria-required": false %>
</div>
</div>

Expand Down Expand Up @@ -94,10 +94,12 @@ ethics_report_tooltip = _("Link to a protocol from a meeting with an ethics comm
</div>
<div class="col-md-8">
<em class="sr-only"><%= id_tooltip %></em>
<%= form.text_field :identifier, class: "form-control",
aria: { required: false },
data: { toggle: "tooltip" },
spellcheck: true, title: id_tooltip %>
<%= form.text_field :identifier,
class: "form-control",
aria: { required: false },
data: { toggle: "tooltip" },
spellcheck: true,
title: id_tooltip %>
</div>
</div>
<% end %>
Expand All @@ -120,8 +122,11 @@ ethics_report_tooltip = _("Link to a protocol from a meeting with an ethics comm
</div>
<div class="col-md-8" data-toggle="tooltip" title="<%= ethics_description_tooltip %>">
<em class="sr-only"><%= ethics_description_tooltip %></em>
<%= form.text_area :ethical_issues_description, rows: 6, class: 'form-control tinymce',
"aria-required": false %>
<%= form.text_area :ethical_issues_description,
rows: 6,
class: 'form-control tinymce',
spellcheck: true,
"aria-required": false %>
</div>
</div>
<div class="form-group toggleable-field">
Expand All @@ -130,9 +135,11 @@ ethics_report_tooltip = _("Link to a protocol from a meeting with an ethics comm
</div>
<div class="col-md-8">
<em class="sr-only"><%= ethics_report_tooltip %></em>
<%= form.url_field(:ethical_issues_report, class: "form-control", "aria-required": false,
'data-toggle': 'tooltip',
title: ethics_report_tooltip) %>
<%= form.url_field(:ethical_issues_report,
class: "form-control",
"aria-required": false,
'data-toggle': 'tooltip',
title: ethics_report_tooltip) %>
</div>
</div>
</conditional>
Expand Down Expand Up @@ -178,8 +185,12 @@ ethics_report_tooltip = _("Link to a protocol from a meeting with an ethics comm
<%# If the OpenAire grant typeahead if enabled use it %>
<% if Rails.configuration.x.open_aire.active %>
<!-- Using the research_project.json source for typeahead -->
<%= grant_fields.text_field :name, value: plan.grant&.value, class: "form-control grant-id-typeahead",
autocomplete: "off", aria: { required: false } %>
<%= grant_fields.text_field :name,
value: plan.grant&.value,
class: "form-control grant-id-typeahead",
spellcheck: true,
autocomplete: "off",
aria: { required: false } %>
<%= grant_fields.hidden_field :value %>
<span class="text-muted" id="grant_number_info">Grant number: <%= plan.grant&.value %></span>
<% else %>
Expand Down
1 change: 1 addition & 0 deletions app/views/shared/org_selectors/_combined.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ placeholder = _("Begin typing to see a list of suggestions.")
<%= form.text_field :org_name, class: "form-control autocomplete",
placeholder: placeholder,
value: presenter.name,
spellcheck: true,
aria: {
label: placeholder,
autocomplete: "list",
Expand Down
1 change: 1 addition & 0 deletions app/views/shared/org_selectors/_external_only.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ placeholder = _("Begin typing to see a list of suggestions.")
<%= form.text_field :org_name, class: "form-control autocomplete",
placeholder: placeholder,
value: presenter.name,
spellcheck: true,
aria: {
label: placeholder,
autocomplete: "list",
Expand Down
1 change: 1 addition & 0 deletions app/views/shared/org_selectors/_local_only.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ placeholder = _("Begin typing to see a list of suggestions.")
<%= form.text_field :org_name, class: "form-control autocomplete",
placeholder: placeholder,
value: presenter.name,
spellcheck: true,
aria: {
label: placeholder,
autocomplete: "list",
Expand Down
4 changes: 3 additions & 1 deletion app/views/super_admin/api_clients/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ orgs = Org.where(is_other: false)
<div class="row">
<div class="form-group col-xs-8">
<%= f.label :description, _('Description'), class: 'control-label' %>
<%= f.text_area :description, class: 'form-control api-client-text' %>
<%= f.text_area :description,
class: 'form-control api-client-text',
spellcheck: true %>
</div>
</div>
<div class="row">
Expand Down
1 change: 1 addition & 0 deletions app/views/super_admin/notifications/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
<%= f.text_area :body,
class: 'form-control notification-text',
value: @notification.body,
spellcheck: true,
"aria-required": true %>
</div>

Expand Down
4 changes: 2 additions & 2 deletions app/views/super_admin/themes/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</div>
<div class="form-group">
<%= f.label(:description, _('Guidance')) %>
<%= f.text_area(:description, class: "form-control", rows: 10) %>
<%= f.text_area(:description, class: "form-control", rows: 10, spellcheck: true) %>
</div>
<div class="pull-right">
<%= f.button(_('Save'), class: "btn btn-default", type: "submit") %>
Expand All @@ -18,4 +18,4 @@
<% end %>
<%= link_to(_('Cancel'), super_admin_themes_path, class: 'btn btn-default', role: 'button') %>
</div>
<% end %>
<% end %>