diff --git a/app/views/guidance_groups/admin_edit.html.erb b/app/views/guidance_groups/admin_edit.html.erb index f81dbfc..006318b 100644 --- a/app/views/guidance_groups/admin_edit.html.erb +++ b/app/views/guidance_groups/admin_edit.html.erb @@ -2,10 +2,10 @@ <% javascript 'admin.js' %>

- <%= t('org_admin.guidance.guidance_group_label') %> + <%= _('Guidance group') %>
- <%= link_to t("org_admin.guidance.view_all_guidance"), + <%= link_to _('View all guidance'), admin_index_guidance_path, class: 'btn btn-primary' %>
@@ -20,7 +20,7 @@ - + <% if @guidance_group.published == true then %> - + <% end %> - + @@ -65,11 +65,11 @@
- <%= f.submit t('helpers.submit.save'), class: 'btn btn-primary' %> + <%= f.submit _('Save'), class: 'btn btn-primary' %> <% if @guidance_group.published == false then %> - <%= f.submit t('helpers.submit.publish'), name: "save_publish", class: "btn btn-primary" %> + <%= f.submit _('Publish'), name: "save_publish", class: "btn btn-primary" %> <% end %> - <%= link_to t('helpers.submit.cancel'), :back, class: 'btn cancel' %> + <%= link_to _('Cancel'), :back, class: 'btn cancel' %>

diff --git a/app/views/guidance_groups/admin_new.html.erb b/app/views/guidance_groups/admin_new.html.erb index 712cf83..faf81f8 100644 --- a/app/views/guidance_groups/admin_new.html.erb +++ b/app/views/guidance_groups/admin_new.html.erb @@ -2,10 +2,10 @@ <% javascript 'admin.js' %>

- <%= t("org_admin.guidance.guidance_group_label") %> + <%= _('Guidance group') %>
- <%= link_to t("org_admin.guidance.view_all_guidance"), + <%= link_to _('View all guidance'), admin_index_guidance_path, class: "btn btn-primary" %>
@@ -20,22 +20,22 @@

<%= t('org_admin.guidance_group.name_label') %><%= _('Name') %>
<%= f.text_field :name, @@ -29,33 +29,33 @@
- <%= link_to(image_tag('help_button.png'), '#', class: 'guidance_group_title_popover', rel: "popover", 'data-html' => "true", 'data-content' => t('org_admin.guidance_group.title_help_text_html')) %> + <%= link_to(image_tag('help_button.png'), '#', class: 'guidance_group_title_popover', rel: "popover", 'data-html' => "true", 'data-content' => _("Add an appropriate name for your guidance group e.g. Glasgow guidance. This name will be used to tell the end user where the guidance has come from e.g. 'Glasgow Guidance on Metadata'")) %>
<%= t('org_admin.templates.published_label') %><%= _('Published') %>
<%= f.check_box :published %>
- +
<%= t('org_admin.guidance_group.subset') %><%= _('Optional subset') %>
- <%= f.check_box :optional_subset %> <%= t('org_admin.guidance_group.subset_eg') %> + <%= f.check_box :optional_subset %> <%= _('e.g. School/ Department') %>
- <%= link_to(image_tag('help_button.png'), '#', class: 'guidance_group_subset_popover', rel: "popover", 'data-html' => "true", 'data-content' => t('org_admin.guidance_group.subset_option_help_text')) %> + <%= link_to(image_tag('help_button.png'), '#', class: 'guidance_group_subset_popover', rel: "popover", 'data-html' => "true", 'data-content' => _("If the guidance is only meant for a subset of users e.g. those in a specific college or institute, check this box. Users will be able to select to display this subset guidance when answering questions in the 'create plan' wizard.")) %>
- + - + @@ -43,8 +43,8 @@
- <%= f.submit t("helpers.submit.save"), name: "draft", class: "btn btn-primary" %> - <%= link_to t("helpers.submit.cancel"), :back, class: "btn cancel btn-secondary" %> + <%= f.submit _('Save'), name: "draft", class: "btn btn-primary" %> + <%= link_to _('Cancel'), :back, class: "btn cancel btn-secondary" %>

<% end %> diff --git a/app/views/guidance_groups/admin_show.html.erb b/app/views/guidance_groups/admin_show.html.erb index fba06cc..d73054d 100644 --- a/app/views/guidance_groups/admin_show.html.erb +++ b/app/views/guidance_groups/admin_show.html.erb @@ -1,11 +1,11 @@ <%= stylesheet_link_tag "admin" %>

- <%= t("org_admin.guidance.guidance_group_label") %> + <%= _('Guidance group') %>
- <%= link_to t("org_admin.guidance.view_all_guidance"), + <%= link_to _('View all guidance'), admin_index_guidance_path, class: "btn btn-primary" %>
@@ -19,43 +19,43 @@

<%= t('org_admin.guidance_group.name_label') %><%= _('Name') %>
<%= f.text_field :name, as: :string, class: "text_field" %>
- <%= link_to( image_tag("help_button.png"), "#", class: 'guidance_group_title_popover', rel: "popover", 'data-html' => "true", 'data-content' => t("org_admin.guidance_group.title_help_text_html"))%> + <%= link_to( image_tag("help_button.png"), "#", class: 'guidance_group_title_popover', rel: "popover", 'data-html' => "true", 'data-content' => _("Add an appropriate name for your guidance group e.g. Glasgow guidance. This name will be used to tell the end user where the guidance has come from e.g. 'Glasgow Guidance on Metadata'"))%>
<%= t('org_admin.guidance_group.subset') %><%= _('Optional subset') %>
- <%= f.check_box :optional_subset %> <%= t('org_admin.guidance_group.subset_eg') %> + <%= f.check_box :optional_subset %> <%= _('e.g. School/ Department') %>
- <%= link_to( image_tag('help_button.png'), '#', class: 'guidance_group_subset_popover', rel: "popover", 'data-html' => "true", 'data-content' => t('org_admin.guidance_group.subset_option_help_text'))%> + <%= link_to( image_tag('help_button.png'), '#', class: 'guidance_group_subset_popover', rel: "popover", 'data-html' => "true", 'data-content' => _("If the guidance is only meant for a subset of users e.g. those in a specific college or institute, check this box. Users will be able to select to display this subset guidance when answering questions in the 'create plan' wizard."))%>
- + - + - + - + - +
<%= t("org_admin.guidance_group.name_label") %><%= _('Name') %> <%= raw @guidance_group.name %>
<%= t('org_admin.templates.published_label') %><%= _('Published') %> <% if @guidance_group.published.nil? || !@guidance_group.published then %> - <%= t("helpers.no_label") %> + <%= _('No') %> <% else %> - <%= t("helpers.yes_label") %> + <%= _('Yes') %> <% end %>
<%= t("org_admin.guidance_group.subset") %><%= _('Optional subset') %> <% if @guidance_group.optional_subset.nil? || !@guidance_group.optional_subset then %> - <%= t('helpers.no_label') %> + <%= _('No') %> <% else %> - <%= t('helpers.yes_label') %> + <%= _('Yes') %> <% end %>
<%= t("org_admin.guidance.created") %><%= _('Created') %> <%= l @guidance_group.created_at.to_date, formats: :short %>
<%= t("org_admin.guidance.last_updated") %><%= _('Last updated') %> <%= l @guidance_group.updated_at.to_date, formats: :short %>
- <%= link_to t("helpers.submit.edit"), admin_edit_guidance_group_path(@guidance_group.id), class: "btn btn-primary" %> - <%= link_to t("helpers.submit.back"), :back, class: "btn cancel" %> + <%= link_to _('Edit'), admin_edit_guidance_group_path(@guidance_group.id), class: "btn btn-primary" %> + <%= link_to _('Back'), :back, class: "btn cancel" %>