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