Skip to content

Instantly share code, notes, and snippets.

@carolromero
Last active November 6, 2020 14:16
Show Gist options
  • Save carolromero/2157eb41c4e8d870b44da1b8e1291203 to your computer and use it in GitHub Desktop.
Save carolromero/2157eb41c4e8d870b44da1b8e1291203 to your computer and use it in GitHub Desktop.
Initiative print form
<div class="initiative-letterhead">
<% if current_organization.logo.present? %>
<%= image_tag current_organization.logo.url, title: current_organization.name %>
<% end %>
<%= current_organization.name %>
</div>
<h3 class="print-section-title">If requested by the organization, please print and fill out this form to submit where indicated:</h3>
<div class="initiative-print-title">
Application for admission of an initiative
</div>
<div class="print-table">
<div class="print-table-header">
Author of the initiative
</div>
<div class="print-table-row">
<div class="print-table-cell">
<div class="cell-header">ID Number</div>
<div class="cell-content"></div>
</div>
</div>
<div class="print-table-row">
<div class="print-table-cell">
<div class="cell-header">Full Name</div>
<div class="cell-content"></div>
</div>
</div>
<div class="print-table-row">
<div class="print-table-cell">
<div class="cell-header">Address</div>
<div class="cell-content"></div>
</div>
</div>
<div class="print-table-row">
<div class="print-table-cell w33">
<div class="cell-header">City</div>
<div class="cell-content"></div>
</div>
<div class="print-table-cell w33">
<div class="cell-header">Province/State</div>
<div class="cell-content"></div>
</div>
<div class="print-table-cell w33">
<div class="cell-header">Postal Code/ZIP</div>
<div class="cell-content"></div>
</div>
</div>
<div class="print-table-row">
<div class="print-table-cell w33">
<div class="cell-header">Phone Number</div>
<div class="cell-content"></div>
</div>
<div class="print-table-cell">
<div class="cell-header">Email</div>
<div class="cell-content"><%= current_initiative.author.email %></div>
</div>
</div>
</div>
<br><br>
<div class="print-table">
<div class="print-table-header">
Members of the initiative's promoter committee
</div>
<div class="print-table-row">
<div class="print-table-cell w33">Full Name</div>
<div class="print-table-cell w33">ID Number</div>
<div class="print-table-cell w33">Address</div>
</div>
<% 4.times do %>
<div class="print-table-row">
<div class="print-table-cell w33"></div>
<div class="print-table-cell w33"></div>
<div class="print-table-cell w33"></div>
</div>
<% end %>
</div>
<h2 class="print-section-title">Type of initiative:</h2>
<%= translated_attribute(current_initiative.type.title) %>
<h2 class="print-section-title">Title:</h2>
<%= translated_attribute(current_initiative.title) %>
<h2 class="print-section-title">Description:</h2>
<%= decidim_sanitize translated_attribute(current_initiative.description) %>
<div class="print-table">
<div class="print-table-header">
Attached documentation (please write the name of each document below)
</div>
<div class="print-table-row">
<div class="print-table-cell checkbox-cell"></div>
<div class="print-table-cell">
<div class="cell-content"></div>
</div>
</div>
<div class="print-table-row">
<div class="print-table-cell checkbox-cell"></div>
<div class="print-table-cell">
<div class="cell-content"><div class="cell-content"></div></div>
</div>
</div>
<div class="print-table-row">
<div class="print-table-cell checkbox-cell"></div>
<div class="print-table-cell">
<div class="cell-content"></div>
</div>
</div>
<div class="print-table-row">
<div class="print-table-cell checkbox-cell"></div>
<div class="print-table-cell">
<div class="cell-content"></div>
</div>
</div>
<div class="print-table-row">
<div class="print-table-cell checkbox-cell"></div>
<div class="print-table-cell">
<div class="cell-content"></div>
</div>
</div>
<div class="print-table-row">
<div class="print-table-cell checkbox-cell"></div>
<div class="print-table-cell">
<div class="cell-content"></div>
</div>
</div>
</div>
<br>
<div class="print-table no-border">
<div class="print-table-row no-border">
<div class="print-table-cell w50 no-border" style="font-weight: bold">Place, Date</div>
<div class="print-table-cell w50 no-border" style="font-weight: bold">Signature</div>
</div>
</div>
<p class="print-initiative-legal-text">
The personal data collected will be incorporated and treated confidentially by the organization, according to current legislation.
</p>
<a href="#" onclick="window.print();return false;" class="button expanded"><%= t ".print" %></a>
<%= stylesheet_link_tag "decidim/initiatives/print-initiative", media: "all" %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment