problem.html 1.31 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 11 12 13
<div class="problem">
    <div aria-live="polite">
        ${ problem['html'] }
    </div>
14
  <div class="action">
15
    <input type="hidden" name="problem_id" value="${ problem['name'] }" />
16 17

    % if check_button:
18
    <button class="check ${ check_button }" data-checking="${ check_button_checking }" data-value="${ check_button }"><span class="check-label">${ check_button }</span><span class="sr"> ${_("your answer")}</span></button>
19 20
    % endif
    % if reset_button:
21
    <button class="reset" data-value="${_('Reset')}">${_('Reset')}<span class="sr"> ${_("your answer")}</span></button>
22 23
    % endif
    % if save_button:
24
    <button class="save" data-value="${_('Save')}">${_('Save')}<span class="sr"> ${_("your answer")}</span></button>
25 26
    % endif
    % if answer_available:
27
    <button class="show"><span class="show-label">${_('Show Answer')}</span> </button>
28
    % endif
29
    % if attempts_allowed :
30
    <div class="submission_feedback" aria-live="polite">
31
      ${_("You have used {num_used} of {num_total} submissions").format(num_used=attempts_used, num_total=attempts_allowed)}
32
    </div>
33
    % endif
34 35
  </div>
</div>