diff --git a/app/views/devise/registrations/edit.html.erb b/app/views/devise/registrations/edit.html.erb index 5be78f9..967c446 100644 --- a/app/views/devise/registrations/edit.html.erb +++ b/app/views/devise/registrations/edit.html.erb @@ -15,8 +15,8 @@ <%= hidden_field_tag :unlink_flag, "false", id: "unlink_flag" %> <%= f.label :email, _('Email') + " *" %> - <%= f.email_field :email, as: :email, class: "combobox-like" %> -
<%= _('Please enter your current password below when changing your email address.') %>
+ <%= f.email_field :email, as: :email, class: "left-indent input-medium" %> +
<%= _('Please enter your current password below when changing your email address.') %>
@@ -24,14 +24,14 @@ <%= f.text_field :firstname, as: :string, id: "first_time_login_firstname", autofocus: true, - class: "combobox-like has-tooltip", + class: "left-indent input-medium has-tooltip", "data-toggle" => "tooltip", "data-trigger" => "focus" , "title" => _('Please enter your first name.') %> <%= f.label :surname, _('Last name') + " *" %> <%= f.text_field :surname, as: :string, id: "first_time_login_surname", - class: "combobox-like has-tooltip", "data-toggle" => "tooltip", + class: "left-indent input-medium has-tooltip", "data-toggle" => "tooltip", "data-trigger" => "focus" , "title" => _('Please enter your surname or family name.') %> @@ -41,13 +41,14 @@ id: "#{resource_name}_org_name", default_selection: @default_org, models: @orgs, - attribute: 'name'} %> + attribute: 'name', + classes: 'input-large'} %> <% if MANY_LANGUAGES %> <% lang = current_user.language.nil? ? FastGettext.default_locale : current_user.language.abbreviation %> <%= f.label :language, _('Language') %> + -
+
<%= _('We found multiple DMP templates corresponding to your funder.') %>
diff --git a/app/views/plans/_plan_details.html.erb b/app/views/plans/_plan_details.html.erb index b277af4..4a5dfc4 100644 --- a/app/views/plans/_plan_details.html.erb +++ b/app/views/plans/_plan_details.html.erb @@ -9,77 +9,60 @@
"> - -
-

- <%= raw _("Please fill in the basic project details below and click 'Update' to save")%> -

+ <%= form_for @plan, url: {controller: :plans, action: :update }, + html: {method: :put, class: "side-by-side"} do |f| %> +
+ + +
+

<%= _('Please fill in the basic project details below') %>

+ +
+ <%= f.label :title, _('Plan name') %> + <%= f.text_field :title, class: "left-indent input-large has-tooltip", 'data-toggle': "tooltip", + 'title': _('If applying for funding, state the name exactly as in the grant proposal.') %> +
+
+ <%= f.label :identifier, _('ID') %> + <%= f.text_field :identifier, class: 'left-indent input-medium has-tooltip', 'data-toggle': "tooltip", + 'title': _('A pertinent ID as determined by the funder and/or institution.') %> +
+
+ <%= f.label :grant_number, _('Grant number') %> + <%= f.text_field :grant_number, class: 'tleft-indent input-medium has-tooltip', + 'data-toggle': "tooltip", + 'title': _('Grant reference number if applicable [POST-AWARD DMPs ONLY]') %> +
+
+ <%= f.label :principal_investigator, _('Principal Investigator/Researcher') %> + <%= f.text_field :principal_investigator, class: 'left-indent input-medium has-tooltip', + 'data-toggle': "tooltip", + 'title': _('Name of Principal Investigator(s) or main researcher(s) on the project.') %> +
+
+ <%= f.label :principal_investigator_identifier, _('Principal Investigator/Researcher ID') %> + <%= f.text_field :principal_investigator_identifier, class: 'left-indent input-medium has-tooltip', + 'data-toggle': "tooltip", 'title': _('E.g ORCID http://orcid.org/.') %> +
+
+ <%= f.label :data_contact, _('Plan data contact') %> + <%= f.text_field :data_contact, class: 'left-indent input-medium has-tooltip', + 'data-toggle': "tooltip", + 'title': _('Name (if different to above), telephone and email contact details') %> +
+
+ <%= f.label :description, _('Description') %> + <%= f.text_area :description, { rows: 7, class: 'left-indent input-large has-tooltip', + 'data-toggle': "tooltip", 'data-html': "true", + 'title': _("

Questions to consider:

  • - What is the nature of your research project?
  • - What research questions are you addressing?
  • - For what purpose are the data being collected or created?

Guidance:

Briefly summarise the type of study (or studies) to help others understand the purposes for which the data are being collected or created.

")} %> +
+
- - -
- - <%= semantic_form_for @plan, :url => {:controller => :plans, :action => :update }, :html=>{:method=>:put} do |f| %> - <%= f.inputs do %> -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
<%= _('Plan name') %> - <%= f.text_field :title, :class => 'text_field has-tooltip', 'data-toggle' => "tooltip", 'title' => _('If applying for funding, state the name exactly as in the grant proposal.') %> -
<%= _('ID') %> - <%= f.text_field :identifier, :class => 'text_field has-tooltip', 'data-toggle' => "tooltip", 'title' => _('A pertinent ID as determined by the funder and/or institution.') %> -
<%= _('Grant number') %> - <%= f.text_field :grant_number, :class => 'text_field has-tooltip', 'data-toggle' => "tooltip", 'title' => _('Grant reference number if applicable [POST-AWARD DMPs ONLY]') %> -
<%= _('Principal Investigator/Researcher') %> - <%= f.text_field :principal_investigator, :class => 'text_field has-tooltip', 'data-toggle' => "tooltip", 'title' => _('Name of Principal Investigator(s) or main researcher(s) on the project.') %> -
<%= _('Principal Investigator/Researcher ID') %> - <%= f.text_field :principal_investigator_identifier, :class => 'text_field has-tooltip', 'data-toggle' => "tooltip", 'title' => _('E.g ORCID http://orcid.org/.') %> -
<%= _('Plan data contact') %> - <%= f.text_field :data_contact, :class => 'text_field has-tooltip', 'data-toggle' => "tooltip", 'title' => _('Name (if different to above), telephone and email contact details') %> -
<%= _('Description') %> - <%= f.text_area :description, { :rows => 7, :class => 'text_area has-tooltip', 'data-toggle' => "tooltip", 'data-html' => "true", 'title'=> _("

Questions to consider:

  • - What is the nature of your research project?
  • - What research questions are you addressing?
  • - For what purpose are the data being collected or created?

Guidance:

Briefly summarise the type of study (or studies) to help others understand the purposes for which the data are being collected or created.

")} %> -
-
- <% end %> - - <%= f.actions do %> -
- <%= f.submit _('Save'), :class => 'btn btn-primary' %> - <%= _('Cancel') %> -
- <%end%> - <%end%> + +
+ + + <%end%>
diff --git a/app/views/plans/new.html.erb b/app/views/plans/new.html.erb index f0d51cd..9651ce1 100644 --- a/app/views/plans/new.html.erb +++ b/app/views/plans/new.html.erb @@ -19,8 +19,9 @@ <% default_name = (current_user.firstname.blank? ? _('My Plan') : current_user.firstname + "'s" + _(" Plan")) %> - -
+ +
<%= _('If applying for funding, state the title exactly as in the proposal.') %>
@@ -38,7 +39,8 @@ id: 'plan_org_name', default_selection: @default_org, models: @orgs, - attribute: 'name'} %> + attribute: 'name', + classes: 'input-large'} %> @@ -61,7 +63,8 @@ id: 'plan_funder_name', default_selection: nil, models: @funders, - attribute: 'name'} %> + attribute: 'name', + classes: 'input-large'} %> diff --git a/app/views/shared/_accessible_combobox.html.erb b/app/views/shared/_accessible_combobox.html.erb index 96dda5c..7eb94e3 100644 --- a/app/views/shared/_accessible_combobox.html.erb +++ b/app/views/shared/_accessible_combobox.html.erb @@ -3,7 +3,7 @@ <% models.map{|m| json[m[attribute]] = m.id} %>