Sha256: 322ca4107cfbdea6d1880f36fb83087ac8dcead9a09e62ba8548a0b6b1d2ad2c

Contents?: true

Size: 703 Bytes

Versions: 6

Compression:

Stored size: 703 Bytes

Contents

<% if rows %>
  <% if rows.total_count > 50 %>
    <div <%= modal_trigger("#print_report_modal", dismissable: true) %> class="link"> Print </div>
    <div id="print_report_modal" class="hidden">
      <p> You will only be printing the current page of results (<%= @report.resource_class.default_per_page %> of <%= @rows.total_count %> total results).
          To print all results click the <strong>download full csv</strong> link at the bottom of the page.</p>
      <div class="row-fluid" >
        <div class="span8"></div>
        <div class="span1">
          <%= print_button(@rows, true) %>
        </div>
      </div>
    </div>
  <% else %>
    <%= print_button(@rows) %>
  <% end %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
clark_kent-0.11.3 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.11.2 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.11.1 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.11.0 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.10.4 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.10.2 app/views/clark_kent/reports/_print_report.html.erb