<% content_for :page_menu do %> <% end %>

Contract info

Contract info
Contract Number : <%= @contract.uid %>
Contract Date : <%= @contract.created_at.strftime("%d %B %Y") %>
Contract Status : <% if @contract.confirmed %> Confirmed <% else %> Not-Confirmed <% end %>
Request
Type : <%= @site_request.get_request_type %>
<% if @site_request.type == "existing" %>
Site Info
Site ID : <%= @site_request.get_site.uid %>
Site Name : <%= @site_request.get_site.title %>
<% end %> <% if !@contract.contract_file.url.nil? || !@contract.signed_contract_file.url.nil? %>
Contract Files
<% if !@contract.contract_file.url.nil? %>
Contract : Download
<% end %> <% if !@contract.signed_contract_file.url.nil? %>
Contract Signed : Download
<% end %> <% 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 %>
<% if attrib == "option_module_cost" %> <%= t("client_management.#{attrib}") %>
    <% rsm = RegisteredModule.find(@site_request.optional_modules) %> <% rsm.each do |rs|%>
  1. <%= rs.name %>
  2. <% end %>
<% else %> <%= t("client_management.#{attrib}") %> <% end %> <%= amount %>
<% end %> <% total_amount = total_amount + amount %> <% end %>
Total : <%= total_amount %>
<% if !@contract.confirmed %> <%= form_for @contract, :url => "/cpanel/contract/#{@contract.uid}/update_contract" do |f| %>
Signed Contract File : <%= f.file_field :signed_contract_file, :class=>"file-box" %>
<% end %> <% end %>
<% if !@contract.confirmed && !@contract.signed_contract_file.url.nil? %> Confirm Contract <% end %>