Sha256: c2cedf79031c03f9c1cd0e20955bc3228ca1e1aed73454d1b217ca7bc501f0bb

Contents?: true

Size: 769 Bytes

Versions: 34

Compression:

Stored size: 769 Bytes

Contents

-# frozen_string_literal: true
= render :partial => "quby/v1/shared/main_label", :locals => {:question => question}
- show_values = question.show_values_in_mode? :print
.description-and-fields
  .fields{:id => question.html_id}
    - question.options.each do |opt|
      - checked = @answer.send(question.key) == opt.key.to_s
      - next unless checked
      .option(class="#{show_values ? 'show_values' : nil}")
        .labelwrapper
          - if show_values
            .value= opt.value
          %label{for: opt.view_id}
            %span= Quby::MarkdownParser.new(opt.description).html_safe

        - unless opt.questions.empty?
          .subquestions= render :partial => "quby/v1/print/item", :collection => opt.questions,  :locals => {:subquestion => true}

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
quby-5.6.6 app/views/quby/v1/print/_item_question_radio.html.haml
quby-5.6.5 app/views/quby/v1/print/_item_question_radio.html.haml
quby-5.6.3 app/views/quby/v1/print/_item_question_radio.html.haml
quby-5.6.2 app/views/quby/v1/print/_item_question_radio.html.haml
quby-5.6.1 app/views/quby/v1/print/_item_question_radio.html.haml
quby-5.6.0 app/views/quby/v1/print/_item_question_radio.html.haml
quby-5.5.0 app/views/quby/v1/print/_item_question_radio.html.haml
quby-5.4.0 app/views/quby/v1/print/_item_question_radio.html.haml
quby-5.3.1 app/views/quby/v1/print/_item_question_radio.html.haml
quby-5.3.0 app/views/quby/v1/print/_item_question_radio.html.haml
quby-5.2.0 app/views/quby/v1/print/_item_question_radio.html.haml
quby-5.1.3 app/views/quby/v1/print/_item_question_radio.html.haml
quby-5.1.2 app/views/quby/v1/print/_item_question_radio.html.haml
quby-5.1.1 app/views/quby/v1/print/_item_question_radio.html.haml
quby-5.1.0 app/views/quby/v1/print/_item_question_radio.html.haml
quby-5.0.5 app/views/quby/v1/print/_item_question_radio.html.haml
quby-5.0.4 app/views/quby/v1/print/_item_question_radio.html.haml
quby-5.0.3 app/views/quby/v1/print/_item_question_radio.html.haml
quby-5.0.2 app/views/quby/v1/print/_item_question_radio.html.haml
quby-5.0.1 app/views/quby/v1/print/_item_question_radio.html.haml