diff --git a/app/views/plans/new.html.erb b/app/views/plans/new.html.erb index eea3a57..acd9b91 100644 --- a/app/views/plans/new.html.erb +++ b/app/views/plans/new.html.erb @@ -3,7 +3,7 @@

<%= _('Create a new plan') %>

- <%= _("Before you get started, we need to ask a few questions to set you up with the best DMP template for your needs.") %> + <%= _("Before you get started, we need some information about your research project to set you up with the best DMP template for your needs.") %>

@@ -62,6 +62,7 @@ default_selection: nil, models: @funders, attribute: 'name', + tooltip: _('Please select a valid 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 4fe65ca..2aca224 100644 --- a/app/views/shared/_accessible_combobox.html.erb +++ b/app/views/shared/_accessible_combobox.html.erb @@ -1,5 +1,6 @@ <% if !models.nil? %> <% json = {} %> + <% tooltip = tooltip ||= _('Please select a valid %{entity} from the list.' % {entity: attribute}) %> <% models.map{|m| json[m[attribute]] = m.id} %> + value="<%= default_selection[attribute] unless default_selection.nil? %>" + data-toggle="tooltip" + data-content="<%= tooltip %>" /> <% models.each do |model| %>