css: starting quiz styles
This commit is contained in:
@ -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 } %>
|
||||
|
Reference in New Issue
Block a user