css: starting quiz styles

This commit is contained in:
Mark Moser
2017-05-03 13:22:22 -05:00
parent 9f3e90386e
commit 0f0e7ae75e
6 changed files with 33 additions and 39 deletions

View File

@ -5,14 +5,11 @@
content_for :progress, @status.progress.to_s
%>
<%= form_for(@answer, url: post_answer_path(@answer.id), html:{method: :post, id: 'answer-form', data: {qid: @question.question_id}}) do |form| %>
<%= form_for(@answer, url: post_answer_path(@answer.id), html:{method: :post, class: 'form-question', data: {qid: @question.question_id}}) do |form| %>
<h1><%= @question.question %></h1>
<% if @question.attachment.present? %>
<figure>
<%= image_tag @question.attachment%>
</figure>
<figure><%= image_tag @question.attachment%></figure>
<% end %>
<%= render partial: @question.input_type, locals: {question: @question, form: form, answer: @answer } %>