Adds styles to dashboard poster views

This commit is contained in:
decabeza
2018-10-05 18:38:17 +02:00
parent 9488afa1fd
commit d38ef88b06
5 changed files with 31 additions and 31 deletions

View File

@@ -1,12 +1,12 @@
.dashboard-poster-preview {
.dashboard-poster-pdf {
.header {
background-color: #3700fd;
background-color: #3700fd;
color: white;
padding: 40pt 40pt 80pt 40pt;
margin-bottom: 0;
border-bottom: 0;
h1 {
font-size: 40pt;
color: #dcf5fe;
@@ -38,7 +38,7 @@
display: block;
margin-top: -75pt;
margin-bottom: 40pt;
img {
display: block;
margin-left: auto;

View File

@@ -2,12 +2,11 @@
<% if action_name != 'index' %>
<%= link_to t("dashboard.poster.options.preview"),
proposal_dashboard_poster_index_path(proposal),
class: 'button expanded' %>
class: "button expanded" %>
<% end %>
<%= link_to t("dashboard.poster.options.download"),
proposal_dashboard_poster_index_path(proposal, format: :pdf),
target: '_blank',
class: 'button expanded' %>
target: "_blank",
class: "button expanded" %>
</div>

View File

@@ -1,25 +1,27 @@
<% content_for :action_title, t("dashboard.poster.index.title") %>
<div class="row">
<div class="small-12 medium-9 column dashboard-poster-preview">
<div class="header">
<h1><%= t("dashboard.poster.index.h1") %></h1>
<h2><%= t("dashboard.poster.index.h2") %></h2>
<p><%= t("dashboard.poster.index.intro_text") %></p>
<p class="image-caption"><%= t("dashboard.poster.index.proposal_code", code: proposal.code) %></p>
<div class="row expanded">
<div class="small-12 medium-9 large-7 column dashboard-poster-preview">
<div class="poster-header">
<h1><%= t("dashboard.poster.index.poster_title_html") %></h1>
<p class="intro"><%= t("dashboard.poster.index.intro_text") %></p>
<p class="text-center">
<strong><%= t("dashboard.poster.index.proposal_code", code: proposal.code) %></strong>
</p>
</div>
<div class="proposal-image">
<%= image_tag proposal.image.attachment.url(:large), class: 'proposal-image' if proposal.image.present? %>
<%= image_tag 'default_mailing.jpg', class: 'proposal-image' unless proposal.image.present? %>
<% if proposal.image.present? %>
<%= image_tag proposal.image.attachment.url(:large) %>
<% else %>
<%= image_tag "default_mailing.jpg" %>
<% end %>
<div class="margin text-center">
<h2><%= t("dashboard.poster.index.support") %></h2>
<h3 class="proposal-title">"<%= proposal.title %>"</h3>
</div>
<h3><%= t("dashboard.poster.index.h3") %></h3>
<div class="proposal-title">"<%= proposal.title %>"</div>
<div class="poster-footer"><%= t("dashboard.poster.index.footer") %></div>
<p class="poster-footer"><%= t("dashboard.poster.index.footer") %></p>
</div>
<%= render 'options' %>
<%= render 'poster_options' %>
</div>

View File

@@ -8,10 +8,9 @@
</head>
<body>
<div class="row">
<div class="small-12 medium-9 column dashboard-poster-preview dashboard-poster-pdf">
<div class="small-12 medium-9 column dashboard-poster-pdf">
<div class="header">
<h1><%= t("dashboard.poster.index.h1") %></h1>
<h2><%= t("dashboard.poster.index.h2") %></h2>
<h1><%= t("dashboard.poster.index.poster_title_html") %></h1>
<p><%= t("dashboard.poster.index.intro_text") %></p>
<p class="image-caption"><%= t("dashboard.poster.index.proposal_code", code: proposal.code) %></p>
</div>
@@ -21,7 +20,7 @@
<%= wicked_pdf_image_tag 'default_mailing.jpg', class: 'proposal-image' unless proposal.image.present? %>
</div>
<h3><%= t("dashboard.poster.index.h3") %></h3>
<h3><%= t("dashboard.poster.index.support") %></h3>
<div class="proposal-title">"<%= proposal.title %>"</div>

View File

@@ -1,8 +1,8 @@
<% content_for :action_title, t("dashboard.poster.new.title") %>
<div class="row">
<div class="row expanded">
<div class="small-12 medium-9 column">
<%== Setting['proposals.poster_description'] %>
</div>
<%= render 'options' %>
<%= render 'poster_options' %>
</div>