fixes #37 - textarea summary edit

again, and not the last
This commit is contained in:
Mark Moser
2016-08-05 09:52:11 -05:00
parent 8640effbfc
commit 3c3b7f5304
2 changed files with 13 additions and 3 deletions

View File

@ -1,6 +1,8 @@
<% hidden = params[:action] == 'summary' ? 'hidden' : '' %>
<label for="answer_text">Enter answer here</label>
<textarea id="answer_text" name="answer[text]" rows="10"><%= question.answer %></textarea>
<div class="chars">Characters remaining: <span></span></div>
<div class="chars <%= hidden %>">Characters remaining: <span></span></div>
<%= render partial: "candidate/answer_errors", locals: {question: question, answer: @answer} %>