Skip to content

Commit

Permalink
Merge pull request #2982 from DMPRoadmap/bug_2972_project_start-end_d…
Browse files Browse the repository at this point in the history
…ate_to_pdf_coversheet_details

Issue #2972 - Add project Start and End Dates, ID and Grant Number to he Export Plan coversheet.
  • Loading branch information
briri authored Jul 27, 2021
2 parents c469b5c + e24b0aa commit 6849416
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions app/views/shared/export/_plan_coversheet.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,29 @@
<p><b><%= _("ORCID iD: ") %></b><%= orcid.value_without_scheme_prefix %></p> <br>
<% end %>
<% if @plan.grant_number.present? %>
<p><b><%= _("Grant number: ") %></b><%= @plan.grant_number %></p> <br>
<% end %>
<% if @plan.description.present? %>
<p><b><%= _("Project abstract: ") %></b></p>
<div style="margin-left: 15px;"><%= sanitize(@plan.description) %></div><br>
<% end %>
<% if @plan.id.present? %>
<p><b><%= _("ID: ") %></b><%= @plan.id %></p> <br>
<% end %>
<% if @plan.start_date.present? %>
<p><b><%= _("Start date: ") %></b><%= l(@plan.start_date.to_date, formats: :short) %></p> <br>
<% end %>
<% if @plan.end_date.present? %>
<p><b><%= _("End date: ") %></b><%= l(@plan.end_date.to_date, formats: :short) %></p> <br>
<% end %>

<p><b><%= _("Last modified: ") %></b><%= l(@plan.updated_at.to_date, formats: :short) %></p> <br>

<% if @plan.grant_number.present? %>
<p><b><%= _("Grant number / URL: ") %></b><%= @plan.grant_number %></p> <br>
<% end %>
<% if @public_plan %>
<p><b><%= _("Copyright information:") %></b></p>
<div style="margin-left: 15px;">
Expand Down

0 comments on commit 6849416

Please sign in to comment.