open_ended.html 1.4 KB
Newer Older
1
<section id="openended_${id}" class="open-ended-child" data-state="${state}" data-child-type="${child_type}">
Vik Paruchuri committed
2 3
   <div class="error"></div>
   <div class="prompt">
Vik Paruchuri committed
4
    ${prompt|n}
5
   </div>
Vik Paruchuri committed
6
  <h4>Response</h4>
7
  <textarea rows="${rows}" cols="${cols}" name="answer" class="answer short-form-response" id="input_${id}">${previous_answer|h}</textarea>
8

Vik Paruchuri committed
9 10
  <div class="message-wrapper"></div>
  <div class="grader-status">
11
    % if state == 'initial':
12
      <span class="unanswered" style="display:inline-block;" id="status_${id}">Unanswered</span>
13
    % elif state in ['done', 'post_assessment'] and correct == 'correct':
14
    <span class="correct" id="status_${id}"></span> <p>Correct</p>
15
    % elif state in ['done', 'post_assessment'] and correct == 'incorrect':
16
    <span class="incorrect" id="status_${id}"></span> <p>Incorrect. </p>
17
    % elif state == 'assessing':
18 19 20 21 22 23
      <span class="grading" id="status_${id}">Submitted for grading.
      % if eta_message is not None:
         ${eta_message}
      % endif
      </span>

24 25 26 27 28 29 30
    % endif

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

31 32
  <div class="file-upload"></div>

Vik Paruchuri committed
33
  <input type="button" value="Submit" class="submit-button" name="show"/>
Vik Paruchuri committed
34
  <input name="skip" class="skip-button" type="button" value="Skip Post-Assessment"/>
35

36 37
  <div class="open-ended-action"></div>

38 39
  <span id="answer_${id}"></span>
</section>