view button for contracts

This commit is contained in:
Harry Bomrah 2017-09-19 19:37:24 +08:00
parent 81ef796a11
commit e1bb18976a
1 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,9 @@
<td><%= contract.created_at.strftime("%y-%m-%d %H:%M") %></td> <td><%= contract.created_at.strftime("%y-%m-%d %H:%M") %></td>
<td><%= (contract.confirmed ? "<span class='label label-success'>Yes</span>" : "<span class='label label-important'>No</span>").html_safe %></td> <td><%= (contract.confirmed ? "<span class='label label-success'>Yes</span>" : "<span class='label label-important'>No</span>").html_safe %></td>
<td> <td>
<% if !site.nil? %> <% if contract.site_request.type == "newsite" %>
<a href="<%= see_contract_admin_client_management_path(contract.id) %>" class="btn btn-info">View</a>
<% elsif contract.site_request.type == "existing" && !site.nil? %>
<a href="<%= see_contract_admin_client_management_path(contract.id) %>" class="btn btn-info">View</a> <a href="<%= see_contract_admin_client_management_path(contract.id) %>" class="btn btn-info">View</a>
<% end %> <% end %>
</td> </td>