diff --git a/app/views/phases/_show_phase.html.erb b/app/views/phases/_show_phase.html.erb index f110902..0fb55d0 100644 --- a/app/views/phases/_show_phase.html.erb +++ b/app/views/phases/_show_phase.html.erb @@ -1,19 +1,19 @@

- <%= t('org_admin.templates.phase_details_label')%> + <%= _('Phase details')%> <% if @phase.modifiable %>
- <%= link_to t("org_admin.templates.edit_phase_details_label"), '#', class: "btn btn-primary", id: "edit_phase_button"%> + <%= link_to _('Edit phase details'), '#', class: "btn btn-primary", id: "edit_phase_button"%>
<% end %>

<% if @phase.template.org.not_funder %>
- <%= raw t('org_admin.templates.phase_details_text_html')%> + <%= raw _('

Here you set the title that users will see. If you intend to have multiple phases for you DMP, this should be clear in the title and description.

')%>

<% end %> @@ -22,15 +22,15 @@ - + - + - +
<%= t('org_admin.templates.title_label') %><%= _('Title') %> <%= @phase.title %>
<%= t('org_admin.templates.phase_order_label') %><%= _('Order of display') %> <%= @phase.number %>
<%= t('org_admin.templates.desc_label') %><%= _('Description') %> <%= raw @phase.description %>
diff --git a/app/views/phases/admin_add.html.erb b/app/views/phases/admin_add.html.erb index 489eb4d..ce326b8 100644 --- a/app/views/phases/admin_add.html.erb +++ b/app/views/phases/admin_add.html.erb @@ -6,7 +6,7 @@ <%= @template.title %>
- <%= link_to t("org_admin.templates.view_all_templates"), + <%= link_to _('View all templates'), admin_index_template_path, class: "btn btn-primary" %>
@@ -28,31 +28,31 @@ <%= form_for :phase, url: { admin_create_phase_path} do |f| %>

- <%= t("org_admin.templates.phase_details_label")%> + <%= _('Phase details')%>

- <%= raw t("org_admin.templates.phase_new_text_html")%> + <%= raw _('When you create a new phase for your template, a version will automatically be created. Once you complete the form below you will be provided with options to create sections and questions.')%>
<%= f.hidden_field :template_id, value: @template.id%> - + + class: "text_field has-tooltip", "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') %> - - + + - + @@ -62,8 +62,8 @@
- <%= f.submit t("helpers.submit.save"), class: "btn btn-primary" %> - <%= link_to t("helpers.submit.cancel"), admin_template_template_path(@template), class: "btn cancel" %> + <%= f.submit _('Save'), class: "btn btn-primary" %> + <%= link_to _('Cancel'), admin_template_template_path(@template), class: "btn cancel" %>
<%end%> diff --git a/app/views/phases/admin_preview.html.erb b/app/views/phases/admin_preview.html.erb index 63b0f9a..1f87258 100644 --- a/app/views/phases/admin_preview.html.erb +++ b/app/views/phases/admin_preview.html.erb @@ -5,10 +5,10 @@ <%= @template.title %>
- <%= link_to t("org_admin.templates.back_to_edit_phase_label"), + <%= link_to _('Back to edit view'), admin_show_phase_path(id: @phase.id, edit: "true"), class: 'btn btn-primary' %> - <%= link_to t("org_admin.templates.view_all_templates"), + <%= link_to _('View all templates'), admin_index_template_path, class: 'btn btn-primary' %>
diff --git a/app/views/phases/admin_show.html.erb b/app/views/phases/admin_show.html.erb index f00abdb..8763623 100644 --- a/app/views/phases/admin_show.html.erb +++ b/app/views/phases/admin_show.html.erb @@ -8,7 +8,7 @@ <%= @phase.template.title %>
- <%= link_to t("org_admin.templates.view_all_templates"), + <%= link_to _('View all templates'), admin_index_template_path, class: 'btn btn-primary' %>
@@ -61,7 +61,7 @@
- <%= link_to t('org_admin.add_section_label'),'#', id: 'add_section_button', class: 'btn btn-primary' %> + <%= link_to _('Add section'),'#', id: 'add_section_button', class: 'btn btn-primary' %>
<% end %>
<%= t("org_admin.templates.title_label") %><%= _('Title') %> <%= f.text_field :title, as: :string, - class: "text_field has-tooltip", "data-toggle" => "tooltip", "title" => t("org_admin.templates.phase_title_help_text") %>
<%= t("org_admin.templates.phase_order_label") %><%= f.number_field :number, in: 1..5, class: "number_field has-tooltip", "data-toggle" => "tooltip", title: t("org_admin.templates.phase_number_help_text") %><%= _('Order of display') %><%= f.number_field :number, in: 1..5, class: "number_field has-tooltip", "data-toggle" => "tooltip", title: _('This allows you to order the phases of your template.') %>
<%= t("org_admin.templates.desc_label") %><%= _('Description') %>
<%= text_area_tag("phase-desc","" , class: "tinymce") %>
- <%= link_to( image_tag("help_button.png"), "#", class: "phase_desc_popover", rel: "popover", "data-html" => "true", "data-content" => t("org_admin.templates.phase_desc_help_text_html"))%> + <%= link_to( image_tag("help_button.png"), "#", class: "phase_desc_popover", rel: "popover", "data-html" => "true", "data-content" => _("Enter a basic description. This will be presented to users on the 'Admin Plan' tab, above the summary of the sections and questions which they will be asked to answer."))%>