Files
grecia/app/views/dashboard/poster/index.pdf.erb
Alessandro Cuoghi d81d1537d0 Created new quotes
- Created blue images quotes
- Added quotes images to preview poster
- Added quotes images to download poster
- Removed reference to Decide Madrid and use %{org}
- Removed reference to decide.madrid.es and use %{link}
- FIxed some style (font, padding, maring) in PDF
- Passed scss-lint
2019-02-02 19:18:27 +01:00

43 lines
1.6 KiB
Plaintext

<!doctype html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%= wicked_pdf_stylesheet_link_tag 'application' -%>
<%= wicked_pdf_stylesheet_link_tag 'pdf_fonts' -%>
</head>
<body class="dashboard-poster-pdf">
<div class="poster-header">
<h1>
<strong><%= t("dashboard.poster.index.poster_title") %>
<br>
<%= wicked_pdf_image_tag("finger.png") %>
<%= t("dashboard.poster.index.poster_subtitle") %>
</strong>
</h1>
<p class="intro">
<%= t("dashboard.poster.index.intro_text", org: Setting["org_name"]).html_safe %>
</p>
<p class="text-center proposal-code">
<strong><%= t("dashboard.poster.index.proposal_code", code: proposal.code) %></strong>
</p>
<div class="proposal-image">
<% if proposal.image.present? %>
<div class="overflow-image" style="background-image: url(<%= asset_url proposal.image.attachment.url(:large) %>);"></div>
<% else %>
<div class="overflow-image" style="background-image:url('<%= "file://#{Rails.root.join('app','assets','images','default_mailing.jpg')}" %>');"></div>
<% end %>
</div>
<div class="poster-content">
<h2 class="text-center"><strong><%= t("dashboard.poster.index.support") %></strong></h2>
<%= wicked_pdf_image_tag 'quote-before-blue.png' %>
<h3><strong><%= proposal.title %></strong></h3>
<%= wicked_pdf_image_tag 'quote-after-blue.png' %>
<p class="poster-footer">
<%= t("dashboard.poster.index.footer", link: Setting["url"]).html_safe %>
</p>
</div>
</div>
</body>
</html>