view button for contracts
This commit is contained in:
parent
81ef796a11
commit
e1bb18976a
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue