Skip to content
Snippets Groups Projects
Commit 442a7719 authored by Martin Mareš's avatar Martin Mareš
Browse files

Button for setting points to maximum is now available when editing a post, too

parent bbc6735b
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,10 @@
{% endif %}
<p>{{ form.comment(rows=16, cols=80) }}
{% if g.is_grader %}
<p>{{ form.points.label }} {{ form.points(size=6) }} / {{ g.topic.max_points or "?" }}
<p>{{ form.points.label }} {{ form.points(size=6) }}
{% if g.topic.max_points %}
/ <button id=maxbutton type=button accesskey='m' onclick="javascript:document.getElementById('points').value = document.getElementById('maxbutton').innerText">{{ g.topic.max_points }}</button>
{% endif %}
{% if form.errors['points'] %}
<p class=error>{{ form.errors['points'][0] }}
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment