2017-03-10 06:53:25 +00:00
|
|
|
<% @site_requests.each do |request| %>
|
2017-09-19 08:52:24 +00:00
|
|
|
<% site = request.get_site %>
|
2017-03-10 06:53:25 +00:00
|
|
|
<tr>
|
|
|
|
<td><%= request.uid %>
|
|
|
|
<td><%= request.c_panel_user.name %></td>
|
|
|
|
<td>
|
|
|
|
<% case request.type %>
|
|
|
|
<% when "newsite" %>
|
|
|
|
<span class="label label-success">New Site</span>
|
|
|
|
<% when "existing" %>
|
|
|
|
<span class="label label-warning">New Feature</span>
|
2017-09-19 08:52:24 +00:00
|
|
|
<% if !site.nil? %>
|
|
|
|
<div>Requested for : <a href="http://<%= site.site_domain %>" target="_blank"><%= site.title %></a></div>
|
|
|
|
<% else %>
|
|
|
|
Site Deleted
|
|
|
|
<% end %>
|
2017-03-10 06:53:25 +00:00
|
|
|
<% when "addsites" %>
|
|
|
|
<span class="label label-info">Sites Addition</span>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
<td><%= request.created_at.strftime("%y-%m-%d %H:%M") %></td>
|
|
|
|
<td>
|
|
|
|
<a href="<%= admin_client_management_path(request.id) %>" class="btn btn-info">Details</a>
|
|
|
|
<% if request.request_contract != nil %>
|
|
|
|
<a href="<%= see_contract_admin_client_management_path(request.request_contract.id, :page => params[:page]) %>" class="btn btn-warning">Contract</a>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2017-03-21 09:39:48 +00:00
|
|
|
<% end %>
|