skill-assessment-app/app/views/quiz/_text.html.erb

9 lines
371 B
Plaintext
Raw Normal View History

<% hidden = params[:action] == 'summary' ? 'hidden' : '' %>
2016-07-30 16:25:09 -05:00
<label for="answer_text">Enter answer here</label>
<textarea id="answer_text" name="answer[text]" rows="10"><%= question.answer %></textarea>
2016-07-27 22:16:12 -05:00
<div class="chars <%= hidden %>">Characters remaining: <span></span></div>
2016-07-27 22:16:12 -05:00
<%= render partial: "quiz/answer_errors", locals: {question: question, answer: @answer} %>