diff --git a/app/views/devise/registrations/new.html.erb b/app/views/devise/registrations/new.html.erb
index 0c689be..d9242fa 100644
--- a/app/views/devise/registrations/new.html.erb
+++ b/app/views/devise/registrations/new.html.erb
@@ -1,13 +1,19 @@
-
- <%= (_("%{application_name} doesn't recognise your institutional credentials - either you haven't created an account with us or you haven't linked these details to your existing account.
* If you do not have an account with %{application_name}, please complete the form below.
* If you have an account with %{application_name}, please Sign in so we can link your account to your institutional credentials.
Once you have created and/or linked your account, you'll be able to sign in with your institutional credentials directly.") % { :application_name => Rails.configuration.branding[:application][:name] }).html_safe %>
-
- <% cookies[:show_shib_link] = { value: 'show_shib_link', expires: 3.hours.from_now } %>
-<% end %>
-
-
diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb
index 90556a7..34c952a 100644
--- a/app/views/devise/sessions/new.html.erb
+++ b/app/views/devise/sessions/new.html.erb
@@ -1,33 +1,39 @@
-
+
+
+
<%= _('Sign in') %>
+
+
- <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
-
-
-
- | <%= _('Email') %> |
- <%= f.email_field :email, :autofocus => true %> |
-
-
- | <%= _('Password') %> |
- <%= f.password_field :password %> |
-
-
- | |
- <% if devise_mapping.rememberable? -%>
-
- <%= f.check_box :remember_me %>
- <%= f.label :remember_me %>
-
- <% end -%>
- |
-
-
-
- <%= f.submit _('Sign in'), :class => "btn btn-primary" %>
-
-
- <% end %>
-
- <%= render "devise/shared/links" %>
+
+
+ <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
+
+
+
+ | <%= _('Email') %> |
+ <%= f.email_field :email, :autofocus => true %> |
+
+
+ | <%= _('Password') %> |
+ <%= f.password_field :password %> |
+
+
+ | |
+ <% if devise_mapping.rememberable? -%>
+
+ <%= f.check_box :remember_me %>
+ <%= f.label :remember_me %>
+
+ <% end -%>
+ |
+
+
+
+ <%= f.submit _('Sign in'), :class => "btn btn-primary" %>
+
+
+ <% end %>
+
+ <%= render "devise/shared/links" %>
+
diff --git a/app/views/devise/unlocks/new.html.erb b/app/views/devise/unlocks/new.html.erb
index 40792b2..08db6da 100644
--- a/app/views/devise/unlocks/new.html.erb
+++ b/app/views/devise/unlocks/new.html.erb
@@ -1,12 +1,20 @@
-
<%= t('custom_devise.resend_unlock') %>
+
+
+
<%= t('custom_devise.resend_unlock') %>
+
+
-<%= form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f| %>
- <%= devise_error_messages! %>
+
+
+ <%= form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f| %>
+ <%= devise_error_messages! %>
-
<%= f.label :email %>
- <%= f.email_field :email, :autofocus => true %>
+
<%= f.label :email %>
+ <%= f.email_field :email, :autofocus => true %>
-
<%= f.submit "Resend unlock instructions" %>
-<% end %>
+
<%= f.submit "Resend unlock instructions" %>
+ <% end %>
-<%= render "devise/shared/links" %>
+ <%= render "devise/shared/links" %>
+
+
\ No newline at end of file
diff --git a/app/views/guidance_groups/admin_edit.html.erb b/app/views/guidance_groups/admin_edit.html.erb
index f89dc20..bd1d437 100644
--- a/app/views/guidance_groups/admin_edit.html.erb
+++ b/app/views/guidance_groups/admin_edit.html.erb
@@ -1,6 +1,10 @@
<% javascript 'admin.js' %>
-
<%= _('Guidance group') %>
+
+
+
<%= _('Guidance group') %>
+
+
diff --git a/app/views/guidance_groups/admin_new.html.erb b/app/views/guidance_groups/admin_new.html.erb
index a34bf17..721ed63 100644
--- a/app/views/guidance_groups/admin_new.html.erb
+++ b/app/views/guidance_groups/admin_new.html.erb
@@ -1,6 +1,10 @@
<% javascript 'admin.js' %>
-
<%= _('Guidance group') %>
+
+
+
<%= _('Guidance group') %>
+
+
diff --git a/app/views/guidances/admin_edit.html.erb b/app/views/guidances/admin_edit.html.erb
index c260533..57097a1 100644
--- a/app/views/guidances/admin_edit.html.erb
+++ b/app/views/guidances/admin_edit.html.erb
@@ -1,6 +1,10 @@
<% javascript 'views/guidances/admin_edit.js' %>
-
<%= _('Guidance') %>
+
+
+
<%= _('Guidance') %>
+
+
diff --git a/app/views/guidances/admin_index.html.erb b/app/views/guidances/admin_index.html.erb
index 27b2b8a..e7298fa 100644
--- a/app/views/guidances/admin_index.html.erb
+++ b/app/views/guidances/admin_index.html.erb
@@ -1,10 +1,14 @@
<% javascript "admin.js" %>
-
<%= _('Guidance') %>
+
+
+
<%= _('Guidance') %>
-
- <%= _("First create a guidance group. This could be institution wide or a subset e.g. a particular College / School, Institute or department. When you create guidance you'll be asked to assign it to a guidance group.") %>
-
+
+ <%= _("First create a guidance group. This could be institution wide or a subset e.g. a particular College / School, Institute or department. When you create guidance you'll be asked to assign it to a guidance group.") %>
+
+
+
diff --git a/app/views/guidances/admin_new.html.erb b/app/views/guidances/admin_new.html.erb
index d86038c..b2d68de 100644
--- a/app/views/guidances/admin_new.html.erb
+++ b/app/views/guidances/admin_new.html.erb
@@ -1,7 +1,11 @@
<% javascript 'views/guidances/admin_edit.js' %>
-
<%= _('New guidance') %>
+
+
+
<%= _('New guidance') %>
+
+
diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb
index ac6511e..d66a5a5 100644
--- a/app/views/home/index.html.erb
+++ b/app/views/home/index.html.erb
@@ -2,7 +2,11 @@
+
+
<%= raw _('
%{application_name} has been jointly developed by the %{organisation_name} to help you write data management plans.
') % {:application_name => Rails.configuration.branding[:application][:name], :organisation_name => Rails.configuration.branding[:organisation][:name]} %>
<%= _('Screencast on how to use %{application_name}') % {:application_name => Rails.configuration.branding[:application][:name]} %>
diff --git a/app/views/orgs/admin_edit.html.erb b/app/views/orgs/admin_edit.html.erb
index f823dee..a1c18f5 100644
--- a/app/views/orgs/admin_edit.html.erb
+++ b/app/views/orgs/admin_edit.html.erb
@@ -1,6 +1,10 @@
<% javascript 'views/orgs/admin_edit.js' %>
-
<%= _('Organisation details') %>
+
+
+
<%= _('Organisation details') %>
+
+
diff --git a/app/views/orgs/shibboleth_ds.html.erb b/app/views/orgs/shibboleth_ds.html.erb
index 763fc4c..638d43f 100644
--- a/app/views/orgs/shibboleth_ds.html.erb
+++ b/app/views/orgs/shibboleth_ds.html.erb
@@ -1,6 +1,10 @@
<% javascript 'views/orgs/shibboleth_ds.js'%>
-
Find your institution to sign in
+
+
+
Find your institution to sign in
+
+
diff --git a/app/views/phases/admin_add.html.erb b/app/views/phases/admin_add.html.erb
index 9326e00..6dabbe7 100644
--- a/app/views/phases/admin_add.html.erb
+++ b/app/views/phases/admin_add.html.erb
@@ -1,7 +1,11 @@
<%- model_class = Phase -%>
<% javascript "admin.js" %>
-
<%= @template.title %>
+
+
+
<%= @template.title %>
+
+
diff --git a/app/views/phases/admin_preview.html.erb b/app/views/phases/admin_preview.html.erb
index 0b7f689..0e7466a 100644
--- a/app/views/phases/admin_preview.html.erb
+++ b/app/views/phases/admin_preview.html.erb
@@ -1,60 +1,64 @@
<%- model_class = Phase -%>
-
- <%= @template.title %>
-
-
- <%= link_to _('Back to edit view'),
- admin_show_phase_path(id: @phase.id, edit: "true"),
- class: 'btn btn-primary' %>
- <%= link_to _('View all templates'),
- admin_index_template_path,
- class: 'btn btn-primary' %>
+
+
+
+ <%= @template.title %>
+
+
+ <%= link_to _('Back to edit view'),
+ admin_show_phase_path(id: @phase.id, edit: "true"),
+ class: 'btn btn-primary' %>
+ <%= link_to _('View all templates'),
+ admin_index_template_path,
+ class: 'btn btn-primary' %>
+
+
-
+
-
- <%= render partial: "templates/admin_nav_tabs", locals: {template: @template, active: @phase.id} %>
+
+ <%= render partial: "templates/admin_nav_tabs", locals: {template: @template, active: @phase.id} %>
-
-
-
- <% sections = @phase.sections %>
- <% sections.order(:number).each do |section| %>
-
-
-
-
- <%= raw section.description %>
-
-
- <% last_question_id = section.questions.order("number DESC").first.id%>
+
+
+
+ <% sections = @phase.sections %>
+ <% sections.order(:number).each do |section| %>
+
+
+
+
+ <%= raw section.description %>
+
+
+ <% last_question_id = section.questions.order("number DESC").first.id%>
- <% section.questions.order("number").each do |question| %>
-
- <%= render partial: 'questions/preview_question', locals: {question: question}%>
- <% if last_question_id == question.id then %>
-
- <% else %>
-
- <% end %>
+ <% section.questions.order("number").each do |question| %>
+
+ <%= render partial: 'questions/preview_question', locals: {question: question}%>
+ <% if last_question_id == question.id then %>
+
+ <% else %>
+
+ <% end %>
- <% end %>
-
-
-
- <% end %>
-
-
-
+ <% end %>
+
+
+
+ <% end %>
+
+
+
\ No newline at end of file
diff --git a/app/views/phases/admin_show.html.erb b/app/views/phases/admin_show.html.erb
index 96f2aba..e7a6854 100644
--- a/app/views/phases/admin_show.html.erb
+++ b/app/views/phases/admin_show.html.erb
@@ -1,6 +1,10 @@
<% javascript 'admin.js' %>
-<%= @phase.template.title %>
+
+
+
<%= @phase.template.title %>
+
+
diff --git a/app/views/phases/edit.html.erb b/app/views/phases/edit.html.erb
index 18c914c..22f8293 100644
--- a/app/views/phases/edit.html.erb
+++ b/app/views/phases/edit.html.erb
@@ -4,9 +4,12 @@
so if we come this way then we are editing a phase
-->
-
-
<%= @plan.title %>
-
+
+
+
+
<%= @plan.title %>
+
+
diff --git a/app/views/plans/new.html.erb b/app/views/plans/new.html.erb
index 9453750..13297ab 100644
--- a/app/views/plans/new.html.erb
+++ b/app/views/plans/new.html.erb
@@ -1,9 +1,14 @@
<% javascript "views/plans/new.js" %>
-
<%= _('Create a new plan') %>
-
- <%= _("Before you get started, we need some information about your research project to set you up with the best DMP template for your needs.") %>
-
+
+
+
<%= _('Create a new plan') %>
+
+
+ <%= _("Before you get started, we need some information about your research project to set you up with the best DMP template for your needs.") %>
+
+
+
diff --git a/app/views/plans/share.html.erb b/app/views/plans/share.html.erb
index ff17499..6bcbb6d 100644
--- a/app/views/plans/share.html.erb
+++ b/app/views/plans/share.html.erb
@@ -1,6 +1,11 @@
<% javascript('views/plans/share.js') %>
-
-
<%= @plan.title %>
+
+
+
+
+
<%= @plan.title %>
+
+
diff --git a/app/views/plans/show.html.erb b/app/views/plans/show.html.erb
index b96c8c9..85c18ec 100644
--- a/app/views/plans/show.html.erb
+++ b/app/views/plans/show.html.erb
@@ -1,5 +1,9 @@
-
-
<%= @plan.title %>
+
+
+
+
<%= @plan.title %>
+
+
diff --git a/app/views/plans/show_export.html.erb b/app/views/plans/show_export.html.erb
index 4d23e85..9cd7704 100644
--- a/app/views/plans/show_export.html.erb
+++ b/app/views/plans/show_export.html.erb
@@ -1,7 +1,12 @@
<%- model_class = Plan -%>
<% javascript('views/plans/export_configure.js') %>
-
-
<%= @plan.title %>
+
+
+
+
+
<%= @plan.title %>
+
+
diff --git a/app/views/public_pages/plan_index.html.erb b/app/views/public_pages/plan_index.html.erb
index 420972e..d3ba7bf 100644
--- a/app/views/public_pages/plan_index.html.erb
+++ b/app/views/public_pages/plan_index.html.erb
@@ -1,5 +1,10 @@
<%- model_class = Plan -%>
-
<%= raw _('Public DMPs') %>
+
+
+
+
<%= raw _('Public DMPs') %>
+
+
diff --git a/app/views/public_pages/template_index.html.erb b/app/views/public_pages/template_index.html.erb
index b6316af..4c9eb36 100644
--- a/app/views/public_pages/template_index.html.erb
+++ b/app/views/public_pages/template_index.html.erb
@@ -1,4 +1,8 @@
-
<%= raw _('DMP Templates') %>
+
+
+
<%= raw _('DMP Templates') %>
+
+
diff --git a/app/views/settings/phases/show.html.erb b/app/views/settings/phases/show.html.erb
index c719d53..796bd51 100644
--- a/app/views/settings/phases/show.html.erb
+++ b/app/views/settings/phases/show.html.erb
@@ -1,6 +1,13 @@
+
+
+
<%= _('File Name') -%> - <%= @plan.title -%>
+
<%= _('Description') -%>
+
+
-
<%= _('File Name') -%> - <%= @plan.title -%>
-
<%= _('Description') -%>
-
-<%= render "export_formatting_form" %>
+
+
+ <%= render "export_formatting_form" %>
+
+
diff --git a/app/views/static_pages/help.html.erb b/app/views/static_pages/help.html.erb
index f863ce3..3ca4fe5 100644
--- a/app/views/static_pages/help.html.erb
+++ b/app/views/static_pages/help.html.erb
@@ -1,4 +1,8 @@
-
<%= _('Help')%>
+
diff --git a/app/views/static_pages/roadmap.html.erb b/app/views/static_pages/roadmap.html.erb
index 3804ac7..2e72ac9 100644
--- a/app/views/static_pages/roadmap.html.erb
+++ b/app/views/static_pages/roadmap.html.erb
@@ -1,4 +1,8 @@
-
<%= _('Future plans')%>
+
+
+
<%= _('Future plans')%>
+
+
diff --git a/app/views/static_pages/termsuse.html.erb b/app/views/static_pages/termsuse.html.erb
index 866af80..37f0aa7 100644
--- a/app/views/static_pages/termsuse.html.erb
+++ b/app/views/static_pages/termsuse.html.erb
@@ -1,4 +1,8 @@
-
<%= _('Terms of use')%>
+
+
+
<%= _('Terms of use')%>
+
+
diff --git a/app/views/templates/admin_index.html.erb b/app/views/templates/admin_index.html.erb
index 30933a9..7d16d87 100644
--- a/app/views/templates/admin_index.html.erb
+++ b/app/views/templates/admin_index.html.erb
@@ -1,12 +1,15 @@
-
<%= _('Templates') %>
-
+
+
+
<%= _('Templates') %>
-
- <%= _("If you wish to add an institutional template for a Data Management Plan, use the 'create template' button. You can create more than one template if desired e.g. one for researchers and one for PhD students.") %>
-
-
- <%= _("Your template will be presented to users within your institution when no funder templates apply. If you want to add questions to funder templates use the 'customise template' options below.") %>
-
+
+ <%= _("If you wish to add an institutional template for a Data Management Plan, use the 'create template' button. You can create more than one template if desired e.g. one for researchers and one for PhD students.") %>
+
+
+ <%= _("Your template will be presented to users within your institution when no funder templates apply. If you want to add questions to funder templates use the 'customise template' options below.") %>
+
+
+
diff --git a/app/views/templates/admin_new.html.erb b/app/views/templates/admin_new.html.erb
index dcd6a6c..c6c148e 100644
--- a/app/views/templates/admin_new.html.erb
+++ b/app/views/templates/admin_new.html.erb
@@ -1,12 +1,16 @@
<% javascript "admin.js" %>
-
- <%= _('New template') %>
-
-
- <%= link_to _('View all templates'),
- admin_index_template_path, class: "btn btn-primary" %>
+
+
+
+ <%= _('New template') %>
+
+
+ <%= link_to _('View all templates'),
+ admin_index_template_path, class: "btn btn-primary" %>
+
+
-
+
diff --git a/app/views/templates/admin_template.html.erb b/app/views/templates/admin_template.html.erb
index c833745..3d0d441 100644
--- a/app/views/templates/admin_template.html.erb
+++ b/app/views/templates/admin_template.html.erb
@@ -1,57 +1,62 @@
<% javascript 'admin.js' %>
-
<%= @template.title %>
+
+
+
+
<%= @template.title %>
+
+
-
-
- <%= render partial: "templates/admin_nav_tabs", locals: {template: @template, hash: @hash, active: "show_template"} %>
+
+
+ <%= render partial: "templates/admin_nav_tabs", locals: {template: @template, hash: @hash, active: "show_template"} %>
-
-
-
+
+
+
-
-
<%= _('Template details')%>
+
+
<%= _('Template details')%>
-
- <% if @template == @current && @template.customization_of.nil? %>
-
- <%= render partial: "templates/edit_template", locals: {template: @template, hash: @hash}%>
-
- <% end %>
-
- <%= render partial: "templates/show_template", locals: {template: @template, current: @current, hash: @hash}%>
-
-
+
+ <% if @template == @current && @template.customization_of.nil? %>
+
+ <%= render partial: "templates/edit_template", locals: {template: @template, hash: @hash}%>
+
+ <% end %>
+
+ <%= render partial: "templates/show_template", locals: {template: @template, current: @current, hash: @hash}%>
+
+
-
- <% if @hash[:template][:phases].present? %>
- <% if @hash[:template][:phases].length == 1 %>
- <% @hash[:template][:phases].each do |phase_no, phase| %>
-
- <%= render partial: 'templates/show_phases_sections', locals: {phase: phase[:data], phase_hash: phase, template: @template, current: @current} %>
- <% end %>
+
+ <% if @hash[:template][:phases].present? %>
+ <% if @hash[:template][:phases].length == 1 %>
+ <% @hash[:template][:phases].each do |phase_no, phase| %>
+
+ <%= render partial: 'templates/show_phases_sections', locals: {phase: phase[:data], phase_hash: phase, template: @template, current: @current} %>
+ <% end %>
- <% else %>
- <% (1..@hash[:template][:phases].length).each do |phase_no| %>
- <% phase = @hash[:template][:phases][phase_no] %>
-
<%= phase[:data].title %>
+ <% else %>
+ <% (1..@hash[:template][:phases].length).each do |phase_no| %>
+ <% phase = @hash[:template][:phases][phase_no] %>
+
<%= phase[:data].title %>
-
-
- <%= render partial: 'templates/show_phases_sections', locals: {phase: phase[:data], phase_hash: phase, template: @template, current: @current}%>
-
- <% end %>
- <% end %>
- <% end %>
-
+
+
+ <%= render partial: 'templates/show_phases_sections', locals: {phase: phase[:data], phase_hash: phase, template: @template, current: @current}%>
+
+ <% end %>
+ <% end %>
+ <% end %>
+
-
-
-
+
+
+
-
+
diff --git a/app/views/templates/admin_template_history.html.erb b/app/views/templates/admin_template_history.html.erb
index 27ef981..1b699c0 100644
--- a/app/views/templates/admin_template_history.html.erb
+++ b/app/views/templates/admin_template_history.html.erb
@@ -1,8 +1,12 @@
-
<%= _('Template History') %>
+
+
+
<%= _('Template History') %>
-
- <%= _('Here you can view previously published versions of your template. These can no longer be modified.')%>
-
+
+ <%= _('Here you can view previously published versions of your template. These can no longer be modified.')%>
+
+
+
diff --git a/app/views/token_permission_types/index.html.erb b/app/views/token_permission_types/index.html.erb
index 7215979..67ed7ad 100644
--- a/app/views/token_permission_types/index.html.erb
+++ b/app/views/token_permission_types/index.html.erb
@@ -1,14 +1,15 @@
+
+
+ <% @token_types.each do |token_type|%>
+
+ <%= token_type.token_type %>
+
+
-<% @token_types.each do |token_type|%>
-
- <%= token_type.token_type %>
-
-
+
+ <%= token_type.text_description %>
+
-
-
- <%= token_type.text_description %>
-
-
-
-<% end %>
\ No newline at end of file
+ <% end %>
+
+
\ No newline at end of file
diff --git a/app/views/users/admin_grant_permissions.html.erb b/app/views/users/admin_grant_permissions.html.erb
index 71386a4..69b5aa5 100644
--- a/app/views/users/admin_grant_permissions.html.erb
+++ b/app/views/users/admin_grant_permissions.html.erb
@@ -1,6 +1,8 @@
-
- <%= _('Edit User Privileges') %>
-
+
+
+
<%= _('Edit User Privileges') %>
+
+
diff --git a/app/views/users/admin_index.html.erb b/app/views/users/admin_index.html.erb
index 0ca966b..f1888fb 100644
--- a/app/views/users/admin_index.html.erb
+++ b/app/views/users/admin_index.html.erb
@@ -1,9 +1,11 @@
-
- <%= _('List of users') %>
-
-
- <%= _('Below is a list of users registered for your organisation. You can sort the data by each field.')%>
-
+
+
+
<%= _('List of users') %>
+
+ <%= _('Below is a list of users registered for your organisation. You can sort the data by each field.')%>
+
+
+