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

Buttons have access keys set

parent 8a14b4c7
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,6 @@
</table>
<div class=buttons>
<a class=button href='{{ url_for('course_index', sident=g.course.sident, cident=g.course.ident) }}'>Back to the course&hellip;</a>
<a class=button accesskey='b' href='{{ url_for('course_index', sident=g.course.sident, cident=g.course.ident) }}'>Back to the course&hellip;</a>
</div>
{% endblock %}
......@@ -28,9 +28,9 @@
<h3>Copy to course</h3>
{{ form.copy_to }}
{% endif %}
<p class=buttons>{{ form.submit(class='ok') }}
<p class=buttons>{{ form.submit(class='ok', accesskey='s') }}
{% if tid != None %}
<a class=button href='{{ url_for('admin_edit_topic', sident=g.course.sident, cident=g.course.ident, copy_tid=tid) }}'>Copy</a>
<a class=button accesskey='c' href='{{ url_for('admin_edit_topic', sident=g.course.sident, cident=g.course.ident, copy_tid=tid) }}'>Copy</a>
<p>{{ form.delete(class='danger') }}&nbsp;&nbsp;(including {{ post_count }} posts)
{% endif %}
</form>
......
......
......@@ -3,7 +3,7 @@
<h2>Student graders of {{ topic.title }}</h2>
<div class="buttons">
<span class="button"><a href="{{url_for('admin_topics', sident=g.course.sident, cident=g.course.ident)}}">Back</a></span>
<span class="button"><a accesskey='b' href="{{url_for('admin_topics', sident=g.course.sident, cident=g.course.ident)}}">Back</a></span>
</div>
<h3>Assigned graders</h3>
......
......
......@@ -30,7 +30,7 @@
</table>
<div class=buttons>
<a class=button href='{{ url_for('admin_edit_topic', sident=g.course.sident, cident=g.course.ident) }}'>New topic</a>
<a class=button href='{{ url_for('course_index', sident=g.course.sident, cident=g.course.ident) }}'>Back to the course</a>
<a class=button accesskey='n' href='{{ url_for('admin_edit_topic', sident=g.course.sident, cident=g.course.ident) }}'>New topic</a>
<a class=button accesskey='b' href='{{ url_for('course_index', sident=g.course.sident, cident=g.course.ident) }}'>Back to the course</a>
</div>
{% endblock %}
......@@ -7,9 +7,9 @@
{% if g.is_teacher %}
<div class=buttons>
<a class=button href='{{ url_for('admin_topics', sident=g.course.sident, cident=g.course.ident) }}'>Topics</a>
<a class=button href='{{ url_for('teacher', sident=g.course.sident, cident=g.course.ident) }}'>Teacher's summary</a>
<a class=button href='{{ url_for('admin_course', sident=g.course.sident, cident=g.course.ident) }}'>Details</a>
<a class=button accesskey='t' href='{{ url_for('admin_topics', sident=g.course.sident, cident=g.course.ident) }}'>Topics</a>
<a class=button accesskey='s' href='{{ url_for('teacher', sident=g.course.sident, cident=g.course.ident) }}'>Teacher's summary</a>
<a class=button accesskey='d' href='{{ url_for('admin_course', sident=g.course.sident, cident=g.course.ident) }}'>Details</a>
</div>
{% endif %}
......
......
......@@ -20,9 +20,9 @@
<div id=preview>
</div>
</div>
<p>{{ form.submit(class='ok') }}
<p>{{ form.submit(class='ok', accesskey='s') }}
{{ form.silent_submit(class='ok',title="Submit, but do not send notifications.") }}
<button type=button onclick='javascript:window.owl.preview()'>Preview</button>
<button type=button accesskey='p' onclick='javascript:window.owl.preview()'>Preview</button>
<p>{{ form.delete(class='danger') }}
</form>
{% endblock %}
......@@ -12,6 +12,6 @@
<tr><td>Notify on own posts:<td>{{ form.notify_self() }}
<tr><td>Show PDF attachments inline:<td>{{ form.inline_att() }}
</table>
<p>{{ form.submit(class='ok') }}
<p>{{ form.submit(class='ok', accesskey='s') }}
</form>
{% endblock %}
......@@ -5,7 +5,7 @@
<h2>{{c.name}}</h2>
<div class="buttons">
<span class="button"><a href='{{ url_for('course_index', sident=c.sident, cident=c.ident) }}'>Return to course</a></span>
<span class="button"><a accesskey='r' href='{{ url_for('course_index', sident=c.sident, cident=c.ident) }}'>Return to course</a></span>
</div>
<h3>Grade {{t.title}}</h3>
......
......
......@@ -8,13 +8,13 @@
<h2>{{ g.course.name }}</h2>
<div class="buttons">
<a class="button" href='{{ url_for('course_index', sident=g.course.sident, cident=g.course.ident) }}'>Back to the course</a>
<a class="button" accesskey='b' href='{{ url_for('course_index', sident=g.course.sident, cident=g.course.ident) }}'>Back to the course</a>
{% if g.is_teacher %}
<a class="button" href='{{ url_for('admin_topics', sident=g.course.sident, cident=g.course.ident) }}'>Topics</a>
<a class="button" accesskey='t' href='{{ url_for('admin_topics', sident=g.course.sident, cident=g.course.ident) }}'>Topics</a>
<a class="button" href='{{ url_for('teacher', sident=g.course.sident, cident=g.course.ident) }}'>Teacher's summary</a>
<a class="button" href='{{ url_for('admin_edit_topic', sident=g.course.sident, cident=g.course.ident, tid=g.topic.tid) }}'>Edit topic</a>
<a class="button" accesskey='e' href='{{ url_for('admin_edit_topic', sident=g.course.sident, cident=g.course.ident, tid=g.topic.tid) }}'>Edit topic</a>
{% elif g.is_grader %}
<a class="button" href='{{ url_for('topic_student_grade', sident=g.course.sident, cident=g.course.ident, tident=g.topic.ident) }}'>Grade</a>
<a class="button" accesskey='g' href='{{ url_for('topic_student_grade', sident=g.course.sident, cident=g.course.ident, tident=g.topic.ident) }}'>Grade</a>
{% endif %}
</div>
......@@ -83,9 +83,9 @@
{{ form.csrf_token }}
{% if form.ack_time.data %}
{{ form.ack_time() }}
<input type=submit value='Acknowledge and return'>
<input type=submit accesskey='a' value='Acknowledge and return'>
{% else %}
<input type=submit value='Return'>
<input type=submit accesskey='r' value='Return'>
{% endif %}
</form>
......@@ -111,7 +111,7 @@
<div id=preview>
</div>
</div>
<p>{{ form.submit(class='ok') }}
<button type=button onclick='javascript:window.owl.preview()'>Preview</button>
<p>{{ form.submit(class='ok', accesskey='s') }}
<button type=button accesskey='p' onclick='javascript:window.owl.preview()'>Preview</button>
</form>
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment