Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <% if @documents and (@documents.size > 0) %>
- <% form_tag({:controller => "verifications", :action => "update"}, :method => "post") do %>
- <table>
- <tr class="heading">
- <th>Filename</th>
- <th>Assigned User</th>
- <th>Pages</th>
- <th>Unverified Samples</th>
- <th>Verified</th>
- </tr>
- <% for document in @documents %>
- <tr>
- <td><%= link_to document.nice_name, {:controller => :documents,
- :action => :download, :id => document}, {:popup => true} %></td>
- <td><%= document.user.login if document.user %></td>
- <td><%= document.pages %></td>
- <td><%= document.samples.count %></td>
- <td><%= check_box_tag "document[#{document.id}][verified]", 1, document.verified %>
- <%= hidden_field_tag "document[#{document.id}][verified]", 0 %></td>
- </tr>
- <% end %>
- <tr class="last"/>
- </table>
- <fieldset>
- <div class="fieldwrapper"><%= submit_tag 'Update Verifications' %></div>
- <div class="fltrt"><div class="fieldwrapper"><%= will_paginate @documents %></div></div>
- </fieldset>
- <% end %>
- <p><%= @open_count %></p>
- <% else %>
- <p>There are currently no complete documents to verify.</p>
- <% end %>
Add Comment
Please, Sign In to add comment