<% content_for :page_specific_css do %> <%= stylesheet_link_tag "client_management/backend" %> <% end %>

Contract Info

Contract Id : <%= @contract.uid %>
Contract Date : <%= @contract.created_at.strftime("%Y-%m-%d") %>
Confirmed : <%= (@contract.is_confirmed? ? "Yes" : "No").html_safe %>
<% if !@contract.contract_purchase.nil? %>
Payment Status : <% if @contract.contract_purchase.cleared? %> Cleared <% else %> Pending <% end %>
<% end %>

Request

Type : <%= @site_request.get_request_type %>
<% if @site_request.type == "existing" %>

Site Details

Site ID : <%= @site_request.get_site.uid %>
Site Name : <%= @site_request.get_site.title %>
Site Domain : <%= @site_request.get_site.site_domain %>
<% end %>

Contract Files

<% if !@contract.contract_file.url.nil? %>
Contract : Download
<% end %> <% if !@contract.signed_contract_file.url.nil? %>
Signed Contract : Download
<% end %>

Quotaion

Item Cost in NTD.
<% total_amount = 0 %> <% ["new_site_cost","hosting_with_rulingdigital_cost","service_cost","option_module_cost","customized_module_cost","template_cost","customized_template_cost","rwd_cost"].each do |attrib| %> <% amount = @contract.send(attrib.to_sym) %> <% if amount > 0 %>
<%= t("client_management.#{attrib}") %> <% if attrib == "option_module_cost" %>
    <% rsm = RegisteredModule.find(@site_request.optional_modules) %> <% rsm.each do |rs|%>
  1. <%= rs.name %>
  2. <% end %>
<% end %> <% if attrib == "service_cost" %> for <%= @site_request.maintenance_years rescue 1 %> year(s) <% end %>
<%= amount %>
<% total_amount = total_amount + amount %> <% end %> <% end %> <% if !@contract.other.nil? || @contract.other_cost > 0 %>
Other Requirements
<%= nl2br(@contract.other) %>
<%= @contract.other_cost %>
<% total_amount = total_amount + @contract.other_cost %> <% end %>
Total : <%= total_amount.to_s %>
<%= form_for @contract, :url => {:action => "update_contract"}, :html => {:class => "form-horizontal"} do |f| %> Signed Contract File : <%= f.file_field :signed_contract_file, :class => "file-box" %> <%= f.submit "Upload", :class => "btn btn-primary" %> <% end %>

Actions