diff --git a/app/views/plans/new.html.erb b/app/views/plans/new.html.erb index b336152..bf2fc52 100644 --- a/app/views/plans/new.html.erb +++ b/app/views/plans/new.html.erb @@ -34,6 +34,8 @@ default_selection: @default_org, models: @orgs, attribute: 'name', + tooltip: _('Please select a valid research organisation from the list.'), + error: _('You must select a research organisation from the list.'), classes: 'input-full-width'} %> @@ -59,7 +61,8 @@ default_selection: nil, models: @funders, attribute: 'name', - tooltip: _('Please select a valid funding organisation from the list'), + tooltip: _('Please select a valid funding organisation from the list.'), + error: _('You must select a funding organisation from the list.'), classes: 'input-full-width'} %>
diff --git a/app/views/shared/_accessible_combobox.html.erb b/app/views/shared/_accessible_combobox.html.erb index 94d4182..c648cd8 100644 --- a/app/views/shared/_accessible_combobox.html.erb +++ b/app/views/shared/_accessible_combobox.html.erb @@ -1,6 +1,7 @@ <% if !models.nil? %> <% json = {} %> <% models.map{|m| json[m[attribute]] = m.id} %> + <%= tip = tooltip ||= '' %> " class="error-tooltip left-indent"> -