Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Mareš
Postal Owl
Commits
85eb7582
Commit
85eb7582
authored
Feb 27, 2022
by
Martin Mareš
Browse files
Buttons have access keys set
parent
8a14b4c7
Changes
9
Show whitespace changes
Inline
Side-by-side
templates/admin-course.html
View file @
85eb7582
...
...
@@ -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
…
</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 %}
templates/admin-edit-topic.html
View file @
85eb7582
...
...
@@ -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') }}
(including {{ post_count }} posts)
{% endif %}
</form>
...
...
templates/admin-topic-graders.html
View file @
85eb7582
...
...
@@ -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>
...
...
templates/admin-topics.html
View file @
85eb7582
...
...
@@ -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 %}
templates/course.html
View file @
85eb7582
...
...
@@ -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 %}
...
...
templates/edit-post.html
View file @
85eb7582
...
...
@@ -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 %}
templates/settings.html
View file @
85eb7582
...
...
@@ -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 %}
templates/topic-grade.html
View file @
85eb7582
...
...
@@ -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>
...
...
templates/topic.html
View file @
85eb7582
...
...
@@ -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 %}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment