Sha256: 758c2d506dc7c6929b970705f3e5d3c0a85565db3006099cf4a0c11c3ca3c86a

Contents?: true

Size: 1.26 KB

Versions: 5

Compression:

Stored size: 1.26 KB

Contents

module DateBook
  module EventsHelper
    def event_occurrence_dates(event)
      render partial: 'date_book/events/occurrence_dates', locals: { event: event }
    end

    def event_popover(event)
      render partial: 'date_book/events/popover', locals: {
        event: event
      }, formats: :html
    end

    def render_rule_form_section(rule, schedule)
      render partial: "date_book/events/rules/#{rule}", locals: { schedule: schedule }
    end

    def render_date_field(schedule)
      render partial: "date_book/events/fields/date", locals: { schedule: schedule }
    end

    def render_time_field(schedule)
      render partial: "date_book/events/fields/time", locals: { schedule: schedule }
    end

    def render_duration_field(schedule)
      render partial: "date_book/events/fields/duration", locals: { schedule: schedule }
    end

    def render_interval_field(unit, schedule)
      render partial: "date_book/events/fields/interval", locals: { schedule: schedule, unit: unit }
    end

    def render_day_field(schedule)
      render partial: "date_book/events/fields/day", locals: { schedule: schedule }
    end

    def render_day_of_week_field(schedule)
      render partial: "date_book/events/fields/day_of_week", locals: { schedule: schedule }
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
date_book-0.0.6 app/helpers/date_book/events_helper.rb
date_book-0.0.5 app/helpers/date_book/events_helper.rb
date_book-0.0.3 app/helpers/date_book/events_helper.rb
date_book-0.0.2 app/helpers/date_book/events_helper.rb
date_book-0.0.1 app/helpers/date_book/events_helper.rb