<%- content_for :title, question.page_title.blank? ? question.title : question.page_title content_for :meta_description, question.page_description %> <%# Array(question.assets.select{ |asset| asset.file.image? }.first).each do |asset| %>
<%# image_tag rails_storage_proxy_path(asset.file.representation(resize_to_limit: [800,nil], format: :jpg)), srcset: "#{rails_storage_proxy_path(asset.file.representation(resize_to_limit: [800,nil], format: :jpg))} 800w, #{rails_storage_proxy_path(asset.file.representation(resize_to_limit: [1600,nil], format: :jpg))} 1600w, #{rails_storage_proxy_path(asset.file.representation(resize_to_limit: [2400,nil], format: :jpg))} 2400w", sizes: "100vw" %> <%= responsive_picture_tag_for_question(question) %>
<%# end %> <%= form_with model: @answer, url: url_for(controller: 'answers', action: 'create') do |form| %>
<%= question_index %>/<%= questions_size %>
<%= question.title %>
<% question.attachments.with_text.each_slice(2).each_with_index do |answer_option, i| %>
<%= form.label :value, for: nil do %> <%= answer_option.first.body.html_safe %> <%= form.radio_button :value, i %> <%- end -%>
<% end %> <%= form.submit t('submit'), class: 'button__base' %>
<% end %>