<%= error_messages_for 'meeting' %>

<%= f.text_field :title, :required => true, :size => 60 %>

<%= f.text_field :location, :size => 60 %>

<%= f.text_field :start_date, :required => true, :size => 10 %><%= calendar_for('meeting_start_date') %> <%= time_select("meeting", "start_time", :ignore_date => true) %>

<%= text_field_tag "meeting[duration]", @meeting.duration, :size => 5 %> (in hours)

<% @project.users.sort.each do |user| -%> <%= hidden_field_tag "meeting[participants_attributes][][user_id]", user.id %> <% if @meeting.participants.present? && participant = @meeting.participants.detect{|p| p.user_id == user.id} -%> <%= hidden_field_tag "meeting[participants_attributes][][id]", participant.id %> <% else -%> <% end -%> <% end -%>

<%= hidden_field_tag "copy_from_id", params[:copy_from_id] if params[:copy_from_id].present? %>