Newer
Older
dmpopidor / app / views / branded / shared / export / _plan_coversheet.erb
<hr />
<h1><%= @plan.title %></h1>
<p><em>
  <%= _("A Data Management Plan created using ") + Rails.configuration.branding[:application][:name] %>
</em></p>
<br/>
<div class="cover-page">
  <p>
    <%= plan_attribution(@hash[:attribution]) %>
  </p><br>

  <p><%= _("Affiliation: ") + @hash[:affiliation] %></p><br>

  <% if @hash[:funder].present? %>
    <p><%= _("Template: ") + @hash[:funder] %></p><br>
  <% else %>
    <p><%= _("Template: ") + @hash[:template] + @hash[:customizer] %></p><br>
  <% end %>

  <% if @plan.principal_investigator_identifier.present? %>
    <p><%= _("ORCID iD: ") + @plan.principal_investigator_identifier %></p> <br>
  <% end %>

  <% if @plan.grant_number.present? %>
    <p><%= _("Grant number: ") + @plan.grant_number %></p> <br>
  <% end %>

  <% if @plan.description.present? %>
    <p><%= _("Project abstract: ") %></p>
    <div style="margin-left: 15px;"><%= sanitize(@plan.description) %></div><br>
  <% end %>

  <% if @hash[:research_outputs].length > 1 || !@hash[:research_outputs][0].main?%>
    <p><%= _("Research outputs: ") %></p>
    <ul>
      <% @hash[:research_outputs].each do |research_output| %>
        <li><%= research_output.name %> - <%= research_output.description %></li>
      <% end %>
    </ul>
    <br>
  <% end %>

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

  <% if @public_plan %>
    <p><%= _("Copyright information:") %></p>
    <div style="margin-left: 15px;">
      <p>
        <%= _(" 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") %>
      </p>
    </div>
  <% end %>
</div>
<hr class="bottom" />