Sha256: ba233895f6c67d75d065d88b9e11ef15c7bb9740b78528a7aecab58e9f1833d4

Contents?: true

Size: 552 Bytes

Versions: 16

Compression:

Stored size: 552 Bytes

Contents

module DmEvent::RegistrationsHelper

  #------------------------------------------------------------------------------
  def price_details(workshop_price)
    render :partial => 'dm_event/registrations/workshop_price', :object => workshop_price
  end

  #------------------------------------------------------------------------------
  def status_label(text, state = :plain, with_icon = true)
    icons = { acceptedx: 'icon-thumbs-up' }.freeze
    icon = icons[state.to_sym]
    colored_label(icon_label(icon, text, :color => '#fff'), state)
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dm_event-4.2.3.10 app/helpers/dm_event/registrations_helper.rb
dm_event-4.2.3.9 app/helpers/dm_event/registrations_helper.rb
dm_event-4.2.3.8 app/helpers/dm_event/registrations_helper.rb
dm_event-4.2.3.7 app/helpers/dm_event/registrations_helper.rb
dm_event-4.2.3.6 app/helpers/dm_event/registrations_helper.rb
dm_event-4.2.3.5 app/helpers/dm_event/registrations_helper.rb
dm_event-4.2.3.4 app/helpers/dm_event/registrations_helper.rb
dm_event-4.2.3.3 app/helpers/dm_event/registrations_helper.rb
dm_event-4.2.3.2 app/helpers/dm_event/registrations_helper.rb
dm_event-4.2.3.1 app/helpers/dm_event/registrations_helper.rb
dm_event-4.2.3 app/helpers/dm_event/registrations_helper.rb
dm_event-4.2.2.3 app/helpers/dm_event/registrations_helper.rb
dm_event-4.2.2.2 app/helpers/dm_event/registrations_helper.rb
dm_event-4.2.2.1 app/helpers/dm_event/registrations_helper.rb
dm_event-4.2.2 app/helpers/dm_event/registrations_helper.rb
dm_event-4.2.1.5 app/helpers/dm_event/registrations_helper.rb