-# TODO: disabled - rg ||= nil - r = response_for(@response_set, q, a, rg) - i = response_idx(q.pick != "one") # argument will be false (don't increment i) if we're on radio buttons - disabled = defined?(disableFlag) ? disableFlag : false = f.semantic_fields_for i, r do |ff| = ff.input :question_id, :as => :quiet unless q.pick == "one" # don't repeat question_id if we're on radio buttons = ff.input :api_id, :as => :quiet unless q.pick == "one" = ff.input :response_group, :input_html => { :value => rg }, :as => :quiet if q.pick != "one" && g && g.display_type == "repeater" - case q.pick - when "one" = ff.input :answer_id, :as => :surveyor_radio, :collection => [[a.text_for(nil, @render_context, I18n.locale), a.id]], :label => false, :input_html => {:class => a.css_class, :disabled => disabled}, :response_class => a.response_class - when "any" = ff.input :answer_id, :as => :surveyor_check_boxes, :collection => [[a.text_for(nil, @render_context, I18n.locale), a.id]], :label => false, :input_html => {:class => a.css_class, :disabled => disabled}, :response_class => a.response_class - when "none" - if %w(date datetime time float integer string text).include? a.response_class = ff.input :answer_id, :as => :quiet, :input_html => {:class => a.css_class, :value => a.id} = ff.input rc_to_attr(a.response_class), :as => rc_to_as(a.response_class), :label => a.text_for(:pre, @render_context, I18n.locale).blank? ? false : a.text_for(:pre, @render_context, I18n.locale), :hint => a.text_for(:post, @render_context, I18n.locale), :input_html => generate_pick_none_input_html(r.to_formatted_s, a.default_value_for(@render_context, I18n.locale), a.css_class, a.response_class, disabled, a.input_mask, a.input_mask_placeholder) - elsif a.response_class=='blob' = ff.input :answer_id, :as => :quiet, :input_html => {:class => a.css_class, :value => a.id} = ff.input :blob, :as => :quiet = ff.input :blob, :as => :file, :label => false, :input_html => {"data-object-class"=>ff.object.class.name, "data-object-id"=>ff.object.id, "data-response_set_id" => @response_set.id, :required=>q.mandatory?} .filename_with_link{:data=>{'image-path'=>'#{image_path("delete.png")}'}} - if !ff.object.blob_identifier.blank? current file is: = link_to ff.object.blob_identifier, ff.object.blob_url, :target=>'_blank' - else = a.text_for(nil, @render_context, I18n.locale) %span.help= a.help_text_for(@render_context, I18n.locale) unless g && g.display_type == "grid"