Module: DmEvent::RegistrationsHelper
- Included in:
- RegistrationDatatable
- Defined in:
- app/helpers/dm_event/registrations_helper.rb
Instance Method Summary collapse
-
#price_details(workshop_price) ⇒ Object
——————————————————————————.
-
#status_label(text, state = :plain, with_icon = true) ⇒ Object
——————————————————————————.
Instance Method Details
#price_details(workshop_price) ⇒ Object
4 5 6 |
# File 'app/helpers/dm_event/registrations_helper.rb', line 4 def price_details(workshop_price) render :partial => 'dm_event/registrations/workshop_price', :object => workshop_price end |
#status_label(text, state = :plain, with_icon = true) ⇒ Object
9 10 11 12 13 |
# File 'app/helpers/dm_event/registrations_helper.rb', line 9 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 |