Sha256: bac24beacfaf8fc2779c7ff44ef9ca2d32e639083b32c50c24098fec75bc51d9

Contents?: true

Size: 1.47 KB

Versions: 16

Compression:

Stored size: 1.47 KB

Contents

<% unless @workshop.workshop_prices.empty? && @workshop.custom_field_defs.empty? %>
  <h3><%= I18n.t "ems.ticket_information" %></h3>
  <div id="ticket_information" class="ticket_information">
    <% unless @workshop.custom_field_defs.empty? %>
      <div class="registration_custom_fields">
        <%= render partial: 'section_custom_fields', locals: {f: f, workshop: @workshop} %>
      </div>
    <% end %>
    <% unless @workshop.workshop_prices.empty? %>
      <div class="registration_section_prices">
        <%= f.error :workshop_price_id, id: 'workshop_price_error', class: 'error' %>
        <ul class="workshop_price_list">
          <% if @registration.new_record? %>            
            <% @workshop.workshop_prices.each do |p| %>
              <% if p.visible? and !@workshop.price_sold_out?(p) %>
                <li>
                  <% if @workshop.workshop_prices.size == 1 # if only one price, pre-select it %>
                    <label><%= radio_button 'registration', 'workshop_price_id', p.id, checked: true %><%= price_details(p) %></label>
                  <% else %>
                    <label><%= radio_button 'registration', 'workshop_price_id', p.id %><%= price_details(p) %></label>
                  <% end %>
                </li>
              <% end %>
            <% end %>
          <% else %>
            <li><label><%= price_details(@registration.workshop_price) %></label></li>
          <% end %>
        </ul>
      </div>
    <% end %>
  </div>
<% end %>
  

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dm_event-4.2.3.10 app/views/dm_event/registrations/_section_prices.html.erb
dm_event-4.2.3.9 app/views/dm_event/registrations/_section_prices.html.erb
dm_event-4.2.3.8 app/views/dm_event/registrations/_section_prices.html.erb
dm_event-4.2.3.7 app/views/dm_event/registrations/_section_prices.html.erb
dm_event-4.2.3.6 app/views/dm_event/registrations/_section_prices.html.erb
dm_event-4.2.3.5 app/views/dm_event/registrations/_section_prices.html.erb
dm_event-4.2.3.4 app/views/dm_event/registrations/_section_prices.html.erb
dm_event-4.2.3.3 app/views/dm_event/registrations/_section_prices.html.erb
dm_event-4.2.3.2 app/views/dm_event/registrations/_section_prices.html.erb
dm_event-4.2.3.1 app/views/dm_event/registrations/_section_prices.html.erb
dm_event-4.2.3 app/views/dm_event/registrations/_section_prices.html.erb
dm_event-4.2.2.3 app/views/dm_event/registrations/_section_prices.html.erb
dm_event-4.2.2.2 app/views/dm_event/registrations/_section_prices.html.erb
dm_event-4.2.2.1 app/views/dm_event/registrations/_section_prices.html.erb
dm_event-4.2.2 app/views/dm_event/registrations/_section_prices.html.erb
dm_event-4.2.1.5 app/views/dm_event/registrations/_section_prices.html.erb