12 lines
531 B
Plaintext
12 lines
531 B
Plaintext
<% answer_string = answer.respond_to?(:answer) ? answer.answer : answer %>
|
|
|
|
<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}" } %>
|
|
|
|
<div class="<%= params[:action] == 'summary' ? 'hidden' : '' %>">
|
|
Max 1000 characters.
|
|
(provide warning when reaching the limit)
|
|
</div>
|
|
|
|
<%= render partial: "quiz/answer_errors", locals: {question: question, answer: answer} %>
|