<h1>Editing event</h1>

<h1>New event</h1>

<%= error_messages_for 'event' %>
<%= form_tag({ :action => "update" }) %>
<%= hidden_field "event", "id" %>
<%= datetime_select "event", "start" %><br/>

<label for="event_end">End</label><br />
<%= datetime_select "event", "end" %><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 'Show', :action => 'show', :id => @event.id %> |
<%= link_to 'Back', :action => 'list' %>
