Adding ACL Modificationf for existing roles
This commit is contained in:
1 parent
35e8a61b1d
commit
78efe32b69
4 files changed
+93
-14
No files matched your search
@@ -0,0 +1,17 @@
|
||||
<tr id="role-{{ r.id }}">
|
||||
<td>{{ r.id }}</td>
|
||||
<td>{{ r.name }}</td>
|
||||
<td>{{ r.description or "" }}</td>
|
||||
<td>{% for perm in r.permissions %}<span class="tag">{{ perm.name }}</span>{% endfor %}</td>
|
||||
<td class="row-actions">
|
||||
<button class="btn btn-ghost"
|
||||
hx-get="/admin/roles/{{ r.id }}/edit"
|
||||
hx-target="#role-{{ r.id }}"
|
||||
hx-swap="outerHTML">Edit</button>
|
||||
<button class="btn btn-danger"
|
||||
hx-delete="/admin/roles/{{ r.id }}"
|
||||
hx-target="#role-{{ r.id }}"
|
||||
hx-swap="outerHTML"
|
||||
hx-confirm="Delete role {{ r.name }}?">Delete</button>
|
||||
</td>
|
||||
</tr>
|
||||
Reference in new issue
Block a user