<% days_of_week = [ ["Monday", 0], ["Tuesday", 1], ["Wednesday", 2], ["Thursday", 3], ["Friday", 4], ["Saturday", 5], ["Sunday", 6], ] %>

<%=h @session.name %>

Location: <%=h @session.location.name %>

<%=h @session.start_date %> - <%=h @session.end_date %>

<% if @session.jackrabbit_session_name? %>
<% else %>

Classes offered for this session

Add classes to this session

<% form_for([@location,@session,@schedule]) do |f| %>
Program Day Start time End time
<%= f.select 'program_id', Program.find(:all).collect {|p| [ p.name, p.id ] }, { :include_blank => true } %> <%= f.select :day, days_of_week %> <%= f.time_select :start_time %> <%= f.time_select :end_time %>
<%= f.submit "Submit" %> <% end %> <% end %> <%= link_to 'Edit', edit_location_session_path(@location.id, @session.id) %> |