22 lines
898 B
Plaintext
22 lines
898 B
Plaintext
<%#
|
|
Roles admin list (todo §5): the same building blocks as the Groups screen, around the shell, backed
|
|
by live Keto Role subject sets (src/admin-roles.ts). Filter/sort/page round-trip the URL.
|
|
%><%
|
|
const nav = include("partials/nav-tree", { nodes: model.nav });
|
|
const filters = include("partials/filter-bar", model.filterBar);
|
|
const table = include("partials/data-table", model.table);
|
|
const pager = include("partials/pagination", model.pagination);
|
|
const actions = '<a class="btn btn-primary" href="/admin/roles/new"><svg class="ico ico-sm" aria-hidden="true"><use href="#i-plus"/></svg>Add role</a>';
|
|
-%>
|
|
<%- include("partials/shell", {
|
|
actions,
|
|
body: filters + table + pager,
|
|
brand: model.shell.brand,
|
|
breadcrumbs: model.shell.breadcrumbs,
|
|
csrfToken: model.shell.csrfToken,
|
|
nav,
|
|
theme: model.shell.theme,
|
|
title: model.shell.title,
|
|
user: model.shell.user,
|
|
}) %>
|