Sha256: f3022bae84864fbd96a7e06220e7ce117de90853329fa2f6bbc276f24311b5e4

Contents?: true

Size: 1.09 KB

Versions: 45

Compression:

Stored size: 1.09 KB

Contents

<% if rows %>
  <% if rows.total_count > rows.count(:id) %>
    <%= 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

45 entries across 45 versions & 1 rubygems

Version Path
clark_kent-0.9.1 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.9.0 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.8.11 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.8.10 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.8.9 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.8.8 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.8.7 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.8.6 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.8.5 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.8.4 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.8.3 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.8.2 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.8.1 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.7.1 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.7.0 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.6.1 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.6.0 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.5.0 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.4.4 app/views/clark_kent/reports/_print_report.html.erb
clark_kent-0.4.3 app/views/clark_kent/reports/_print_report.html.erb