Sha256: 6cf32196ccc9bea42190215b2c3e21b2a35604132f7b7c38838f0a3ebc2081f2
Contents?: true
Size: 699 Bytes
Versions: 33
Compression:
Stored size: 699 Bytes
Contents
-# frozen_string_literal: true - available_width = question.presentation == :horizontal ? 100 : 66 - classes = [os_cycle] - classes << question.question_group if question.question_group - itemkey = "item_#{question.key}" %td.item{:id => itemkey, :class => classes, :style => "width:#{available_width/(table.columns)}%", :rowspan => question.row_span, :data => question.extra_data} .fields{:class => question.type, :id => question.html_id} - cls = [question.type] - cls << question.as if question.as = text_field :answer, question.key, :autocomplete => question.autocomplete, :class => cls, :data => {'field-key' => question.key} %span.unit= raw question.unit = validations
Version data entries
33 entries across 33 versions & 1 rubygems