<div class="modal-body">
<div class="event_controller">
<!-- <form class="form-horizontal"> -->
	<%= form_for @event, :url =>{:action => :create}, :class=>"form-horizontal", :remote => true do |f| %>
	<div class="row-fluid">
		<button type="button" class="close btn-close" data-dismiss="modal" aria-hidden="true">×</button>
	</div>
	<div class="row-fluid">
		<%= f.text_field :title, :class=>"span12", :placeholder => "Event Name" %>
	</div>
	<div class="row-fluid">
		<% if !@all_day_disabled %>
			<label class="checkbox inline">
				<input type="checkbox" name="all_day" for="all_day"> All day
			</label>
		<% end %>
		<label class="checkbox inline">
			<input type="checkbox"> Repeat
		</label>
	</div>
	<div id="non_all_day">
		<div class="row-fluid">
			<label class="control-label span3">From</label>
			<div class="row-fluid span9">
				<input class="span5" type="text" value="<%= @placeholder %>" name="start_date" placeholder="<%= @placeholder %>">
				<select name="start_time" class="span4">
					<option value="1.00">1:00</option>
					<option value="1.50">1:30</option>
					<option value="2.00">2:00</option>
					<option value="2.50">2:30</option>
					<option value="3.00">3:00</option>
					<option value="3.50">3:30</option>
					<option value="4.00">4:00</option>
					<option value="4.50">4:30</option>
					<option value="5.00">5:00</option>
					<option value="5.50">5:30</option>
					<option value="6.00">6:00</option>
					<option value="6.50">6:30</option>
					<option value="7.00">7:00</option>
					<option value="7.50">7:30</option>
					<option value="8.00">8:00</option>
					<option value="8.50">8:30</option>
					<option value="9.00">9:00</option>
					<option value="9.50">9:30</option>
					<option value="10.00">10:00</option>
					<option value="10.50">10:30</option>
					<option value="11.00">11:00</option>
					<option value="11.50">11:30</option>
					<option value="12.00">12:00</option>
					<option value="12.50">12:30</option>
				</select>
				<select name="start_am_pm" class="span3">
					<option value="AM">AM</option>
					<option value="PM">PM</option>
				</select>
			</div>
		</div>
		<div class="row-fluid">
			<label class="control-label span3">To</label>
			<div class="row-fluid span9">
				<input class="span5" type="text" name="end_date" value="<%= @placeholder %>" placeholder="<%= @placeholder %>">
				<select name="end_time" class="span4">
					<option value="1.00">1:00</option>
					<option value="1.50">1:30</option>
					<option value="2.00">2:00</option>
					<option value="2.50">2:30</option>
					<option value="3.00">3:00</option>
					<option value="3.50">3:30</option>
					<option value="4.00">4:00</option>
					<option value="4.50">4:30</option>
					<option value="5.00">5:00</option>
					<option value="5.50">5:30</option>
					<option value="6.00">6:00</option>
					<option value="6.50">6:30</option>
					<option value="7.00">7:00</option>
					<option value="7.50">7:30</option>
					<option value="8.00">8:00</option>
					<option value="8.50">8:30</option>
					<option value="9.00">9:00</option>
					<option value="9.50">9:30</option>
					<option value="10.00">10:00</option>
					<option value="10.50">10:30</option>
					<option value="11.00">11:00</option>
					<option value="11.50">11:30</option>
					<option value="12.00">12:00</option>
					<option value="12.50">12:30</option>
				</select>
				<select name="end_am_pm" class="span3">
					<option value="AM">AM</option>
					<option value="PM">PM</option>
				</select>
			</div>
		</div>
	</div>
	<div class="row-fluid">
		<label for="" class="control-label span3">Calendars</label>
		<div class="row-fluid span9">
			<%= f.select(:cal_id, Cal.all.collect {|p| [ p.name, p.id ] },{:prompt => t("calendar.select_calendar")},:class => "validate") %>
		</div>
	</div>
	<div class="row-fluid">
		<label for="" class="control-label span3">Note</label>
		<div class="row-fluid span9">
			<%= f.text_area :note, :class=>"span12", :cols=>"30", :rows=>"3" %>
		</div>
	</div>
	<div class="row-fluid">
		<div class="span9 offset3">
			<button class="btn btn-close">Cancel</button>
			<%= f.submit t("calendar.create"), :class=>"btn" %>
		</div>
	</div>
<% end %>
<!-- </form> -->
</div>
</div>