<%= simple_fields_for :question_group, @question_group do |qg| %>
      <%= qg.simple_fields_for :questions do |q| %>
        <div class="group_inline_question">
          <%= q.hidden_field :survey_section_id, value: @survey_section_id %>
          <%= q.hidden_field :id %>
          <%= q.input :text, label: false, as: :string, wrapper_html:{class: "question"} %>
          <%= q.input :question_type_id, label: false, collection: QuestionType.all.map{|t|[t.text, t.id]}[0..11].uniq.select{|c| [:box,:number,:date,:string,:dropdown,:pick_one,:pick_any, :slider, :stars].include? c[1]}, wrapper_html:{class: "question"}   %>
          <%= q.input :answers_textbox, label: false, as: :text, wrapper_html:{class: "question group_answers_textbox"} %>
          
          <%= q.hidden_field :display_order %>
          <%= q.hidden_field :display_type %>
          <%= q.hidden_field :pick %>
          <span class="delete_group_inline_question">
            <%= link_to_remove_fields "remove", q, ".group_inline_question" %>
          </span>
        </div>
      <% end -%>
<% end -%>

<%= simple_fields_for :question_group, @question_group do |qg| %>
      <%= qg.simple_fields_for :questions do |q| %>
        <div class="group_inline_question">
          <%= q.hidden_field :survey_section_id, value: @survey_section_id %>
          <%= q.hidden_field :id %>
          <%= q.input :text, label: false, as: :string, wrapper_html:{class: "question"} %>
          <%= q.input :question_type_id, label: false, collection: QuestionType.all.map{|t|[t.text, t.id]}[0..13].uniq.select{|c| [:box,:number,:date,:string,:dropdown,:pick_one,:pick_any, :slider, :stars, :file].include? c[1]}, wrapper_html:{class: "question"}   %>
          <%= q.input :answers_textbox, label: false, as: :text, wrapper_html:{class: "question group_answers_textbox"} %>
          
          <%= q.hidden_field :display_order %>
          <%= q.hidden_field :display_type %>
          <%= q.hidden_field :pick %>
          <span class="delete_group_inline_question">
            <%= link_to_remove_fields "remove", q, ".group_inline_question" %>
          </span>
        </div>
      <% end -%>
<% end -%>

Add file upload as a question type in group questions.
Add file upload as a question type in group questions.

	modified:   app/views/question_groups/_group_inline_field.html.erb
