<%= _('since %{name} saved the answer below while you were editing. Please, combine your changes and then save the answer again.') % { name: user.name} %>
-
+
\ No newline at end of file
diff --git a/app/views/contact_us/contacts/new_formtastic.html.erb b/app/views/contact_us/contacts/new_formtastic.html.erb
deleted file mode 100644
index 8554019..0000000
--- a/app/views/contact_us/contacts/new_formtastic.html.erb
+++ /dev/null
@@ -1,8 +0,0 @@
-
- <%= (_("%{application_name} doesn't recognise your institutional credentials - either you haven't created an account with us or you haven't linked these details to your existing account. * If you do not have an account with %{application_name}, please complete the form below. * If you have an account with %{application_name}, please so we can link your account to your institutional credentials. Once you have created and/or linked your account, you'll be able to sign in with your institutional credentials directly.") % { :application_name => Rails.configuration.branding[:application][:name] }).html_safe %>
-
\ No newline at end of file
diff --git a/app/views/guidance_groups/admin_edit.html.erb b/app/views/guidance_groups/admin_edit.html.erb
index c390fc6..1ff0013 100644
--- a/app/views/guidance_groups/admin_edit.html.erb
+++ b/app/views/guidance_groups/admin_edit.html.erb
@@ -11,37 +11,21 @@
- " aria-label="<%= _('More information: Guidance group names') %>">
-
+ <%= f.text_field :name, as: :string, class: "form-control", 'data-toggle': 'tooltip', title: _('Add an appropriate name for your guidance group. This name will be used to tell the end user where the guidance has come from. It will be appended to text identifying the theme e.g. "[guidance group name]: guidance on data sharing" so we suggest you just use the institution or department name.') %>
- <% lbl = _("Check this box when you are ready for guidance associated with this group to appear on user's plans.") %>
-
-
+ <%= f.check_box :published, 'data-toggle': 'tooltip', title: _("Check this box when you are ready for guidance associated with this group to appear on user's plans.") %>
- " aria-label="<%= _('More information: Optional subsets for guidance groups') %>">
-
+ <%= f.check_box :optional_subset, 'data-toggle': 'tooltip', title: _("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.") %> <%= _('e.g. School/ Department') %>
- " aria-label="<%= _('More information: Guidance group names') %>">
-
+ <%= f.text_field :name, as: :string, class: "form-control", 'data-toggle': 'tooltip', title: _('Add an appropriate name for your guidance group. This name will be used to tell the end user where the guidance has come from. It will be appended to text identifying the theme e.g. "[guidance group name]: guidance on data sharing" so we suggest you just use the institution or department name.') %>
- " aria-label="<%= _('More information: Optional subsets for guidance groups') %>">
-
+ <%= f.check_box :optional_subset, 'data-toggle': 'tooltip', title: _("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.") %> <%= _('e.g. School/ Department') %>
+ <% last_question_id = section.questions.order("number DESC").first.id%>
+
+ <% section.questions.order("number").each do |question| %>
+
+ <%= render partial: 'questions/preview_question', locals: {question: question}%>
+ <% if last_question_id == question.id then %>
+
+ <% else %>
+
+ <% end %>
+
+ <% end %>
+
+
+
+ <% end %>
+
+
+
\ No newline at end of file
diff --git a/app/views/phases/edit.html.erb b/app/views/phases/edit.html.erb
index 92b5bb6..0d0946f 100644
--- a/app/views/phases/edit.html.erb
+++ b/app/views/phases/edit.html.erb
@@ -6,6 +6,6 @@
');
-
-<% elsif @templates.count > 1 %>
- // Clear the existing contents of the modal and then display template combobox
- $("#available-templates").html("<%= escape_javascript(render partial: 'available_templates') %>").fadeIn();
-
-<% else %>
- // Only one template so fill in the id
- $("#plan_template_id").val("<%= @templates.first.id %>");
-<% end %>
-
-// Force the submit button toggle
-$("#plan_template_id").change();
\ No newline at end of file
diff --git a/app/views/plans/download.html.erb b/app/views/plans/download.html.erb
index f971efe..d10ee74 100644
--- a/app/views/plans/download.html.erb
+++ b/app/views/plans/download.html.erb
@@ -7,6 +7,6 @@
\ No newline at end of file
diff --git a/app/views/plans/show.html.erb b/app/views/plans/show.html.erb
index 8736900..df98d71 100644
--- a/app/views/plans/show.html.erb
+++ b/app/views/plans/show.html.erb
@@ -8,7 +8,7 @@
-<% end %>
\ No newline at end of file
diff --git a/app/views/settings/phases/show.html.erb b/app/views/settings/phases/show.html.erb
deleted file mode 100644
index 796bd51..0000000
--- a/app/views/settings/phases/show.html.erb
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
The %{organisation_abbreviation} are now collaborating to develop a joint codebase for Data Management Planning called DMP Roadmap. Both of our tools will be delivered using this in the future. We've agreed what features need to be included and are planning a few sprints to deliver these. The initial release will include all of the main priorities we already had flagged, including:
- APIs to create plans, extract guidance and generate statistics from %{application_name}
- Multi-lingual support so foreign language versions can be presented
- Locales to provide a refined set of content for particular countries or other contexts
- A lifecycle to indicate the status of DMPs and allow institutional access to plans
- Support for reviewing Data Management Plans
%{application_name} has an active and growing user base, and we are grateful to the members who suggest ideas for new and improved features. If you would like to help shape our future plans, please join the user group. More information on how you can engage with us is available under the 'Get involved' tab.
Current release
The current version of %{application_name} is %{application_version}.
%{application_name} is developed and maintained by the UK %{organisation_name}. We’re a small team, and are happy to collaborate with others. There are various ways you can get involved:
Join the user group
We run a listserv for the %{application_name} user group that you can request to join. We also host periodic meetings to consult on our plans. Being part of the user group gives you the opportunity to be informed about future developments and to provide feedback to help shape our plans.
Our user group sessions are usually focused around a certain topic (e.g. fleshing out use cases for an API) so invites are sent based on your areas of expertise. It is helpful for us to know your role and interests to invite relevant people to each session. Please introduce yourself on the list and share your ideas.
Notes from previous user group sessions are provided below:
Please let us know your interests and share your ideas for future developments via the mailing list so the community as a whole can feedback on them.
Customise %{application_name}
%{application_name} can be customised by institutions and disciplines. You can add templates for users in your organisation and tailored guidance that explains local support and services. Example answers can also be offered to help users understand what to write in a Data Management Plan. To do this you’ll need to request admin access, so please email us on dmponline@dcc.ac.uk.
%{application_name} is a Ruby on Rails application. The source code is made available under an MIT License. This permits others to reuse the code freely, but obligates you to share the source code for any extensions in the same way. Please inform us if you install an instance of %{application_name} and offer your contributions back to the community.
If you install an instance of %{application_name} we require that you credit the %{organisation_abbreviation} as originators of the tool. We recommend that the acknowledgement takes the form of the %{application_name} logo with a link back to the %{organisation_abbreviation}-hosted version of the tool.
We are willing to work with external developers to add new features to the tool. We are also open to delivering new features on a chargeable basis. If there are extensions you would like to see prioritised and have resource to support additional developer effort, please contact us on dmponline@dcc.ac.uk to negotiate terms.
We are impressed by the uptake of %{application_name} both in the UK and internationally and are really keen to hear how you are using the tool and promoting it in your context. We are aware that others have run training courses, developed guidance materials and advocated use of the tool. Please notify us of this as it helps to show impact.
We are currently investigating options for revenue generation. This will help us serve the increased demand more effectively and safeguard the long-term sustainability of %{application_name}. Plans will be released for consultation soon but we also welcome your suggestions on how best to support our work.
<%= s.text_area :text, rows: 5, 'data-toggle': 'tooltip', title: _('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.') %>
<%= s.text_area :text, rows: 5, 'data-toggle': 'tooltip', title: _('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.') %>
\ No newline at end of file
diff --git a/test/functional/token_permission_types_controller_test.rb b/test/functional/token_permission_types_controller_test.rb
deleted file mode 100644
index f1cc342..0000000
--- a/test/functional/token_permission_types_controller_test.rb
+++ /dev/null
@@ -1,30 +0,0 @@
-require 'test_helper'
-
-class TokenPermissionTypesControllerTest < ActionDispatch::IntegrationTest
-
- include Devise::Test::IntegrationHelpers
-
- # CURRENT RESULTS OF `rake routes`
- # --------------------------------------------------
- # token_permission_types GET /token_permission_types token_permission_types#index
-
- setup do
- @user = User.first
- end
-
- # GET /token_permission_types (token_permission_types_path)
- # ----------------------------------------------------------
- test "retrieve the list of token permission types" do
- # Should redirect user to the root path if they are not logged in!
- get token_permission_types_path
- assert_unauthorized_redirect_to_root_path
-
- sign_in @user
-
- get token_permission_types_path
- assert_response :success
- assert assigns(:user)
- assert assigns(:token_types)
- end
-
-end
\ No newline at end of file