{% extends "layout.html" %} {% block body %}
New Bucket
{% for role, buckets in [("Owner", owner), ("Admin", admin), ("Client", client)] %}

{{role}}

{% for b in buckets %}

{{b.name}} {% if role in ["Owner", "Admin"] %} edit {% endif %}

UUID
{{b.uuid}}
Description
{{b.description}}

Owners
{% for u in b.owners %} {{u.username}}{%if not loop.last%}, {%endif%} {% endfor %}
Admins
{% for u in b.admins %} {{u.username}}{%if not loop.last%}, {%endif%} {% endfor %}
Clients
{% for u in b.clients %} {{u.username}}{%if not loop.last%}, {%endif%} {% endfor %}

Secrets

{% for s in b.secrets %} {% if s.active %}
{{s.name}}
{{s.ciphertext}}
{% endif %} {% endfor %} {% endfor %}
{% endfor %} {% endblock %}