Sha256: 2223060c78406a17e88a11e05c747fd7bdc447a4e6439bc7df3a059842ee4b43
Contents?: true
Size: 746 Bytes
Versions: 33
Compression:
Stored size: 746 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, :colspan => question.col_span, :data => question.extra_data} .fields{:class => question.type, :id => question.html_id} - cls = [question.type] - cls << "sized" if question.size = text_field :answer, question.key, :autocomplete => question.autocomplete, :class => cls, :size => (question.size || 30), :data => {'field-key' => question.key} = raw question.unit = validations
Version data entries
33 entries across 33 versions & 1 rubygems