client_management/app/views/admin/client_managements/_index.html.erb

30 lines
1.1 KiB
Plaintext
Raw Normal View History

<% @site_requests.each do |request| %>
2017-09-19 08:52:24 +00:00
<% site = request.get_site %>
<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 %>
<% 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>
<% end %>