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.0.0 app/views/quby/v1/print/_item_question_radio.html.haml
quby-4.0.4 app/views/quby/v1/print/_item_question_radio.html.haml
quby-5.0.0.pre4 app/views/quby/v1/print/_item_question_radio.html.haml
quby-5.0.0.pre3 app/views/quby/v1/print/_item_question_radio.html.haml
quby-5.0.0.pre2 app/views/quby/v1/print/_item_question_radio.html.haml
quby-5.0.0.pre1 app/views/quby/v1/print/_item_question_radio.html.haml
quby-4.0.3 app/views/quby/v1/print/_item_question_radio.html.haml
quby-4.0.2 app/views/quby/v1/print/_item_question_radio.html.haml
quby-4.0.1 app/views/quby/v1/print/_item_question_radio.html.haml
quby-4.0.0 app/views/quby/v1/print/_item_question_radio.html.haml
quby-3.2.2 app/views/quby/v1/print/_item_question_radio.html.haml
quby-3.2.1 app/views/quby/v1/print/_item_question_radio.html.haml
quby-3.2.0 app/views/quby/v1/print/_item_question_radio.html.haml
quby-3.2.0.pre.pre1 app/views/quby/v1/print/_item_question_radio.html.haml