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

40 lines
1.5 KiB
Plaintext
Raw Normal View History

2017-03-07 09:37:28 +00:00
<table class="table main-list">
<thead>
<tr class="sort-header">
<% ["client_management.request_uid", "client_management.user", "client_management.request_type", "client_management.requested_on", :actions].each_with_index do |f,i| %>
<%= thead(f) %>
<% end %>
</tr>
</thead>
<tbody>
<% @site_requests.each do |request| %>
<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>
<div>Requested for : <a href="http://<%= request.get_site.site_domain %>" target="_blank"><%= request.get_site.title %></a></div>
<% 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="#" class="btn btn-warning">Contract</a>
<% end %>
2017-03-07 09:37:28 +00:00
</td>
</tr>
<% end %>
</tbody>
</table>
<%=
content_tag :div, class: "bottomnav clearfix" do
content_tag :div, paginate(@site_requests), class: "pagination pagination-centered"
end
%>