20 lines
873 B
Plaintext
20 lines
873 B
Plaintext
|
<% @contracts.each do |contract| %>
|
||
|
<tr>
|
||
|
<td><%= contract.uid %>
|
||
|
<td><%= contract.contract_user.name %></td>
|
||
|
<td>
|
||
|
<% case contract.site_request.type %>
|
||
|
<% when "newsite" %>
|
||
|
<span class="label label-success">New Site</span>
|
||
|
<% when "existing" %>
|
||
|
<span class="label label-warning">New Feature</span>
|
||
|
<div>Requested for : <a href="http://<%= contract.get_site.site_domain %>" target="_blank"><%= contract.get_site.title %></a></div>
|
||
|
<% end %>
|
||
|
</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>
|
||
|
<a href="<%= see_contract_admin_client_management_path(contract.id) %>" class="btn btn-info">View</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% end %>
|