problem.html 1.08 KB
Newer Older
1 2
<%! from django.utils.translation import ugettext as _ %>

3
<%namespace name='static' file='static_content.html'/>
4 5
<h2 class="problem-header">
  ${ problem['name'] }
Lyla Fischer committed
6
</h2>
7

8
<div class="problem-progress"></div>
9

10
<div class="problem">
11
  ${ problem['html'] }
12

13
  <div class="action">
14
    <input type="hidden" name="problem_id" value="${ problem['name'] }" />
15 16

    % if check_button:
17
    <input class="check ${ check_button }" type="button" value="${ check_button }" />
18 19
    % endif
    % if reset_button:
20
    <input class="reset" type="button" value="${_('Reset')}" />
21 22
    % endif
    % if save_button:
23
    <input class="save" type="button" value="${_('Save')}" />
24 25
    % endif
    % if answer_available:
26
    <button class="show"><span class="show-label">${_('Show Answer(s)')}</span> <span class="sr">${_("(for question(s) above - adjacent to each field)")}</span></button>
27
    % endif
28
    % if attempts_allowed :
29
    <div class="submission_feedback">
30
      ${_("You have used {num_used} of {num_total} submissions").format(num_used=attempts_used, num_total=attempts_allowed)}
31
    </div>
32
    % endif
33 34
  </div>
</div>