<%= error_messages_for 'event' %>

<%= form_tag({ :action => "create" }) %>

<label for="event_start">Start</label><br />
<%= datetime_select "event", "start",
      :start_year => Date.today.year,
      :end_year => Date.today.year + 1 %><br/>

<label for="event_end">End</label><br />
<%= datetime_select "event", "end",
      :start_year => Date.today.year,
      :end_year => Date.today.year + 1 %><br/>

<label for="event_creator">Creator</label><br />
<%= text_field "event", "creator", "size" => 30 %><br/>

<label for="event_title">Title</label><br />
<%= text_field "event", "title", "size" => 30 %><br/>

<label for="event_description">Description</label><br />
<%= text_area "event", "description" %><br/>

<label for="event_location">Location</label><br />
<%= text_field "event", "location", "size" => 30 %><br/>

<label for="event_event_type">Type</label><br />
<%= select "event", "event_type", {'Social' => 0, 'Affiliated' => 1, 'Official' => 2, 'SIG' => 3} %><br/>

<input type="submit" value="Create">
</form>

<%= link_to 'Back', :action => 'list' %>
