Display changes for contract

This commit is contained in:
Will Bradley 2014-03-02 19:41:57 -07:00
parent 20594d651c
commit 0cfa83a9f7
2 changed files with 8 additions and 1 deletions

View File

@ -6,6 +6,7 @@
<table class="table"> <table class="table">
<tr> <tr>
<th>Scan?</th>
<th>Name</th> <th>Name</th>
<th>User</th> <th>User</th>
<th>Date</th> <th>Date</th>
@ -14,6 +15,11 @@
<% @contracts.sort_by{|r| [r.last_name] }.each do |contract| %> <% @contracts.sort_by{|r| [r.last_name] }.each do |contract| %>
<tr> <tr>
<td>
<% unless contract.document.blank? %>
<span class="glyphicon glyphicon-ok"></span>
<% end %>
</td>
<td> <td>
<%= contract.last_name %>, <%= contract.last_name %>,
<%= contract.first_name %> <%= contract.first_name %>

View File

@ -8,7 +8,8 @@
<h2> <h2>
<%= @contract.full_name %> <%= @contract.first_name %>
<%= @contract.last_name %>
<%= link_to "(#{@contract.user.name})", @contract.user if @contract.user %> <%= link_to "(#{@contract.user.name})", @contract.user if @contract.user %>
<small> <small>
signed signed