{% extends "list_requests.html" %} {% from "macros.html" import clipboard_button %} {% block content %}
{% for grouper, grouped in current_user.permissions|groupby('division.name') %} {% with grouped_permissions = grouped|map(attribute='permission')|groupby('value') %} {% endwith %} {% endfor %}
Division Permissions
{{ grouper }}{{ grouped_permissions|map('last')|map('first')|map(attribute='description')|join(', ') }}
{% for key in current_user.api_keys %} {% endfor %}
Key Created Remove
{{ clipboard_button(key.hex_key, "bottom", "") }} {{ key.timestamp.strftime('%d %b %Y @ %H:%M') }}
{{ key_form.csrf_token }} {{ key_form.action(value='delete') }} {{ key_form.key_id(value=key.id) }}
{{ key_form.csrf_token }} {{ key_form.action(value='add') }}
{{ super() }} {% endblock content %}