<section id="openended_${id}" class="openended">
  <textarea rows="${rows}" cols="${cols}" name="input_${id}" class="short-form-response" id="input_${id}"
       % if hidden:
      	    style="display:none;"
       % endif
  >${value|h}</textarea>

  <div class="grader-status">
    % if status == 'unsubmitted':
      <span class="unanswered" style="display:inline-block;" id="status_${id}">Unanswered</span>
    % elif status == 'correct':
      <span class="correct" id="status_${id}">Correct</span>
    % elif status == 'incorrect':
      <span class="incorrect" id="status_${id}">Incorrect</span>
    % elif status == 'queued':
      <span class="grading" id="status_${id}">Submitted for grading</span>
    % endif

    % if hidden:
      <div style="display:none;" name="${hidden}" inputid="input_${id}" />
    % endif
  </div>

  <span id="answer_${id}"></span>

    % if status == 'queued':
    <input name="reload" class="reload" type="button" value="Recheck for Feedback" onclick="document.location.reload(true);" />
    % endif
  <div class="external-grader-message">
      ${msg|n}
    % if status in ['correct','incorrect']:
    <div class="collapsible evaluation-response">
      <header>
      <a href="#">Respond to Feedback</a>
      </header>
    <section id="evaluation_${id}" class="evaluation">
    <p>How accurate do you find this feedback?</p>
        <div class="evaluation-scoring">
            <ul class="scoring-list">
                <li><input type="radio" name="evaluation-score" id="evaluation-score-5" value="5" /> <label for="evaluation-score-5"> Correct</label></li>
                <li><input type="radio" name="evaluation-score" id="evaluation-score-4" value="4" /> <label for="evaluation-score-4"> Partially Correct</label></li>
                <li><input type="radio" name="evaluation-score" id="evaluation-score-3" value="3" /> <label for="evaluation-score-3"> No Opinion</label></li>
                <li><input type="radio" name="evaluation-score" id="evaluation-score-2" value="2" /> <label for="evaluation-score-2"> Partially Incorrect</label></li>
                <li><input type="radio" name="evaluation-score" id="evaluation-score-1" value="1" /> <label for="evaluation-score-1"> Incorrect</label></li>
            </ul>
        </div>
        <p>Additional comments:</p>
        <textarea rows="${rows}" cols="${cols}" name="feedback_${id}" class="feedback-on-feedback" id="feedback_${id}"></textarea>
        <div class="submit-message-container">
            <input name="submit-message" class="submit-message" type="button" value="Submit your message"/>
        </div>
    </section>
    </div>
    % endif
  </div>
</section>
