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.5.9 app/presenters/assessment_form_presenter.rb
woople-theme-0.5.8 app/presenters/assessment_form_presenter.rb
woople-theme-0.5.7 app/presenters/assessment_form_presenter.rb
woople-theme-0.5.6 app/presenters/assessment_form_presenter.rb
woople-theme-0.5.5 app/presenters/assessment_form_presenter.rb
woople-theme-0.5.4 app/presenters/assessment_form_presenter.rb
woople-theme-0.5.3 app/presenters/assessment_form_presenter.rb
woople-theme-0.5.2 app/presenters/assessment_form_presenter.rb
woople-theme-0.5.0.1 app/presenters/assessment_form_presenter.rb
woople-theme-0.5.0 app/presenters/assessment_form_presenter.rb
woople-theme-0.4.2 app/presenters/assessment_form_presenter.rb
woople-theme-0.4.1 app/presenters/assessment_form_presenter.rb
woople-theme-0.4.0 app/presenters/assessment_form_presenter.rb
woople-theme-0.3.9 app/presenters/assessment_form_presenter.rb
woople-theme-0.3.8 app/presenters/assessment_form_presenter.rb
woople-theme-0.3.7 app/presenters/assessment_form_presenter.rb
woople-theme-0.3.6 app/presenters/assessment_form_presenter.rb
woople-theme-0.3.5 app/presenters/assessment_form_presenter.rb