- | <%= 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 @@
- | <%= 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 %>
|
@@ -20,12 +20,12 @@
- | <%= 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 @@
- | <%= 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 %>
|
@@ -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.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') %> |
+ 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') %>
- | <%= 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."))%>
|
@@ -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.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" %>
|
@@ -27,7 +27,7 @@
- | <%= t("org_admin.questions.answer_format_label")%> |
+ <%= _('Answer format')%> |
@@ -46,10 +46,10 @@
- | <%= 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.'))%> |
@@ -69,24 +69,24 @@
- <%= 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"%>
- <%= t("org_admin.questions.default_answer_label")%>
+ <%= _('Default answer')%>
- <%= t("org_admin.questions.default_answer_label")%>
+ <%= _('Default answer')%>
@@ -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. "))%>
|
@@ -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.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 @@
<% end %>
| | |