diff --git a/app/views/templates/_add_guidance.html.erb b/app/views/templates/_add_guidance.html.erb index af080d0..19579e5 100644 --- a/app/views/templates/_add_guidance.html.erb +++ b/app/views/templates/_add_guidance.html.erb @@ -3,26 +3,26 @@ <%= form_for :guidance, url: {action: "admin_create"}, html: {id: "new_guidance_form"} do |f| %> - + - + - + - + @@ -67,9 +67,9 @@
- <%= t("helpers.submit.save")%> + <%= _('Save')%> - <%= link_to t("helpers.submit.cancel"), :back, class: "btn cancel" %> + <%= link_to _('Cancel'), :back, class: "btn cancel" %>

@@ -82,12 +82,12 @@ \ No newline at end of file diff --git a/app/views/templates/_add_question.html.erb b/app/views/templates/_add_question.html.erb index 62232bd..6ba73db 100644 --- a/app/views/templates/_add_question.html.erb +++ b/app/views/templates/_add_question.html.erb @@ -16,8 +16,8 @@
<%= t("org_admin.guidance.text_label") %><%= _('Text') %>
<%= text_area_tag("guidance-text", "", class: "tinymce") %>
- <%= link_to( image_tag("help_button.png"), "#", class: "guidance_text_popover", rel: "popover", "data-html" => "true", "data-content" => t("org_admin.guidance.text_help_text_html"))%> + <%= link_to( image_tag("help_button.png"), "#", class: "guidance_text_popover", rel: "popover", "data-html" => "true", "data-content" => _('Enter your guidance here. You can include links where needed.'))%>
<%= t("org_admin.guidance.by_theme_or_by_question") %><%= _('Should this guidance apply:') %>
- <%= select_tag "g_options", options_for_select([[t("org_admin.guidance.by_themes_label"), 1], - [t("org_admin.guidance.by_question_label"), 2]]) %> + <%= select_tag "g_options", options_for_select([[_('by themes'), 1], + [_('by question'), 2]]) %>
- <%= link_to( image_tag("help_button.png"), "#", class: "guidance_apply_to_popover", rel: "popover", "data-html" => "true", "data-content" => t("org_admin.guidance.apply_to_help_text_html"))%> + <%= link_to( image_tag("help_button.png"), "#", class: "guidance_apply_to_popover", rel: "popover", "data-html" => "true", "data-content" => _('Decide whether your guidance should display by themes (default) or if it only pertains to a specific question in one of the funder templates.'))%>
@@ -30,10 +30,10 @@
<%= f.collection_select(:theme_ids, Theme.all.order("title"), - :id, :title, {prompt: false, include_blank: t('helpers.none')}, {multiple: true})%> + :id, :title, {prompt: false, include_blank: _('None')}, {multiple: true})%>
- <%= link_to( image_tag("help_button.png"), "#", class: "guidance_by_themes_popover", rel: "popover", "data-html" => "true", "data-content" => t("org_admin.guidance.by_themes_help_text_html"))%> + <%= link_to( image_tag("help_button.png"), "#", class: "guidance_by_themes_popover", rel: "popover", "data-html" => "true", "data-content" => _('Select which theme(s) this guidance relates to.'))%>
@@ -41,7 +41,7 @@
<%= t("org_admin.guidance.published") %><%= _('Published') %>
<%= f.check_box :published , as: :check_boxes %> @@ -49,15 +49,15 @@
<%= t("org_admin.guidance.guidance_group_label") %><%= _('Guidance group') %>
<%= f.collection_select(:guidance_group_ids, GuidanceGroup.where(org_id: current_user.org_id).order("name ASC"), - :id, :name, {prompt: false, include_blank: t('helpers.none')}, {multiple: false})%> + :id, :name, {prompt: false, include_blank: _('None')}, {multiple: false})%>
- <%= link_to( image_tag("help_button.png"), "#", class: "guidance_group_select_popover", rel: "popover", "data-html" => "true", "data-content" => t("org_admin.guidance.guidance_group_select_help_text_html"))%> + <%= link_to( image_tag("help_button.png"), "#", class: "guidance_group_select_popover", rel: "popover", "data-html" => "true", "data-content" => _('Select which group this guidance relates to.'))%>
- - + @@ -25,7 +25,7 @@ - + @@ -33,16 +33,16 @@ - + - + - + - +
<%= t("org_admin.questions.question_number_label")%><%= f.number_field :number, in: 1..50, class: "number_field has-tooltip", "data-toggle" => "tooltip", title: t("org_admin.questions.number_help_text") %> + <%= _('Question number')%><%= f.number_field :number, in: 1..50, class: "number_field has-tooltip", "data-toggle" => "tooltip", title: _('This allows you to order questions within a section.') %>
<%= t("org_admin.questions.question_text_label")%><%= _('Question text')%> <%= f.text_area :text, rows: "5", id: "new_question_text_#{section.id}" %>
<%= t("org_admin.questions.answer_format_label")%><%= _('Answer format')%> <%= f.hidden_field :section_id, value: section.id, class: "section_id" %>
<%= f.select :question_format_id, - options_from_collection_for_select(QuestionFormat.all.order("title"), :id, :title, QuestionFormat.find_by_title(t("helpers.text_area")).id), + options_from_collection_for_select(QuestionFormat.all.order("title"), :id, :title, QuestionFormat.find_by_title(_('Text area')).id), {}, id: "new-select-format-#{section.id}"%>
- <%= link_to( image_tag("help_button.png"), "#", class: "question_format_popover", rel: "popover", "data-html" => "true", "data-content" => t("org_admin.questions.question_format_help_text_html"))%> + <%= link_to( image_tag("help_button.png"), "#", class: "question_format_popover", rel: "popover", "data-html" => "true", "data-content" => _("You can choose from:
  • - text area (large box for paragraphs);
  • - text field (for a short answer);
  • - checkboxes where options are presented in a list and multiple values can be selected;
  • - radio buttons where options are presented in a list but only one can be selected;
  • - dropdown like this box - only one option can be selected;
  • - multiple select box allows users to select several options from a scrollable list, using the CTRL key;
"))%>
@@ -52,10 +52,10 @@ - - - - + + + + @@ -75,25 +75,25 @@
<%= t("org_admin.option_order_label")%><%= t("org_admin.option_text_label")%><%= t("org_admin.option_default_label")%><%= link_to( image_tag("help_button.png"), "#", class: "question_options_popover", rel: "popover", "data-html" => "true", "data-content" => t("org_admin.questions.question_options_help_text_html"))%><%= _('Order')%><%= _('Text')%><%= _('Default')%><%= link_to( image_tag("help_button.png"), "#", class: "question_options_popover", rel: "popover", "data-html" => "true", "data-content" => _('Enter any options that you wish to display. If you want to pre-set one option as selected, check the default box.'))%>
- <%= t("org_admin.add_option_label") %> + <%= _('Add option') %>
- <%= f.check_box :option_comment_display, as: :check_boxes%><%= f.label t("org_admin.questions.option_comment_display_checkbox"), class: "checkbox inline"%> + <%= f.check_box :option_comment_display, as: :check_boxes%><%= f.label _('Display additional comment area.'), class: "checkbox inline"%>
@@ -102,7 +102,7 @@ <%= text_area_tag("new-question-default-value", "", class: "tinymce") %>
- <%= link_to( image_tag("help_button.png"), "#", class: "default_answer_popover", rel: "popover", "data-html" => "true", "data-content" => t("org_admin.questions.default_answer_help_text_html"))%> + <%= link_to( image_tag("help_button.png"), "#", class: "default_answer_popover", rel: "popover", "data-html" => "true", "data-content" => _('Anything you enter here will display in the answer box. If you want an answer in a certain format (e.g. tables), you can enter that style here.'))%>
@@ -114,20 +114,20 @@
<%= t("org_admin.questions.suggested_or_example_answer_label")%><%= _('Suggested answer/ Example')%>
<% suggested_answer = @new_question.suggested_answers.build %> <%= f.fields_for :suggested_answers, suggested_answer do |s|%> <%= s.hidden_field :org_id, value: current_user.org_id %>
    -
  • <%= s.select :is_example, {t("org_admin.questions.example_answer_label") => true, t("org_admin.questions.suggested_answer_label") => false} %>
  • +
  • <%= s.select :is_example, {_('Example of answer') => true, _('Suggested answer') => false} %>
  • <%= s.text_area :text, rows: 5 %>
<% end %>
- <%= link_to( image_tag("help_button.png"), "#", class: "suggested_answer_popover", rel: "popover", "data-html" => "true", "data-content" => t("org_admin.questions.suggested_answer_help_text_html"))%> + <%= link_to( image_tag("help_button.png"), "#", class: "suggested_answer_popover", rel: "popover", "data-html" => "true", "data-content" => _('You can add an example or suggested answer to help users respond. These will be presented above the answer box and can be copied/ pasted.'))%>
@@ -137,13 +137,13 @@
<%= t("org_admin.questions.guidance_label")%><%= _('Guidance')%>
<%= text_area_tag("new-question-guidance", "", class: "tinymce") %>
- <%= link_to( image_tag("help_button.png"), "#", class: "question_guidance_popover", rel: "popover", "data-html" => "true", "data-content" => t("org_admin.questions.question_guidance_help_text_html"))%> + <%= link_to( image_tag("help_button.png"), "#", class: "question_guidance_popover", rel: "popover", "data-html" => "true", "data-content" => _("Enter specific guidance to accompany this question. If you have guidance by themes too, this will be pulled in based on your selections below so it's best not to duplicate too much text."))%>
@@ -152,15 +152,15 @@
<%= t("org_admin.questions.themes_label")%><%= _('Themes')%>
<%= f.collection_select(:theme_ids, Theme.all.order("title"), - :id, :title, {prompt: false, include_blank: t('helpers.none')}, {multiple: true})%> + :id, :title, {prompt: false, include_blank: _('None')}, {multiple: true})%>
- <%= link_to( image_tag("help_button.png"), "#", class: "question_themes_popover", rel: "popover", "data-html" => "true", "data-content" => t("org_admin.questions.question_themes_help_text_html"))%> + <%= link_to( image_tag("help_button.png"), "#", class: "question_themes_popover", rel: "popover", "data-html" => "true", "data-content" => _("

Select themes that are relevant to this question.

This allows your generic institution-level guidance to be drawn in, as well as that from other sources e.g. the %{organisation_abbreviation} or any Schools/Departments that you provide guidance for.

You can select multiple themes by using the CTRL button.

"))%>
@@ -172,9 +172,9 @@
<%= hidden_field_tag :section_id, section.id, class: "section_id" %> - <%= f.submit t("helpers.submit.save"), class: "btn btn-primary new_question_save_button" %> + <%= f.submit _('Save'), class: "btn btn-primary new_question_save_button" %> <%= hidden_field_tag :section_id, section.id, class: "section_id_new" %> - <%= link_to t("helpers.submit.cancel"), '#', class: "btn cancel cancel_add_new_question" %> + <%= link_to _('Cancel'), '#', class: "btn cancel cancel_add_new_question" %>
diff --git a/app/views/templates/_add_section.html.erb b/app/views/templates/_add_section.html.erb index 94343b1..45b7d27 100644 --- a/app/views/templates/_add_section.html.erb +++ b/app/views/templates/_add_section.html.erb @@ -12,7 +12,7 @@
- <%= f.text_field :title, as: :string, class: "text_field", placeholder: t("org_admin.templates.section_title_placeholder")%> + <%= f.text_field :title, as: :string, class: "text_field", placeholder: _('New section title')%>
@@ -23,27 +23,27 @@
- + - +
<%= t("org_admin.templates.phase_order_label") %><%= _('Order of display') %> - <%= f.number_field :number, in: 1..15, class: "number_field has-tooltip", "data-toggle" => "tooltip", title: t("org_admin.templates.section_number_help_text") %> + <%= f.number_field :number, in: 1..15, class: "number_field has-tooltip", "data-toggle" => "tooltip", title: _('This allows you to order sections.') %>
<%= t("org_admin.templates.desc_label") %><%= _('Description') %>
<%= text_area_tag("section-desc", "" , class: "tinymce") %>
- <%= link_to( image_tag("help_button.png"), "#", class: "section_desc_popover", rel: "popover", "data-html" => "true", "data-content" => t("org_admin.templates.section_desc_help_text_html"))%> + <%= link_to( image_tag("help_button.png"), "#", class: "section_desc_popover", rel: "popover", "data-html" => "true", "data-content" => _("
Enter a basic description. This could be a summary of what is covered in the section or instructions on how to answer. This text will be displayed in the coloured banner once a section is opened to edit.
"))%>
- <%= f.submit t("helpers.submit.save"), class: "btn btn-primary" %> - <%= link_to t("helpers.submit.cancel"), "#", id: "", class: "btn cancel" %> + <%= f.submit _('Save'), class: "btn btn-primary" %> + <%= link_to _('Cancel'), "#", id: "", class: "btn cancel" %>
diff --git a/app/views/templates/_add_suggested_answer.html.erb b/app/views/templates/_add_suggested_answer.html.erb index 8969086..6bbeeab 100644 --- a/app/views/templates/_add_suggested_answer.html.erb +++ b/app/views/templates/_add_suggested_answer.html.erb @@ -5,10 +5,10 @@ - + - + @@ -20,12 +20,12 @@ - + - + - +
<%= t("org_admin.questions.suggested_or_example_answer_label")%><%= _('Suggested answer/ Example')%>
    -
  • <%= f.select :is_example, {t("org_admin.questions.example_answer_label") => true, t("org_admin.questions.suggested_answer_label") => false} %>
  • +
  • <%= f.select :is_example, {_('Example of answer') => true, _('Suggested answer') => false} %>
  • <%= f.text_area :text, rows: 5 %>
@@ -19,7 +19,7 @@
- <%= f.submit t("helpers.submit.save"), class: "btn btn-primary" %> - <%= link_to t("helpers.submit.cancel"), "#", id: "cancel_suugested_answer", class: "btn cancel" %> + <%= f.submit _('Save'), class: "btn btn-primary" %> + <%= link_to _('Cancel'), "#", id: "cancel_suugested_answer", class: "btn cancel" %>
<%end%> diff --git a/app/views/templates/_admin_nav_tabs.html.erb b/app/views/templates/_admin_nav_tabs.html.erb index d876bd2..69a9ca5 100644 --- a/app/views/templates/_admin_nav_tabs.html.erb +++ b/app/views/templates/_admin_nav_tabs.html.erb @@ -6,7 +6,7 @@ <% else %>
  • <% end %> - <%= link_to t('org_admin.templates.template_details'), admin_template_template_path(template) %> + <%= link_to _('Template details'), admin_template_template_path(template) %>
  • <% template.phases.each do |phase| %> @@ -25,7 +25,7 @@ <% else %>
  • <% end %> - <%= link_to t('org_admin.templates.add_phase_label'), admin_addphase_template_path(template) %> + <%= link_to _('Add new phase +'), admin_addphase_template_path(template) %>
  • <%end%> diff --git a/app/views/templates/_edit_annotations.html.erb b/app/views/templates/_edit_annotations.html.erb index 108c19d..b82d271 100644 --- a/app/views/templates/_edit_annotations.html.erb +++ b/app/views/templates/_edit_annotations.html.erb @@ -12,7 +12,7 @@ <%= f.hidden_field :id,{ class: "quest_id" } %>
    <%= t("org_admin.questions.question_number_label")%><%= _('Question number')%> <%= question.number %>
    <%= t('org_admin.questions.question_text_label')%><%= _('Question text')%> <%= raw question.text %>
    <% q_format = question.question_format %> - <% if q_format.title == t("helpers.checkbox") || q_format.title == t("helpers.multi_select_box") || q_format.title == t("helpers.radio_buttons") || q_format.title == t("helpers.dropdown") %> + <% if q_format.title == _('Check box') || q_format.title == _('Multi select box') || q_format.title == _('Radio buttons') || q_format.title == _('Dropdown') %>
      <% if question.question_options.is_a? QuestionOption %>
    • - <%= question.question_options.text %>
    • @@ -44,7 +44,7 @@
    <%= t("org_admin.questions.suggested_or_example_answer_label")%><%= _('Suggested answer/ Example')%>
    <% suggested_answer = question.suggested_answers.find_by_org_id(current_user.org.id) %> @@ -54,14 +54,14 @@ <%= f.fields_for :suggested_answers, suggested_answer do |s|%> <%= s.hidden_field :org_id, value: current_user.org.id %>
      -
    • <%= s.select :is_example, {t("org_admin.questions.example_answer_label") => true, t("org_admin.questions.suggested_answer_label") => false} %>
    • +
    • <%= s.select :is_example, {_('Example of answer') => true, _('Suggested answer') => false} %>
    • <%= s.text_area :text, rows: 5 %>
    <% end %>
    - <%= link_to( image_tag("help_button.png"), "#", class: "suggested_answer_popover", rel: "popover", "data-html" => "true", "data-content" => t("org_admin.questions.suggested_answer_help_text_html"))%> + <%= link_to( image_tag("help_button.png"), "#", class: "suggested_answer_popover", rel: "popover", "data-html" => "true", "data-content" => _('You can add an example or suggested answer to help users respond. These will be presented above the answer box and can be copied/ pasted.'))%>
    @@ -70,13 +70,13 @@
    <%= t("org_admin.questions.guidance_label")%><%= _('Guidance')%>
    <%= text_area_tag("question-guidance-#{question.id}", question.guidance , class: "tinymce") %>
    - <%= link_to( image_tag("help_button.png"), "#", class: "question_guidance_popover", rel: "popover", "data-html" => "true", "data-content" => t("org_admin.questions.question_guidance_help_text_html"))%> + <%= link_to( image_tag("help_button.png"), "#", class: "question_guidance_popover", rel: "popover", "data-html" => "true", "data-content" => _("Enter specific guidance to accompany this question. If you have guidance by themes too, this will be pulled in based on your selections below so it's best not to duplicate too much text."))%>
    @@ -86,13 +86,13 @@
    - <%= f.submit t("helpers.submit.save"), class: "btn btn-primary" %> + <%= f.submit _('Save'), class: "btn btn-primary" %> <% if !question.section.phase.template.published? %> - <%= link_to t("helpers.submit.delete"), admin_destroyquestion_template_path(question_id: question.id), - confirm: t("org_admin.questions.delete_message", question_text: question.text ), method: :delete, class: "btn btn-primary"%> + <%= link_to _('Delete'), admin_destroyquestion_template_path(question_id: question.id), + confirm: _('You are about to delete '%{question_text}'. Are you sure?') % { question_text: => question.text }, method: :delete, class: "btn btn-primary"%> <% end %> <%= hidden_field_tag :question_id, question.id, class: "question_id" %> - <%= link_to t("helpers.submit.cancel"), "#", class: "btn cancel cancel_edit_question" %> + <%= link_to _('Cancel'), "#", class: "btn cancel cancel_edit_question" %>
    diff --git a/app/views/templates/_edit_guidance.html.erb b/app/views/templates/_edit_guidance.html.erb index e351d51..7c0b2ec 100644 --- a/app/views/templates/_edit_guidance.html.erb +++ b/app/views/templates/_edit_guidance.html.erb @@ -4,10 +4,10 @@ - + @@ -17,10 +17,10 @@
    - <%= f.submit t("helpers.submit.save"), class: "btn btn-primary" %> - <%= link_to t("helpers.submit.delete"), admin_destroysuggestedanswer_template_path(suggested_answer: suggested_answer.id), - confirm: t("org_admin.questions.delete_suggested_answer_message", question_text: question.text ), method: :delete, class: "btn btn-primary"%> + <%= f.submit _('Save'), class: "btn btn-primary" %> + <%= link_to _('Delete'), admin_destroysuggestedanswer_template_path(suggested_answer: suggested_answer.id), + confirm: _('You are about to delete a suggested answer/ example for '%{question_text}'. Are you sure?') % { question_text: => question.text }, method: :delete, class: "btn btn-primary"%> <%= hidden_field_tag :question_id, question.id, class: "question_id" %> - <%= link_to t("helpers.submit.cancel"), "#", class: "btn cancel cancel_edit_suggested_answer" %> + <%= link_to _('Cancel'), "#", class: "btn cancel cancel_edit_suggested_answer" %>
    <%end%> diff --git a/app/views/templates/_edit_phase.html.erb b/app/views/templates/_edit_phase.html.erb index ace20c9..3590f09 100644 --- a/app/views/templates/_edit_phase.html.erb +++ b/app/views/templates/_edit_phase.html.erb @@ -3,33 +3,33 @@ <%= form_for(phase, url: admin_updatephase_template_path(phase.id), html: { method: :put}) do |f| %>

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

    - <%= 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.

    ")%>


    <%= t("org_admin.questions.suggested_or_example_answer_label")%><%= _('Suggested answer/ Example')%>
      -
    • <%= f.select :is_example, {t("org_admin.questions.example_answer_label") => true, t("org_admin.questions.suggested_answer_label") => false} %>
    • +
    • <%= f.select :is_example, {_('Example of answer') => true, _('Suggested answer') => false} %>
    • <%= f.text_area :text, rows: 5 %>
    - + + 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') %> - - + + - + @@ -38,8 +38,8 @@
    - <%= f.submit t('helpers.submit.save'), class: 'btn btn-primary' %> - <%= link_to t('helpers.submit.cancel'), admin_phase_template_path(phase), class: 'btn cancel' %> + <%= f.submit _('Save'), class: 'btn btn-primary' %> + <%= link_to _('Cancel'), admin_phase_template_path(phase), class: 'btn cancel' %>
    <% end %> \ No newline at end of file diff --git a/app/views/templates/_edit_question.html.erb b/app/views/templates/_edit_question.html.erb index 8ea1271..a684ed6 100644 --- a/app/views/templates/_edit_question.html.erb +++ b/app/views/templates/_edit_question.html.erb @@ -11,15 +11,15 @@
    <%= 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: 0..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: 0..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", phase.description, 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."))%>
    - - + - + @@ -27,7 +27,7 @@ - + - + - + - + @@ -158,13 +158,13 @@
    - <%= f.submit t("helpers.submit.save"), class: "btn btn-primary" %> + <%= f.submit _('Save'), class: "btn btn-primary" %> <% if !question.section.phase.template.published? %> - <%= link_to t("helpers.submit.delete"), admin_destroyquestion_template_path(question_id: question.id), - confirm: t("org_admin.questions.delete_message", question_text: question.text ), method: :delete, class: "btn btn-primary"%> + <%= link_to _('Delete'), admin_destroyquestion_template_path(question_id: question.id), + confirm: _('You are about to delete '%{question_text}'. Are you sure?') % { question_text: => question.text }, method: :delete, class: "btn btn-primary"%> <% end %> <%= hidden_field_tag :question_id, question.id, class: "question_id" %> - <%= link_to t("helpers.submit.cancel"), "#", class: "btn cancel cancel_edit_question" %> + <%= link_to _('Cancel'), "#", class: "btn cancel cancel_edit_question" %>
    diff --git a/app/views/templates/_edit_section.html.erb b/app/views/templates/_edit_section.html.erb index eb4abed..014a4fa 100644 --- a/app/views/templates/_edit_section.html.erb +++ b/app/views/templates/_edit_section.html.erb @@ -21,7 +21,7 @@
    - <%= s.text_field :title, as: :string, class: 'text_field', placeholder: t('org_admin.templates.section_title_placeholder') %> + <%= s.text_field :title, as: :string, class: 'text_field', placeholder: _('New section title') %>
    @@ -38,29 +38,29 @@
    <%= t("org_admin.questions.question_number_label")%><%= f.number_field :number, in: 1..50, class: "number_field has-tooltip", "data-toggle" => "tooltip", "title" => t("org_admin.questions.number_help_text") %> + <%= _('Question number')%><%= f.number_field :number, in: 1..50, class: "number_field has-tooltip", "data-toggle" => "tooltip", "title" => _('This allows you to order questions within a section.') %>
    <%= t("org_admin.questions.question_text_label")%><%= _('Question text')%> <%= f.text_area :text, rows: "5" %>
    <%= t("org_admin.questions.answer_format_label")%><%= _('Answer format')%>
    <%= f.hidden_field :id,{ class: "quest_id" } %> @@ -36,7 +36,7 @@ {}, id: "#{question.id}-select-format"%>
    - <%= link_to( image_tag("help_button.png"), "#", class: "question_format_popover", rel: "popover", "data-html" => "true", "data-content" => t("org_admin.questions.question_format_help_text_html"))%> + <%= link_to( image_tag("help_button.png"), "#", class: "question_format_popover", rel: "popover", "data-html" => "true", "data-content" => _("You can choose from:
    • - text area (large box for paragraphs);
    • - text field (for a short answer);
    • - checkboxes where options are presented in a list and multiple values can be selected;
    • - radio buttons where options are presented in a list but only one can be selected;
    • - dropdown like this box - only one option can be selected;
    • - multiple select box allows users to select several options from a scrollable list, using the CTRL key;
    "))%>
    @@ -46,10 +46,10 @@ - - - - + + + + @@ -69,24 +69,24 @@
    <%= t("org_admin.option_order_label")%><%= t("org_admin.option_text_label")%><%= t("org_admin.option_default_label")%><%= link_to( image_tag("help_button.png"), "#", class: "question_options_popover", rel: "popover", "data-html" => "true", "data-content" => t("org_admin.questions.question_options_help_text_html"))%><%= _('Order')%><%= _('Text')%><%= _('Default')%><%= link_to( image_tag("help_button.png"), "#", class: "question_options_popover", rel: "popover", "data-html" => "true", "data-content" => _('Enter any options that you wish to display. If you want to pre-set one option as selected, check the default box.'))%>
    - <%= t("org_admin.add_option_label") %> + <%= _('Add option') %>
    - <%= f.check_box :option_comment_display, as: :check_boxes%><%= f.label t("org_admin.questions.option_comment_display_checkbox"), class: "checkbox inline"%> + <%= f.check_box :option_comment_display, as: :check_boxes%><%= f.label _('Display additional comment area.'), class: "checkbox inline"%>
    @@ -95,7 +95,7 @@ <%= text_area_tag("question-default-value-#{question.id}", question.default_value, class: "tinymce") %>
    - <%= link_to( image_tag("help_button.png"), "#", class: "default_answer_popover", rel: "popover", "data-html" => "true", "data-content" => t("org_admin.questions.default_answer_help_text_html"))%> + <%= link_to( image_tag("help_button.png"), "#", class: "default_answer_popover", rel: "popover", "data-html" => "true", "data-content" => _('Anything you enter here will display in the answer box. If you want an answer in a certain format (e.g. tables), you can enter that style here.'))%>
    @@ -106,7 +106,7 @@
    <%= t("org_admin.questions.suggested_or_example_answer_label")%><%= _('Suggested answer/ Example')%>
    <% suggested_answer = question.suggested_answers.find_by_org_id(current_user.org.id) %> <% if suggested_answer.nil? %> @@ -115,14 +115,14 @@ <%= f.fields_for :suggested_answers, suggested_answer do |s|%> <%= s.hidden_field :org_id, value: current_user.org.id %>
      -
    • <%= s.select :is_example, {t("org_admin.questions.example_answer_label") => true, t("org_admin.questions.suggested_answer_label") => false} %>
    • +
    • <%= s.select :is_example, {_('Example of answer') => true, _('Suggested answer') => false} %>
    • <%= s.text_area :text, rows: 5 %>
    <% end %>
    - <%= link_to( image_tag("help_button.png"), "#", class: "suggested_answer_popover", rel: "popover", "data-html" => "true", "data-content" => t("org_admin.questions.suggested_answer_help_text_html"))%> + <%= link_to( image_tag("help_button.png"), "#", class: "suggested_answer_popover", rel: "popover", "data-html" => "true", "data-content" => _('You can add an example or suggested answer to help users respond. These will be presented above the answer box and can be copied/ pasted.'))%>
    @@ -130,12 +130,12 @@
    <%= t("org_admin.questions.guidance_label")%><%= _('Guidance')%>
    <%= text_area_tag("question-guidance-#{question.id}", question.guidance , class: "tinymce") %>
    - <%= link_to( image_tag("help_button.png"), "#", class: "question_guidance_popover", rel: "popover", "data-html" => "true", "data-content" => t("org_admin.questions.question_guidance_help_text_html"))%> + <%= link_to( image_tag("help_button.png"), "#", class: "question_guidance_popover", rel: "popover", "data-html" => "true", "data-content" => _("Enter specific guidance to accompany this question. If you have guidance by themes too, this will be pulled in based on your selections below so it's best not to duplicate too much text."))%>
    @@ -143,14 +143,14 @@
    <%= t("org_admin.questions.themes_label")%><%= _('Themes')%>
    <%= f.collection_select(:theme_ids, Theme.all.order("title"), :id, :title, {prompt: false, include_blank: "None"}, {multiple: true})%>
    - <%= link_to( image_tag("help_button.png"), "#", class: "question_themes_popover", rel: "popover", "data-html" => "true", "data-content" => t("org_admin.questions.question_themes_help_text_html"))%> + <%= link_to( image_tag("help_button.png"), "#", class: "question_themes_popover", rel: "popover", "data-html" => "true", "data-content" => _("

    Select themes that are relevant to this question.

    This allows your generic institution-level guidance to be drawn in, as well as that from other sources e.g. the %{organisation_abbreviation} or any Schools/Departments that you provide guidance for.

    You can select multiple themes by using the CTRL button.

    "))%>
    - - + + - +
    <%= t('org_admin.templates.phase_order_label') %><%= s.number_field :number, in: 1..15, class: "number_field has-tooltip", 'data-toggle' => "tooltip", 'title' => t('org_admin.templates.section_number_help_text') %><%= _('Order of display') %><%= s.number_field :number, in: 1..15, class: "number_field has-tooltip", 'data-toggle' => "tooltip", 'title' => _('This allows you to order sections.') %>
    <%= t('org_admin.templates.desc_label') %><%= _('Description') %>
    <%= text_area_tag("section-desc-#{section.id}", section.description , class: "tinymce") %>
    - <%= link_to( image_tag('help_button.png'), '#', class: 'section_desc_popover', rel: "popover", 'data-html' => "true", 'data-content' => t('org_admin.templates.section_desc_help_text_html'))%> + <%= link_to( image_tag('help_button.png'), '#', class: 'section_desc_popover', rel: "popover", 'data-html' => "true", 'data-content' => _("
    Enter a basic description. This could be a summary of what is covered in the section or instructions on how to answer. This text will be displayed in the coloured banner once a section is opened to edit.
    "))%>
    - <%= s.submit t('helpers.submit.save'), class: 'btn btn-primary' %> + <%= s.submit _('Save'), class: 'btn btn-primary' %> <% if section.modifiable %> - <%= link_to t("helpers.submit.delete"), admin_destroysection_template_path(section_id: section.id), - confirm: t("org_admin.templates.section_delete_message", section_title: section.title ), method: :delete, class: "btn btn-primary"%> + <%= link_to _('Delete'), admin_destroysection_template_path(section_id: section.id), + confirm: _('You are about to delete '%{section_title}'. This will affect questions linked to this section. Are you sure?') % { section_title: => section.title }, method: :delete, class: "btn btn-primary"%> <% end %> - <%= link_to t('helpers.submit.cancel'), :back, class: 'btn cancel' %> + <%= link_to _('Cancel'), :back, class: 'btn cancel' %>
    <% end %>
    @@ -105,7 +105,7 @@
    <%= hidden_field_tag :section_id, section.id, class: "section_id" %> - <%= link_to t("org_admin.add_question_label"), '#', class: "btn btn-primary add_question_button" %> + <%= link_to _('Add question'), '#', class: "btn btn-primary add_question_button" %>
    <% end %>