Commit d4c6536a authored by Martin Mareš's avatar Martin Mareš
Browse files

Access keys for entering points

parent e8876697
......@@ -101,7 +101,7 @@
{% endif %}
<p>{{ form.attachment.label }} {{ form.attachment() }}
{% if g.is_grader and student_uid != -1 %}
<p>{{ form.points.label }} {{ form.points(size=6) }} / <button id=maxbutton type=button onclick="javascript:document.getElementById('points').value = document.getElementById('maxbutton').innerText">{{ g.topic.max_points or "?" }}</button>
<p>{{ form.points.label }} {{ form.points(size=6, accesskey='t') }} / <button id=maxbutton type=button accesskey='m' onclick="javascript:document.getElementById('points').value = document.getElementById('maxbutton').innerText">{{ g.topic.max_points or "?" }}</button>
{% if form.errors['points'] %}
<p class=error>{{ form.errors['points'][0] }}
{% endif %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment