consul/consul

View on GitHub
app/views/management/proposals/print.html.erb

Summary

Maintainability
Test Coverage
<div class="row">
  <div class="proposals-list">
    <a id="print_link" href="javascript:window.print();" class="button warning float-right">
      <%= t("management.proposals.print.print_button") %>
    </a>

    <%= image_tag "header_print_proposals.jpg", class: "for-print-only" %>

    <div class="filters">
      <span class="for-print-only date-for-print"><%= l Date.current, format: :long %></span>

      <h2 class="inline-block">
        <span class="not-print"><%= t("proposals.index.select_order_long") %></span>
        <span class="for-print-only"><%= t("management.print.proposals_title") %></span>
      </h2>
      <div class="not-print">
        <%= render "shared/order_links", i18n_namespace: "proposals.index" %>
      </div>
    </div>

    <%= render @proposals %>

    <div class="for-print-only">
      <p><strong><%= t("management.print.proposals_info") %></strong></p>
    </div>
  </div>
</div>