problem.html 911 Bytes
Newer Older
1
<%namespace name='static' file='static_content.html'/>
2 3
<h2 class="problem-header">
  ${ problem['name'] }
4
  % if problem['weight'] != 1:
5 6
    : ${ problem['weight'] } points
  % endif
Lyla Fischer committed
7
</h2>
8

9
<section class="problem">
10
  ${ problem['html'] }
11 12 13 14 15

  <section class="action">
    <input type="hidden" name="problem_id" value="${ problem['name'] }">

    % if check_button:
16
    <input class="check" type="button" value="${ check_button }">
17 18
    % endif
    % if reset_button:
19
    <input class="reset" type="button" value="Reset">
20 21
    % endif
    % if save_button:
22
    <input class="save" type="button" value="Save">
23 24
    % endif
    % if answer_available:
25
    <input class="show" type="button" value="Show Answer">
26
    % endif
27 28 29 30 31
    % if attempts_allowed :
    <section class="submission_feedback">
    You have used ${ attempts_used } of ${ attempts_allowed } submissions
    </section>
    % endif
32
  </section>
33
</section>
34