-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Karthik Ayangar <karthik.ayangar7118@gmail.com>
- Loading branch information
Showing
3 changed files
with
103 additions
and
27 deletions.
There are no files selected for viewing
48 changes: 23 additions & 25 deletions
48
wagtail/admin/templates/wagtailadmin/shared/keyboard_shortcuts_dialog.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,28 @@ | ||
{% load wagtailadmin_tags i18n %} | ||
{% dialog icon_name='regex' id='keyboard-shortcuts-dialog' title=_("Keyboard shortcuts") %} | ||
{% if shortcuts%} | ||
<table class="w-keyboard-shortcuts"> | ||
<caption class="w-sr-only"> | ||
{% trans "All keyboard shortcuts" %} | ||
</caption> | ||
<thead class="w-sr-only"> | ||
<tr> | ||
<th scope="col">{% trans "Section" %}</th> | ||
<th scope="col">{% trans "Keyboard shortcut" %}</th> | ||
</tr> | ||
</thead> | ||
<table class="w-keyboard-shortcuts"> | ||
<caption class="w-sr-only"> | ||
{% trans "All keyboard shortcuts" %} | ||
</caption> | ||
<thead class="w-sr-only"> | ||
<tr> | ||
<th scope="col">{% trans "Section" %}</th> | ||
<th scope="col">{% trans "Keyboard shortcut" %}</th> | ||
</tr> | ||
</thead> | ||
|
||
{% for category, shortcuts in shortcuts.items %} | ||
<tbody class="w-w-full" id="keyboard-shortut-group-{{ category.0 }}"> | ||
<tr colspan="2"> | ||
<th class="w-keyboard-shortcuts__category" scope="rowgroup">{{ category.1 }}</th> | ||
{% for category, shortcuts in shortcuts.items %} | ||
<tbody class="w-w-full" id="keyboard-shortut-group-{{ category.0 }}"> | ||
<tr colspan="2"> | ||
<th class="w-keyboard-shortcuts__category" scope="rowgroup">{{ category.1 }}</th> | ||
</tr> | ||
{% for shortcut in shortcuts %} | ||
<tr class="w-keyboard_shortcuts__key"> | ||
<th class="w-keyboard_shortcuts__label" scope="row">{{ shortcut.label }}</th> | ||
<td class="w-keyboard_shortcuts__symbol"><kbd>{{ shortcut.shortcut }}</kbd></td> | ||
</tr> | ||
{% for shortcut in shortcuts %} | ||
<tr class="w-keyboard_shortcuts__key "> | ||
<th class="w-keyboard_shortcuts__label" scope="row">{{ shortcut.label }}</th> | ||
<td class="w-keyboard_shortcuts__symbol"><kbd>{{ shortcut.shortcut }}</kbd></td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
{% endfor %} | ||
</table> | ||
{% endif%} | ||
{% endfor %} | ||
</tbody> | ||
{% endfor %} | ||
</table> | ||
{% enddialog %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters