{% extends "admin/shortcuts.html" %}
{% load i18n shortcuts %}

{% get_shortcuts as shortcuts %}

{% block shortcut_buttons %}
  {{ block.super }}
  <button id="keyshortcut-prev-btn" data-hotkey="{{ shortcuts.changelist.focus_prev_row.1 }}" hidden></button>
  <button id="keyshortcut-next-btn" data-hotkey="{{ shortcuts.changelist.focus_next_row.1 }}" hidden></button>
  <button id="keyshortcut-select-btn" data-hotkey="{{ shortcuts.changelist.toggle_row_selection.1 }}" hidden></button>
  <button id="keyshortcut-select-actions-btn" data-hotkey="{{ shortcuts.changelist.focus_actions_dropdown.1 }}" hidden></button>
{% endblock %}

{% block extra_shortcuts %}
{{ block.super }}
  <section>
    <h3>{% translate "Change List" %}</h3>
    <dl>
      {% for shortcut in shortcuts.changelist.values %}
        <dt class="shortcut-description">{{ shortcut.0 }}</dt>
        <dd class="shortcut-keys">{% shortcut_format_kbd shortcut.1 %}</dd>
      {% endfor %}
    </dl>
  </section>
{% endblock %}
