Add "add owner" button to owner group detail view

This commit is contained in:
Jeremy Stretch
2025-10-23 15:52:43 -04:00
parent c858d2a176
commit ef2225113a

View File

@@ -5,6 +5,14 @@
{% block subtitle %}{% endblock %} {% block subtitle %}{% endblock %}
{% block extra_controls %}
{% if perms.users.add_owner %}
<a href="{% url 'users:owner_add' %}?group={{ object.pk }}" class="btn btn-primary">
<i class="mdi mdi-plus-thick" aria-hidden="true"></i> {% trans "Add Owner" %}
</a>
{% endif %}
{% endblock extra_controls %}
{% block content %} {% block content %}
<div class="row mb-3"> <div class="row mb-3">
<div class="col-md-6"> <div class="col-md-6">