<% if @site_request.type == "existing" %>
<%= @site_request.get_site.title %>
<%= @site_request.get_site.site_domain %>
<% else %>
<%= f.label :new_site_cost, "New Site Cost:", :class => "control-label" %>
<%= f.number_field :new_site_cost, :min => "0" %>
<% if @site_request.host_with_rulingdigital %>
<%= f.label :hosting_with_rulingdigital_cost, "Host with RulingDigital:", :class => "control-label" %>
<%= f.number_field :hosting_with_rulingdigital_cost, :min => "0" %>
<% end %> <% end %>
<%= f.label :service_cost, "Maintainance Cost:", :class => "control-label" %>
<%= f.number_field :service_cost, :min => "0" %>
<% if !@site_request.optional_modules.blank? %>
<%= f.label :option_module_cost, "Optional Modules Cost:", :class => "control-label" %> <% rsm = RegisteredModule.find(@site_request.optional_modules) %>
<%= f.number_field :option_module_cost, :min => "0" %>
<% end %> <% if @site_request.custom_module %>
<%= f.label :customized_module_cost, "Optional Module Cost:", :class => "control-label" %>
<%= f.number_field :customized_module_cost, :min => "0" %>
<% end %> <% if !@site_request.template_number.empty? %>
<%= f.label :template_cost, "Template Cost:", :class => "control-label" %>
<%= f.number_field :template_cost, :min => "0" %>
<% end %> <% if @site_request.custom_template %>
<%= f.label :customized_template_cost, "Customized Template Cost:", :class => "control-label" %>
<%= f.number_field :customized_template_cost, :min => "0" %>
<% end %> <% if @site_request.rwd %>
<%= f.label :rwd_cost, "RWD Cost:", :class => "control-label" %>
<%= f.number_field :rwd_cost, :min => "0" %>
<% end %> <% if !@contract.contract_file.url.nil? %> Download Contract <% end %>
<%= f.label :contract_file, "Contract File:", :class => "control-label" %>
<%= f.file_field :contract_file %>

Total Amount : <%= @contract.new_record? ? 0 : @contract.total_amount %> NTD.

<% if @contract.new_record? %> <%= f.hidden_field :site_request, :value => @site_request.id.to_s %> <% end %> <%= f.submit "Submit", :class => "btn btn-primary" %> Back