%= error_messages_for :booth, :session_offer %> <% form_for(@booth) do |f| %> <%= hidden_field :admin_edit, true %> <% if params[:participant_id] %> <% end %> <% if @booth.id == nil %> <%= hidden_field :session_offer, :event_id, :value => event.id %> <%= hidden_field :session_offer, :session_id, :value => Session.find(:first, :conditions => "event_id = #{event.id} and has_booth = 1").id %> <% else %> <%= hidden_field :session_offer, :event_id, :value => @booth.session_offer.event_id %> <%= hidden_field :session_offer, :session_id, :value => @booth.session_offer.session_id %> <% end %> <% if @booth.session_offer != nil and @booth.session_offer.accepted_date != nil %> <%= hidden_field :session_offer, :accepted_date, :value => sql_date(@booth.session_offer.accepted_date) %> <% end %>
<%= f.label :booth_no, 'Booth #' %> | <%= f.text_field :booth_no, :size => 4 %> (eg 1) | ||
<%= f.label :dimensions, 'Dimensions' %> | <%= f.select :dimensions, ["10' x 10'", "10' x 20'", "10' x 30'", "10' x 40'", "10' x 50'", "10' x 60'", "20' x 20'", "20' x 30'", "20' x 40'", "20' x 50'", "20' x 60'"], {}, :onChange => "javascript:changeUnitSizeAndFee();", :onLoad => "javascript:changeUnitSizeAndFee();"%> | ||
<%= f.label :unit_size, 'Unit Size' %> | <%= f.select :unit_size, [1, 2, 3, 4, 5, 6, 4, 6, 8, 10, 12] %> | ||
Participant Invitation |
|||
<%= f.label :participant_id, 'Participant' %> | <% if @booth.id == nil %><% if params[:participant_id] %> <% participant = Participant.find(params[:participant_id]) %> <%= text_field :test, :company_name, :value => participant.doing_business_as, :disabled => true %> <%= hidden_field :session_offer, :participant_id, :value => participant.id %> <% else %> <%= select :session_offer, :participant_id, Participant.find(:all, :conditions => "participants.event_id = #{event.id} and (participants.event_accepted is null or participants.event_accepted = 1) and vendor_types.code IN ('VEN')", :include => [:vendor, :vendor_type], :order => "vendors.company_name").map { |participant| [participant.vendor.company_name, participant.id] }, :include_blank => true %> <% end %> | <% else %> <% if @booth.session_offer.participant and @booth.session_offer.status.match('Accepted|Declined|Offered') %><%= text_field :vendor, :company_name, :size => 30, :disabled => true, :value => @booth.session_offer.participant.vendor.company_name %> <%= link_to 'Edit participant', edit_participant_path(@booth.session_offer.participant) %> <%= hidden_field :session_offer, :participant_id, :value => @booth.session_offer.participant.id %> | <% else %><%= select :session_offer, :participant_id, Participant.find(:all, :conditions => "event_id = #{event.id} and (participants.event_accepted is null or participants.event_accepted = 1) and vendor_types.code IN ('VEN')", :include => [:vendor, :vendor_type], :order => "vendors.company_name").map { |participant| [participant.vendor.company_name, participant.id] }, :selected => @booth.session_offer.participant_id, :include_blank => true %> | <% end %> <% end %>
<%= f.label :fee, 'Fee' %> * | <%= f.number_field :fee, :size => 6, :value => @booth.fee %> (e.g. 1500.00) | ||
<%= f.label :fee, 'Fee' %> * | <%= f.number_field :fee, :size => 6, :value => 2750.00 %> (e.g. 1500.00) | ||
<%= booth_status_display(@booth.session_offer.status) %> | |||
<%= f.label :accepted, 'Accepted' %> | <%= radio_button :session_offer, :accepted, 'true', :checked => (@booth.session_offer.accepted and @booth.session_offer.accepted_date != nil) %> Yes <%= radio_button :session_offer, :accepted, 'false', :checked => (!@booth.session_offer.accepted and @booth.session_offer.accepted_date != nil) %> No | ||
<%= f.label :accepted_date, @booth.session_offer.accepted? ? 'Accepted Date' : 'Declined Date' %> | <%= formal_date(@booth.session_offer.accepted_date) %> at <%= format_time(@booth.session_offer.accepted_date) %> | ||
<% if @booth.id == nil %> <%= f.submit "Add Booth" %> <%= f.submit "Add and New" %> <% else %> <%= f.submit "Update Booth" %> <% end %> <% if params[:participant_id] %> <%= link_to 'Cancel', edit_participant_path(params[:participant_id]) %> <% else %> <%= event_home_link('Cancel', event) %> <% end %> |