% content_for :page_specific_css do %>
<%= stylesheet_link_tag "client_management/backend" %>
<% end %>
Contract Info
<%= @contract.uid %>
<%= @contract.created_at.strftime("%Y-%m-%d") %>
<%= (@contract.is_confirmed? ? "Yes" : "No").html_safe %>
Request
<%= @site_request.get_request_type %>
<% if @site_request.type == "existing" %>
Site Details
<%= @site_request.get_site.uid %>
<%= @site_request.get_site.title %>
<%= @site_request.get_site.site_domain %>
<% end %>
Contract Files
<% if !@contract.contract_file.url.nil? %>
<% end %>
<% if !@contract.signed_contract_file.url.nil? %>
<% end %>
Quotaion
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 %>
<%= amount %>
<% total_amount = total_amount + amount %>
<% end %>
<% end %>
<%= total_amount.to_s %>
<%= form_for @contract, :url => {:action => "update_contract"}, :html => {:class => "form-horizontal"} do |f| %>
<%= f.file_field :signed_contract_file, :class => "file-box" %>
<%= f.submit "Upload", :class => "btn btn-primary" %>
<% end %>