{% extends "permafrost/base.html" %}

{% block title %}Permafrost - Roles{% endblock %}

{% block content %}
<h1>Details: {{object.name}}</h1>

<p>Role Name: {{ object.name }}</p>
<p>Category: {{ object.category }}</p>
<p>Locked: {{ object.locked }}</p>
<p>Deleted: {{ object.deleted }}</p>

<p><a href="{{object.get_update_url}}">Update</a></p>

<hr>
<h3>Perms:</h3>
<ul class="list-group">
{% for perm in object.optional_permissions %}
<li class="list-group-item">{{perm.name}}</li>
{% endfor %}
</ul>

<hr>
<h3>Users:</h3>
<ul class="list-group">
{% for user in object.user_set %}
<li class="list-group-item">{{user.username}}</li>
{% endfor %}
</ul>
<hr>

{% endblock %}