Skip to content

Commit

Permalink
Issue DMPRoadmap#2972 - Add project Start and End Dates, ID and Grant…
Browse files Browse the repository at this point in the history
… Number to the Export Plan coversheet.

Changes:
    The Start and End Dates, ID and Grant Number was added the Project
    Details section of the Export Plans.
  • Loading branch information
John Pinto committed Jul 26, 2021
1 parent e23ff6b commit 27d4a40
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 27d4a40

Please # to comment.