2017-04-17 16:40:08 -05:00
|
|
|
<% answer_string = answer.respond_to?(:answer) ? answer.answer : answer %>
|
2016-08-05 09:52:11 -05:00
|
|
|
|
2017-04-18 17:15:38 -05:00
|
|
|
<label for="answer_answer-<%= question.question_id %>">Enter answer here</label>
|
|
|
|
<%= text_area_tag 'answer[answer]', answer_string, {rows: 10, data: { last: answer_string }, id: "answer_answer-#{question.question_id}" } %>
|
2016-07-27 22:16:12 -05:00
|
|
|
|
2017-04-17 14:50:32 -05:00
|
|
|
<div class="<%= params[:action] == 'summary' ? 'hidden' : '' %>">
|
|
|
|
Max 1000 characters.
|
|
|
|
(provide warning when reaching the limit)
|
|
|
|
</div>
|
2016-07-27 22:16:12 -05:00
|
|
|
|
2016-08-08 17:08:20 -05:00
|
|
|
<%= render partial: "quiz/answer_errors", locals: {question: question, answer: answer} %>
|