{% extends "app_home/base.html" %}
{% load i18n %}
{% load static %}

{% block navbar_app %}
{% include 'app_home/_sidebar.html' %}
{% endblock %}


{% block title %}
<H2>{% translate "Permissions" %}</H2>
<small class="text-muted">{{ count }} {% translate "permissions" %}</small>
<hr>{% endblock %}


{% block content %}


<a class="btn btn-outline-dark" onclick="history.back()" role="button">
<i class="fa fa-backward" aria-hidden="true"></i>&nbsp; {% translate 'Back' %} </a>

{% if 'p_permission_create' in aaa.perms  %}
{% endif %}


{% if 'p_permission_export' in aaa.perms  %}
{% endif %}


<hr>



<table id="table_managed" class="table table-striped table-hover table-sm small">
<thead class="thead-dark"><tr>
<th>{% translate "Permission" %}</th>
<th>{% translate "Display name" %}</th>
<th>{% translate "Description" %}</th>
<th>{% translate "Built-in" %}</th>
</tr>
</thead>


{% for p in permissions %}
<tr>
<td>{{ p.keyname }}</td>
<td class="py-1 px-1 mx-0">{{ p.displayname|default:''}}</td>
<td class="py-1 px-1 mx-0">{{ p.description|default:''}}</td>
<td class="py-1 text-center">{{ p.is_builtin  | yesno:"X,," }}</td>
</tr>{% endfor %}
</table>






{% endblock %}







