67 lines
1.8 KiB
Plaintext
67 lines
1.8 KiB
Plaintext
<style type="text/css">
|
|
table th{
|
|
text-align: right;
|
|
padding-right: 15px;
|
|
}
|
|
</style>
|
|
<h2>Request ID : <%= @site_request.uid %></h2>
|
|
<h2>Request type : <%= @site_request.get_request_type %></h2>
|
|
<table width="100%">
|
|
<caption><h3>User Details</h3></caption>
|
|
<% if !@user.fullname.nil? %>
|
|
<tr>
|
|
<th>Name :</th>
|
|
<td><%= @user.fullname %></td>
|
|
</tr>
|
|
<% end %>
|
|
<tr>
|
|
<th>Email :</th>
|
|
<td><%= @site_request.c_panel_user.email %></td>
|
|
</tr>
|
|
<% if !@user.phone_number.nil? %>
|
|
<tr>
|
|
<th>Phone Number :</th>
|
|
<td><%= @user.phone_number %></td>
|
|
</tr>
|
|
<% end %>
|
|
<% if !@user.address.nil? %>
|
|
<tr>
|
|
<th>Address :</th>
|
|
<td><%= @user.address %></td>
|
|
</tr>
|
|
<% end %>
|
|
<% if !@user.registered_site_ids.empty? %>
|
|
<tr>
|
|
<th>Registered Sites :</th>
|
|
<td>
|
|
<% @user.registered_sites.each do |rs| %>
|
|
<span class="label label-default"><a style="color:#fff;" href="http://<%= rs.site_domain %>" target="_blank"><%= rs.title %></a></span>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|
|
<hr>
|
|
<table width="100%">
|
|
<caption><h3>Request Specifications</h3></caption>
|
|
<% case @site_request.type %>
|
|
<% when "newsite" %>
|
|
<%= render :partial => "site_spec" %>
|
|
<% when "existing" %>
|
|
<%= render :partial => "site_spec" %>
|
|
<% when "addsites" %>
|
|
<%= render :partial => "add_site_spec" %>
|
|
<% end %>
|
|
</table>
|
|
|
|
<% if @site_request.request_contract.nil? %>
|
|
<% case @site_request.type %>
|
|
<% when "existing","newsite" %>
|
|
<a class="btn btn-primary" href="<%= make_contract_admin_client_management_path(@site_request.id) %>">Make Contract</a>
|
|
<% end %>
|
|
<% else %>
|
|
<% case @site_request.type %>
|
|
<% when "existing","newsite" %>
|
|
<a class="btn btn-primary" href="<%= see_contract_admin_client_management_path(@site_request.request_contract.id) %>">View Contract</a>
|
|
<% end %>
|
|
<% end %> |