Sha256: 7dbde5126a0403d1cc50a3441719905f9b995f4b24235f5e8fa4307b2cb3bde5

Contents?: true

Size: 1.08 KB

Versions: 7

Compression:

Stored size: 1.08 KB

Contents

<% if rows %>
  <% if rows.total_count > 50 %>
    <%= link_to 'Print',
                'javascript:void(0)',
                onclick: "$('#print_report_modal').modal('show');",
                class: 'btn'
    %>
    <div id="print_report_modal" class="modal hide fade">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        &nbsp;
      </div>
      <div class="modal-body">
        <p> You will only be printing the current page of results (50 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 class="span1">
            <button type="button" class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
          </div>
        </div>
      </div>
    </div>
  <% else %>
    <%= print_button(@rows) %>
  <% end %>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
clark_kent-0.9.9 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.9.8 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.9.7 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.9.6 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.9.5 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.9.4 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.9.2 app/views/clark_kent/reports/_print_report.html.erb