<%= f.label _('Abbreviated name or code'), for: :code, class: "control-label" %>
diff --git a/app/views/org_admin/departments/new.html.erb b/app/views/org_admin/departments/new.html.erb
index 3e2d3c0..0911ab5 100644
--- a/app/views/org_admin/departments/new.html.erb
+++ b/app/views/org_admin/departments/new.html.erb
@@ -12,7 +12,7 @@
<%= f.hidden_field :org_id, value: @org_id %>
<%= f.label _('Name'), for: :name, class: "control-label" %>
- <%= f.text_field :name, as: :string, class: "form-control", 'aria-required': true, 'data-toggle': 'tooltip', title: _('Add the name of a school/department.') %>
+ <%= f.text_field :name, as: :string, class: "form-control", spellcheck: true, 'aria-required': true, 'data-toggle': 'tooltip', title: _('Add the name of a school/department.') %>
<%= f.label _('Abbreviated name or code'), for: :code, class: "control-label" %>
diff --git a/app/views/org_admin/phases/_form.html.erb b/app/views/org_admin/phases/_form.html.erb
index 131f7d2..86e1c32 100644
--- a/app/views/org_admin/phases/_form.html.erb
+++ b/app/views/org_admin/phases/_form.html.erb
@@ -1,7 +1,7 @@
<%= f.hidden_field :template_id, value: template.id%>
<%= f.label(:title, _('Title') ,class: "control-label") %>
- <%= f.text_field(:title, class: "form-control", 'aria-required': true, 'data-toggle': 'tooltip', title: _('Enter a title for the phase e.g. intial DMP, full DMP... This is what users will see in the tabs when completing a plan. If you only have one phase, call it something generic e.g. Glasgow DMP')) %>
+ <%= f.text_field(:title, class: "form-control", spellcheck: true, 'aria-required': true, 'data-toggle': 'tooltip', title: _('Enter a title for the phase e.g. intial DMP, full DMP... This is what users will see in the tabs when completing a plan. If you only have one phase, call it something generic e.g. Glasgow DMP')) %>
@@ -18,6 +18,6 @@
<%= f.text_area(:description, class: "phase") %>
-
<% if i == 1 %>
- <%= op.text_field :text, as: :string, class: 'form-control', 'aria-required': true %>
+ <%= op.text_field :text, as: :string, class: 'form-control', spellcheck: true, 'aria-required': true %>
<% else %>
- <%= op.text_field :text, as: :string, class: 'form-control' %>
+ <%= op.text_field :text, as: :string, class: 'form-control', spellcheck: true %>
<% end %>
diff --git a/app/views/org_admin/questions/_form.html.erb b/app/views/org_admin/questions/_form.html.erb
index 3e7f181..fb31167 100644
--- a/app/views/org_admin/questions/_form.html.erb
+++ b/app/views/org_admin/questions/_form.html.erb
@@ -58,7 +58,7 @@
<%= f.label(:default_value, _('Default answer'), class: "control-label") %>
- <%= f.text_field(:default_value, class: 'form-control') %>
+ <%= f.text_field(:default_value, class: 'form-control', spellcheck: true) %>
<%= text_area_tag('question[default_value]', question.default_value, id: "#{question.id.present? ? question.id : 'new'}_question_default_value_area", class: "form-control question") %>
diff --git a/app/views/org_admin/sections/_form.html.erb b/app/views/org_admin/sections/_form.html.erb
index 951b2ee..9e0ab32 100644
--- a/app/views/org_admin/sections/_form.html.erb
+++ b/app/views/org_admin/sections/_form.html.erb
@@ -1,7 +1,7 @@
<%= form_for(section, url: url, namespace: section.id.present? ? section.id : 'new_section', html: { method: method }) do |f| %>
<%= f.label(:title, _('Title') ,class: "control-label") %>
- <%= f.text_field(:title, { class: "form-control", placeholder: _('Enter a title for the section'), 'data-toggle': 'tooltip', title: _('Enter a title for the section'), 'aria-required': true} ) %>
+ <%= f.text_field(:title, { class: "form-control", placeholder: _('Enter a title for the section'), 'data-toggle': 'tooltip', title: _('Enter a title for the section'), spellcheck: true, 'aria-required': true} ) %>
">
diff --git a/app/views/org_admin/templates/_form.html.erb b/app/views/org_admin/templates/_form.html.erb
index 146b11d..8ad2272 100644
--- a/app/views/org_admin/templates/_form.html.erb
+++ b/app/views/org_admin/templates/_form.html.erb
@@ -1,6 +1,6 @@
<%= f.label(:title, _('Title'), class: "control-label") %>
- <%= f.text_field(:title, class: "form-control", "aria-required": true) %>
+ <%= f.text_field(:title, class: "form-control", spellcheck: true, "aria-required": true) %>
diff --git a/app/views/plans/_edit_details.html.erb b/app/views/plans/_edit_details.html.erb
index 0475ecc..e357103 100644
--- a/app/views/plans/_edit_details.html.erb
+++ b/app/views/plans/_edit_details.html.erb
@@ -6,7 +6,8 @@
<%= f.label(:title, _('Project title'), class: 'control-label') %>
- <%= f.text_field(:title, class: "form-control", "aria-required": true, 'data-toggle': 'tooltip',
+ <%= f.text_field(:title, class: "form-control", "aria-required": true,
+ 'data-toggle': 'tooltip', spellcheck: true,
title: _('If applying for funding, state the name exactly as in the grant proposal.')) %>
<%= f.hidden_field :visibility %>
@@ -25,6 +26,7 @@
<%= f.text_field(
:funder_name,
class: "form-control",
+ spellcheck: true,
"aria-required": false) %>
@@ -58,7 +60,8 @@
<%= f.label(:identifier, _('ID'), class: 'control-label') %>
- <%= f.text_field(:identifier, class: "form-control", "aria-required": false, 'data-toggle': "tooltip",
+ <%= f.text_field(:identifier, class: "form-control", "aria-required": false,
+ 'data-toggle': "tooltip", spellcheck: true,
title: _('A pertinent ID as determined by the funder and/or organisation.')) %>
diff --git a/app/views/plans/new.html.erb b/app/views/plans/new.html.erb
index 8d9b543..755397a 100644
--- a/app/views/plans/new.html.erb
+++ b/app/views/plans/new.html.erb
@@ -19,6 +19,7 @@
<%= f.text_field(:title, class: 'form-control', 'aria-describedby': 'project-title', 'aria-required': 'true', 'aria-label': 'project-title',
'data-toggle': 'tooltip',
'data-placement': 'bottom',
+ spellcheck: true,
title: _('If applying for funding, state the project title exactly as in the proposal.')) %>
diff --git a/app/views/questions/_new_edit_question_textfield.html.erb b/app/views/questions/_new_edit_question_textfield.html.erb
index 8bdb54c..171432f 100644
--- a/app/views/questions/_new_edit_question_textfield.html.erb
+++ b/app/views/questions/_new_edit_question_textfield.html.erb
@@ -1,5 +1,5 @@
<%# locals: { f, question, answer } %>
<%= f.label(:text, sanitize(question.text), class: 'control-label') %>
- <%= text_field_tag('answer[text]', strip_tags(answer.text || question.default_value), class: 'form-control') %>
+ <%= text_field_tag('answer[text]', strip_tags(answer.text || question.default_value), class: 'form-control', spellcheck: true) %>
\ No newline at end of file
diff --git a/app/views/shared/_search.html.erb b/app/views/shared/_search.html.erb
index 56d5b95..19f9a82 100644
--- a/app/views/shared/_search.html.erb
+++ b/app/views/shared/_search.html.erb
@@ -5,7 +5,8 @@
- <%= text_field_tag(:search, search_term, class: 'form-control', 'aria-labelledby': 'search', 'aria-describedby': 'search-addon', 'aria-required': true) %>
+ <%= text_field_tag(:search, search_term, class: 'form-control', 'aria-labelledby': 'search',
+ spellcheck: true, 'aria-describedby': 'search-addon', 'aria-required': true) %>