Files
nairobi/app/views/proposals/created.html.erb
Juan Salvador Pérez García 303584a06e Show will be reused in preview
Show view will be reused when a preview is required
2018-07-17 17:57:30 +02:00

21 lines
679 B
Plaintext

<div class=proposal-created>
<div id="<%= dom_id(@proposal) %>" class="row">
<div class="small-12 medium-12 column">
<h1><%= t('.title') %></h1>
<%= raw t('.motivation') %>
<%= link_to t('.dashboard'), proposal_dashboard_index_path(@proposal), class: 'button' if can?(:dashboard, @proposal) %>
<%= link_to t('.publish'), publish_proposal_path(@proposal), method: :patch, class: 'button' if can?(:publish, @proposal) %>
</div>
</div>
</div>
<div class="row">
<div class="small-12 column">
<h3><%= t('.preview_title') %></h3>
</div>
</div>
<%= render file: 'proposals/show.html.erb', locals: { preview: true } %>