Commit 85eb7582 authored by Martin Mareš's avatar Martin Mareš
Browse files

Buttons have access keys set

parent 8a14b4c7
...@@ -11,6 +11,6 @@ ...@@ -11,6 +11,6 @@
</table> </table>
<div class=buttons> <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> </div>
{% endblock %} {% endblock %}
...@@ -28,9 +28,9 @@ ...@@ -28,9 +28,9 @@
<h3>Copy to course</h3> <h3>Copy to course</h3>
{{ form.copy_to }} {{ form.copy_to }}
{% endif %} {% endif %}
<p class=buttons>{{ form.submit(class='ok') }} <p class=buttons>{{ form.submit(class='ok', accesskey='s') }}
{% if tid != None %} {% 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) <p>{{ form.delete(class='danger') }}&nbsp;&nbsp;(including {{ post_count }} posts)
{% endif %} {% endif %}
</form> </form>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<h2>Student graders of {{ topic.title }}</h2> <h2>Student graders of {{ topic.title }}</h2>
<div class="buttons"> <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> </div>
<h3>Assigned graders</h3> <h3>Assigned graders</h3>
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</table> </table>
<div class=buttons> <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 accesskey='n' 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='b' href='{{ url_for('course_index', sident=g.course.sident, cident=g.course.ident) }}'>Back to the course</a>
</div> </div>
{% endblock %} {% endblock %}
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
{% if g.is_teacher %} {% if g.is_teacher %}
<div class=buttons> <div class=buttons>
<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 accesskey='s' 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='d' href='{{ url_for('admin_course', sident=g.course.sident, cident=g.course.ident) }}'>Details</a>
</div> </div>
{% endif %} {% endif %}
......
...@@ -20,9 +20,9 @@ ...@@ -20,9 +20,9 @@
<div id=preview> <div id=preview>
</div> </div>
</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.") }} {{ 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') }} <p>{{ form.delete(class='danger') }}
</form> </form>
{% endblock %} {% endblock %}
...@@ -12,6 +12,6 @@ ...@@ -12,6 +12,6 @@
<tr><td>Notify on own posts:<td>{{ form.notify_self() }} <tr><td>Notify on own posts:<td>{{ form.notify_self() }}
<tr><td>Show PDF attachments inline:<td>{{ form.inline_att() }} <tr><td>Show PDF attachments inline:<td>{{ form.inline_att() }}
</table> </table>
<p>{{ form.submit(class='ok') }} <p>{{ form.submit(class='ok', accesskey='s') }}
</form> </form>
{% endblock %} {% endblock %}
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<h2>{{c.name}}</h2> <h2>{{c.name}}</h2>
<div class="buttons"> <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> </div>
<h3>Grade {{t.title}}</h3> <h3>Grade {{t.title}}</h3>
......
...@@ -8,13 +8,13 @@ ...@@ -8,13 +8,13 @@
<h2>{{ g.course.name }}</h2> <h2>{{ g.course.name }}</h2>
<div class="buttons"> <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 %} {% 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('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 %} {% 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 %} {% endif %}
</div> </div>
...@@ -83,9 +83,9 @@ ...@@ -83,9 +83,9 @@
{{ form.csrf_token }} {{ form.csrf_token }}
{% if form.ack_time.data %} {% if form.ack_time.data %}
{{ form.ack_time() }} {{ form.ack_time() }}
<input type=submit value='Acknowledge and return'> <input type=submit accesskey='a' value='Acknowledge and return'>
{% else %} {% else %}
<input type=submit value='Return'> <input type=submit accesskey='r' value='Return'>
{% endif %} {% endif %}
</form> </form>
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
<div id=preview> <div id=preview>
</div> </div>
</div> </div>
<p>{{ form.submit(class='ok') }} <p>{{ form.submit(class='ok', accesskey='s') }}
<button type=button onclick='javascript:window.owl.preview()'>Preview</button> <button type=button accesskey='p' onclick='javascript:window.owl.preview()'>Preview</button>
</form> </form>
{% endblock %} {% endblock %}
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