diff --git a/app/views/templates/_edit_template.html.erb b/app/views/templates/_edit_template.html.erb
index 0675243..8077da0 100644
--- a/app/views/templates/_edit_template.html.erb
+++ b/app/views/templates/_edit_template.html.erb
@@ -4,34 +4,34 @@
| <%= 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.title_help_text') %> | + class: 'text_field has-tooltip', 'data-toggle' => "tooltip", title: _('Please enter a title for your template.') %>||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <%= t('org_admin.templates.desc_label') %> | +<%= _('Description') %> |
<%= text_area_tag("template-desc", template.description, class: "tinymce") %>
- <%= link_to( image_tag('help_button.png'), '#', class: 'template_desc_popover', rel: "popover", 'data-html' => "true", 'data-content' => t('org_admin.templates.desc_help_text_html'))%>
+ <%= link_to( image_tag('help_button.png'), '#', class: 'template_desc_popover', rel: "popover", 'data-html' => "true", 'data-content' => _('Enter a description that helps you to differentiate between templates e.g. if you have ones for different audiences'))%>
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <%= t('org_admin.templates.published_label') %> | +<%= _('Published') %> | <%= f.check_box :published, as: :check_boxes %> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <%= t('org_admin.templates.created') %> | +<%= _('Created at') %> | <%= l template.created_at.to_date, formats: :short %> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <%= t('org_admin.templates.last_updated') %> | +<%= _('Last updated') %> | <%= l template.updated_at.to_date, formats: :short %> | @@ -40,8 +40,8 @@
| <%= t('helpers.sections_label')%> | -<%= t('helpers.questions_label')%> | +<%= _('Sections')%> | +<%= _('Questions')%> |
|---|
| <%= t('org_admin.templates.title_label') %> | +<%= _('Title') %> | <%= template.title %> |
| <%= t('org_admin.templates.desc_label') %> | +<%= _('Description') %> | <% if !template.description.nil? && template.description != "" then %> <%= raw template.description %> <% else %> @@ -24,17 +24,17 @@ |
| <%= t('org_admin.templates.published_label') %> | +<%= _('Published') %> | <%= template.published %> |
| <%= t('org_admin.templates.created') %> | +<%= _('Created at') %> | <%= l template.created_at.to_date, formats: :short %> |
| <%= t('org_admin.templates.last_updated') %> | +<%= _('Last updated') %> | <%= l template.updated_at.to_date, formats: :short %> |
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.
")%>| <%= t('org_admin.templates.title_label') %> | -<%= t('org_admin.templates.desc_label') %> | -<%= t('org_admin.templates.published_label') %> | -<%= t('org_admin.templates.last_updated') %> | -<%= t('org_admin.templates.actions') %> | +<%= _('Title') %> | +<%= _('Description') %> | +<%= _('Published') %> | +<%= _('Last updated') %> | +<%= _('Actions') %> | - <%= raw org_template.description.truncate(90, omission: t('helpers.truncate_continued')) %> + <%= raw org_template.description.truncate(90, omission: _('... (continued)')) %> | <% #Yes if published version exists, Yes[Unpublished changes] if newer version modified, No otherwise%> <% if org_template.published %> - <%= t("helpers.yes_label") %> + <%= _('Yes') %> <% elsif org_template.version > 0 && @other_published_version[org_template.dmptemplate_id] %> <% #there is a published version, but this version is not (data access in view TODO: clean) %> <% if org_template.created_at < org_template.updated_at %> - <%= t("helpers.yes_label") + " " + t("org_admin.templates.unpublished_changes") %> + <%= _('Yes') + " " + _('[Unpublished Changes]') %> <% else %> - <%= t("helpers.yes_label") %> + <%= _('Yes') %> <% end %> <% else %> - <%= t("helpers.no_label") %> + <%= _('No') %> <% end %> | @@ -68,9 +68,9 @@ <%= l last_temp_updated.to_date, formats: :short %> | - <%= link_to t('helpers.submit.edit'), admin_template_template_path(id: org_template.id, edit: "true"), class: "dmp_table_link" %> - <%= link_to t('helpers.view'), admin_template_template_path(id: org_template), class: "dmp_table_link"%> - <%= link_to t('helpers.history'), admin_template_history_template_path(id: org_template.id), class: "dmp_table_link" %> + <%= link_to _('Edit'), admin_template_template_path(id: org_template.id, edit: "true"), class: "dmp_table_link" %> + <%= link_to _('View'), admin_template_template_path(id: org_template), class: "dmp_table_link"%> + <%= link_to _('History'), admin_template_history_template_path(id: org_template.id), class: "dmp_table_link" %> | <% end %> @@ -85,7 +85,7 @@ <% if !current_user.org.funder? then %>
|---|
| <%= t('org_admin.templates.title_label') %> | -<%= t('org_admin.templates.desc_label') %> | -<%= t('org_admin.templates.customise_label') %> | -<%= t('org_admin.templates.last_updated') %> | -<%= t('org_admin.templates.actions') %> | +<%= _('Title') %> | +<%= _('Description') %> | +<%= _('Customised') %> | +<%= _('Last updated') %> | +<%= _('Actions') %> | - <%= raw org_template.description.truncate(90, omission: t('helpers.truncate_continued')) %> + <%= raw org_template.description.truncate(90, omission: _('... (continued)')) %> | <% customized = 0 %> <% template = org_template # template to be edited%> <% if @templates_customizations[org_template.dmptemplate_id].present? %> <% if @templates_customizations[org_template.dmptemplate_id][:temp].updated_at < org_template.updated_at %> - <%= t("org_admin.templates.original_changed") %> + <%= _('Yes [Original Template Has Changed]') %> <% customized = 3 %> <% else %> <% template = @templates_customizations[org_template.dmptemplate_id][:temp] %> <% if !@templates_customizations[org_template.dmptemplate_id][:temp].published %> - <%= @templates_customizations[org_template.dmptemplate_id][:published] ? t("helpers.yes_label") : t("helpers.no_label")%> - <%= " " + t("org_admin.templates.unpublished_changes") %> + <%= @templates_customizations[org_template.dmptemplate_id][:published] ? _('Yes') : _('No')%> + <%= " " + _('[Unpublished Changes]') %> <% customized = 2 %> <% else %> - <%= t("helpers.yes_label") %> + <%= _('Yes') %> <% customized = 1 %> <% end %> <% end %> <% else %> - <%= t("helpers.no_label") %> + <%= _('No') %> <% end %> | @@ -137,11 +137,11 @@ | <% if customized == 0 %> - <% b_label = t("org_admin.templates.customise") %> + <% b_label = _('Customise') %> <% elsif customized == 1 || customized == 2 %> - <% b_label = t("org_admin.templates.edit_customisation") %> + <% b_label = _('Edit customisation') %> <% elsif customized == 3 %> - <% b_label = t("org_admin.templates.update_customisation") %> + <% b_label = _('Update Customisation') %> <% end %> <%= link_to b_label, admin_template_template_path(template), class: "dmp_table_link" %> | diff --git a/app/views/templates/admin_new.html.erb b/app/views/templates/admin_new.html.erb index 0fdf7cc..ed39d22 100644 --- a/app/views/templates/admin_new.html.erb +++ b/app/views/templates/admin_new.html.erb @@ -2,10 +2,10 @@ <% javascript "admin.js" %>
|---|
| <%= 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.title_help_text") %> | + class: "text_field has-tooltip", "data-toggle" => "tooltip", title: _('Please enter a title for your template.') %>
| <%= t("org_admin.templates.desc_label") %> | +<%= _('Description') %> |
<%= text_area_tag("template-desc", "", class: "tinymce") %>
- <%= link_to( image_tag("help_button.png"), "#", class: "template_desc_popover", rel: "popover", "data-html" => "true", "data-content" => t("org_admin.template_desc_help_text_html"))%>
+ <%= link_to( image_tag("help_button.png"), "#", class: "template_desc_popover", rel: "popover", "data-html" => "true", "data-content" => _("
Enter a description that helps you to differentiate between templates e.g. if you have ones for different audiences. "))%>
|
Here you can view previously published versions of your template. These can no longer be modified.
')%>| <%= t('org_admin.templates.title_label') %> | -<%= "Version" %> | -<%= t('org_admin.templates.published_label') %> | -<%= t('org_admin.templates.last_updated') %> | -<%= t('org_admin.templates.actions') %> | +<%= _('Title') %> | +<%= _('Version') %> | +<%= _('Published') %> | +<%= _('Last updated') %> | +<%= _('Actions') %> | - <%= link_to t('helpers.view'), admin_template_template_path(id: org_template), class: "dmp_table_link"%> + <%= link_to _('View'), admin_template_template_path(id: org_template), class: "dmp_table_link"%> | <%end%>
|---|