Sha256: a82ccad231fe6905daccd3927b480093954eacb8c65f6dd5e35c32c9c86d6e70

Contents?: true

Size: 895 Bytes

Versions: 38

Compression:

Stored size: 895 Bytes

Contents

require 'explicit_delegator'

class AssessmentFormPresenter < ExplicitDelegator
  enforce_definitions :description, # Short description of assessment
                      :course_path, # url to go to when assessment cancelled
                      :copyright,   # copyright notice for assessment
                      :submit_path, # path for assessment form to submit to
                      :questions    # set of questions in the assessment

  def title
    I18n.t('woople_theme.assessment.name')
  end

  def css_classes
    nil
  end

  def questions
    ThemePresentation.wrap_collection(__getobj__.questions, WoopleTheme::QuestionPresenter)
  end

  def render_result_status
    nil
  end

  def render_copyright
    yield if copyright.present?
  end

  def footer_partial
    'woople-theme/assessment_form_submission'
  end

  private

  def assessment_result
    __getobj__
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
woople-theme-0.6.11 app/presenters/assessment_form_presenter.rb
woople-theme-0.6.10 app/presenters/assessment_form_presenter.rb
woople-theme-0.6.9 app/presenters/assessment_form_presenter.rb
woople-theme-0.6.8 app/presenters/assessment_form_presenter.rb
woople-theme-0.6.7 app/presenters/assessment_form_presenter.rb
woople-theme-0.6.6 app/presenters/assessment_form_presenter.rb
woople-theme-0.6.5 app/presenters/assessment_form_presenter.rb
woople-theme-0.6.4 app/presenters/assessment_form_presenter.rb
woople-theme-0.6.3 app/presenters/assessment_form_presenter.rb
woople-theme-0.6.2 app/presenters/assessment_form_presenter.rb
woople-theme-0.6.1 app/presenters/assessment_form_presenter.rb
woople-theme-0.6 app/presenters/assessment_form_presenter.rb
woople-theme-0.5.17 app/presenters/assessment_form_presenter.rb
woople-theme-0.5.16 app/presenters/assessment_form_presenter.rb
woople-theme-0.5.15 app/presenters/assessment_form_presenter.rb
woople-theme-0.5.14 app/presenters/assessment_form_presenter.rb
woople-theme-0.5.13 app/presenters/assessment_form_presenter.rb
woople-theme-0.5.12 app/presenters/assessment_form_presenter.rb
woople-theme-0.5.11 app/presenters/assessment_form_presenter.rb
woople-theme-0.5.10 app/presenters/assessment_form_presenter.rb