<% content_for :page_specific_javascript do %>
  <%= javascript_include_tag "lib/bootstrap-datetimepicker" %>
  <%= javascript_include_tag "lib/datetimepicker/datetimepicker.js" %>
<% end %>
<div class="line-content date-range">
	<span class="header-line"><%= f.label :test_site_creation, "Test Site: " %></span>
	<span class="content-line">
		<%= f.datetime_picker :test_site_creation_start, :format => "yyyy/MM/dd", :label => "Start", :new_record => @site_request.new_record?, :data=>{"picker-type" => "range", "range" => "start"} %>
		<%= f.datetime_picker :test_site_creation_end, :format => "yyyy/MM/dd", :label => "End", :new_record => @site_request.new_record?, :data=>{"picker-type" => "range", "range" => "end"} %>
	</span>
</div>
<div class="line-content date-range">
	<span class="header-line"><%= f.label :template_design_images, "Template Images: " %></span>
	<span class="content-line">
		<%= f.datetime_picker :template_design_images_start, :format => "yyyy/MM/dd", :label => "Start", :new_record => @site_request.new_record?, :data=>{"picker-type" => "range", "range" => "start"} %>
		<%= f.datetime_picker :template_design_images_end, :format => "yyyy/MM/dd", :label => "Start", :new_record => @site_request.new_record?, :data=>{"picker-type" => "range", "range" => "end"} %>
	</span>
</div>
<div class="line-content date-range">
	<span class="header-line"><%= f.label :template_html_css, "Template HTML & CSS: " %></span>
	<span class="content-line">
		<%= f.datetime_picker :template_html_css_start, :format => "yyyy/MM/dd", :label => "Start", :new_record => @site_request.new_record?, :data=>{"picker-type" => "range", "range" => "start"} %>
		<%= f.datetime_picker :template_html_css_end, :format => "yyyy/MM/dd", :label => "End", :new_record => @site_request.new_record?, :data=>{"picker-type" => "range", "range" => "end"} %>	
	</span>
</div>
<% if @site_request.custom_module %>
	<div class="line-content date-range">
		<span class="header-line"><%= f.label :customized_module, "Customized Module: " %></span>
		<span class="content-line">
			<%= f.datetime_picker :customized_module_start, :format => "yyyy/MM/dd", :label => "Start", :new_record => @site_request.new_record?, :data=>{"picker-type" => "range", "range" => "start"} %>
			<%= f.datetime_picker :customized_module_end, :format => "yyyy/MM/dd", :label => "End", :new_record => @site_request.new_record?, :data=>{"picker-type" => "range", "range" => "end"} %>
		</span>
	</div>
<% end %>
<% if @site_request.type == "upgrade" %>
	<div class="line-content date-range">
		<span class="header-line"><%= f.label :data_migration, "Data Migrations: " %></span>
		<span class="content-line">
			<%= f.datetime_picker :data_migration_start, :format => "yyyy/MM/dd", :label => "Start", :new_record => @site_request.new_record?, :data=>{"picker-type" => "range", "range" => "start"} %>
			<%= f.datetime_picker :data_migration_end, :format => "yyyy/MM/dd", :label => "End", :new_record => @site_request.new_record?, :data=>{"picker-type" => "range", "range" => "end"} %>
		</span>
	</div>
<% end %>
<div class="line-content date-range">
	<span class="header-line"><%= f.label :site_structure, "Structure & Data Finalizing: " %></span>
	<span class="content-line">
		<%= f.datetime_picker :site_structure_start, :format => "yyyy/MM/dd", :label => "Start", :new_record => @site_request.new_record?, :data=>{"picker-type" => "range", "range" => "start"} %>
		<%= f.datetime_picker :site_structure_end, :format => "yyyy/MM/dd", :label => "End", :new_record => @site_request.new_record?, :data=>{"picker-type" => "range", "range" => "end"} %>
	</span>
</div>
<div class="line-content date-range">
	<% if @site_request.host_with_rulingdigital %>
		<span class="header-line"><%= f.label :site_migration, "DNS Redirect: " %></span>
	<% else %>
		<span class="header-line"><%= f.label :site_migration, "Site Migration: " %></span>
	<% end %>
	<span class="content-line">
		<%= f.datetime_picker :site_migration_start, :format => "yyyy/MM/dd", :label => "Start", :new_record => @site_request.new_record?, :data=>{"picker-type" => "range", "range" => "start"} %>
		<%= f.datetime_picker :site_migration_end, :format => "yyyy/MM/dd", :label => "End", :new_record => @site_request.new_record?, :data=>{"picker-type" => "range", "range" => "end"} %>	
	</span>
</div>
<div class="line-content button">
	<span class="header-line"></span>
	<span class="content-line">
		<%= f.hidden_field :site_request_id, :value => @site_request.id.to_s %>
		<%= f.submit "Save", :class => "btn btn-primary" %>
		<a href="<%= admin_client_management_path(@site_request.id) %>" class="btn btn-default">Back</a>
	</span>
</div>