client_management/app/views/client_managements/_site_spec.html.erb

73 lines
2.9 KiB
Plaintext

<div class="line-detail">
<span class="header-detail">Requested Date : </span>
<span class="content-detail"><%= @site_request.created_at.strftime("%d %B %Y - %H:%M") %></span>
</div>
<% if @site_request.type == "existing" %>
<div class="line-detail">
<span class="header-detail">Site Title : </span>
<span class="content-detail"><%= @site_request.get_site.title %></span>
</div>
<div class="line-detail">
<span class="header-detail">Site Domain : </span>
<span class="content-detail"><a href="http://<%= @site_request.get_site.site_domain %>" target="_blank"><%= @site_request.get_site.site_domain %></a></span>
</div>
<% else %>
<% if @site_request.host_with_rulingdigital %>
<div class="line-detail">
<span class="header-detail">Host with RulingDigital : </span>
<span class="content-detail"><span class="label label-success">Yes</span></span>
</div>
<% else %>
<div class="line-detail">
<span class="header-detail">Host with RulingDigital : </span>
<span class="content-detail"><span class="label label-danger">No</span></span>
</div>
<div class="line-detail">
<span class="header-detail">Server Details : </span>
<span class="content-detail"><%= nl2br @site_request.server_details %> </span>
</div>
<% end %>
<% end %>
<% if !@site_request.optional_modules.blank? %>
<div class="line-detail">
<span class="header-detail">Optional Module(s) : </span>
<span class="content-detail">
<% rsm = RegisteredModule.find(@site_request.optional_modules) %>
<% rsm.each do |mod| %>
<span class="label label-info"><%= mod.name %></span>
<% end %>
</span>
</div>
<% end %>
<% if @site_request.custom_module %>
<div class="line-detail">
<span class="header-detail">Custom Module : </span>
<span class="content-detail"><span class="label label-success">Yes</span></span>
</div>
<div class="line-detail">
<span class="header-detail">Module Details : </span>
<span class="content-detail"><%= nl2br @site_request.custom_module_details %> </span>
</div>
<% end %>
<% if !@site_request.template_number.empty? %>
<div class="line-detail">
<span class="header-detail">Template Number : </span>
<span class="content-detail"><%= @site_request.template_number %> </span>
</div>
<% end %>
<% if @site_request.custom_template %>
<div class="line-detail">
<span class="header-detail">Custom Template : </span>
<span class="content-detail"><span class="label label-success">Yes</span></span>
</div>
<div class="line-detail">
<span class="header-detail">Template Details : </span>
<span class="content-detail"><%= nl2br @site_request.custom_template_details %> </span>
</div>
<% end %>
<% if @site_request.rwd %>
<div class="line-detail">
<span class="header-detail">RWD : </span>
<span class="content-detail"><span class="label label-success">Yes</span></span>
</div>
<% end %>