diff --git a/app/views/guidances/admin_index.html.erb b/app/views/guidances/admin_index.html.erb index 3f1ae3b..a740ba9 100644 --- a/app/views/guidances/admin_index.html.erb +++ b/app/views/guidances/admin_index.html.erb @@ -2,7 +2,7 @@
+
<%= _("First create a guidance group. This could be institution wide or a subset e.g. a particular College / School, Institute or department. When you create guidance you'll be asked to assign it to a guidance group.") %>
| <%= _('Name') %> | -<%= _('Published') %> | -<%= _('Optional subset') %> | -<%= _('Last updated') %> | -<%= _('Actions') %> + | <%= _('Name') %> | +<%= _('Published') %> | +<%= _('Optional subset') %> | +<%= _('Last updated') %> | +|
|---|---|---|---|---|---|---|---|---|---|
| <%= guidance_gr.name %> | -+ | <% if guidance_gr.published.nil? || guidance_gr.published == false then%> <%= _('No')%> <% else %> <%= _('Yes')%> <% end %> | -+ | <% if guidance_gr.optional_subset.nil? || guidance_gr.optional_subset == false then%> <%= _('No')%> <% else %> <%= _('Yes')%> <% end %> | - -+ | <%= l guidance_gr.updated_at.to_date, formats: :short %> | -
- <%= link_to _('Edit'), admin_edit_guidance_group_path(guidance_gr), class: "dmp_table_link"%> - <%= link_to _('Delete'), admin_destroy_guidance_group_path(guidance_gr), data: {confirm: _("You are about to delete '%{guidance_group_name}'. This will affect guidance. Are you sure?") % { :guidance_group_name => guidance_gr.name }}, method: :delete, class: "dmp_table_link"%> + |
+
+
+
+
+
|
+
<%= _('You can write pieces of guidance to be displayed by theme (e.g. generic guidance on storage and backup that should present across the board). Writing generic guidance by theme saves you time and effort as your advice will be automatically displayed across all templates rather than having to write guidance to accompany each.') %>
-+
<%= _('If you do have a need to provide guidance for specific funders that would not be useful to a wider audience (e.g. if you have specific instructions for applicants to BBSRC for example), you can do so by adding guidance to a specific question when you edit your template.') %>
<% if @guidances.length > 0 then%> -| - <%= render(partial: "shared/table_filter", - locals: {path: admin_index_guidance_path, - placeholder: _('Filter guidance')}) %> - | + <%= render(partial: "shared/table_filter", locals: {path: admin_index_guidance_path, placeholder: _('Filter guidance')}) %>|||||||||
| <%= _('Text') %> | -<%= _('Themes') %> | -<%= _('Guidance group') %> | -<%= _('Last updated') %> | -<%= _('Actions') %> + | <%= _('Text') %> | +<%= _('Themes') %> | +<%= _('Guidance group') %> | +<%= _('Last updated') %> | +|
|---|---|---|---|---|---|---|---|---|---|
| <%= guidance.text.html_safe%> | @@ -106,37 +113,49 @@ <%= th.title %> <% end %> - <% else %> -- - + <% else %> + | + - | - <% end %> - <% if guidance.guidance_group.present? then %> -- <%= guidance.guidance_group.name %> - | - <% else %> -- - - | - <% end %> + <% end %> + <% if guidance.guidance_group.present? then %> ++ <%= guidance.guidance_group.name %> + | + <% else %> ++ - + | + <% end %><%= l guidance.updated_at.to_date, formats: :short %> |
- <%= link_to _('Edit'), admin_edit_guidance_path(guidance), class: "dmp_table_link"%> - <%= link_to _('Delete'), admin_destroy_guidance_path(guidance), - data: {confirm: _("You are about to delete '%{guidance_summary}'. Are you sure?") % { :guidance_summary => truncate(sanitize(guidance.text,tags: %w(br a)), length: 20 , omission: _('... (continued)'))} }, method: :delete, class: "dmp_table_link"%> +
+
+
+
+
|
|
| <%= _('Title') %> | <%= _('Description') %> | <%= _('Status') %> | <%= _('Last updated') %> | -<%= _('Actions') %> | +
-
|
+
|---|
| <%= _('Title') %> | <%= _('Description') %> | <%= _('Status') %> | <%= _('Last updated') %> | -<%= _('Actions') %> + |
-
+
+
+
|
<% end %>
diff --git a/app/views/users/admin_grant_permissions.html.erb b/app/views/users/admin_grant_permissions.html.erb
index e70d80d..2dc172e 100644
--- a/app/views/users/admin_grant_permissions.html.erb
+++ b/app/views/users/admin_grant_permissions.html.erb
@@ -1,6 +1,6 @@
|---|