diff --git a/app/controllers/plans_controller.rb b/app/controllers/plans_controller.rb index 8bedcbc..5a0be71 100644 --- a/app/controllers/plans_controller.rb +++ b/app/controllers/plans_controller.rb @@ -308,6 +308,12 @@ @a_s_ids = Question.where(id: @a_q_ids).pluck(:section_id).uniq a_p_ids = Section.where(id: @a_s_ids).pluck(:phase_id).uniq @phases = Phase.includes(sections: :questions).where(id: a_p_ids).order(:number) + @creator_text = @plan.owner.name(false) + @plan.roles.administrator.not_creator.each do |co_owner| + @creator_text += ", " + co_owner.name(false) + end + @affiliation = @plan.owner.org.abbreviation + begin @exported_plan.save! diff --git a/app/views/plans/public_export.pdf.erb b/app/views/plans/public_export.pdf.erb index ca7fb83..5458fdc 100644 --- a/app/views/plans/public_export.pdf.erb +++ b/app/views/plans/public_export.pdf.erb @@ -18,7 +18,14 @@ -

<%= @plan.title %>

+
+

<%= @plan.title %>

+

<%= _("A Data Management Plan created using ") + Rails.configuration.branding[:application][:name] + "." %>

+
+
+

<%= _("Creator(s): ") + @creator_text %>


+

<%= _("Affiliation: ") + @affiliation %>


+

<%= _("Last Updated: ") + @plan.updated_at.to_date.to_s %>


<%= _("Copyright information: The above plan creator(s) have agreed that others may use as much of the text of this plan as they would like in their own plans, and customise it as necessary. You do not need to credit the creator(s) as the source of the language used, but using any of the plan's text does not imply that the creator(s) endorse, or have any relationship to, your project or proposal") %>

<% @phases.each do |phase| %>