pages

package
v1.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2026 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignmentCreateDialog

func AssignmentCreateDialog(roles []*role.Role) templ.Component

AssignmentCreateDialog renders a create assignment modal dialog.

func AssignmentsPage

func AssignmentsPage(assignments []*assignment.Assignment, subjectKind, subjectID, roleIDFilter string, allRoles []*role.Role, pg components.PaginationMeta) templ.Component

func AttachPermissionDialog

func AttachPermissionDialog(roleID string, availablePerms []*permission.Permission) templ.Component

AttachPermissionDialog renders a dialog to attach a permission to a role.

func CheckLogsPage

func CheckLogsPage(logs []*checklog.Entry, filters map[string]string, pg components.PaginationMeta) templ.Component

func DetachPermissionDialog

func DetachPermissionDialog(roleID string, perm *permission.Permission) templ.Component

DetachPermissionDialog renders a confirm dialog to detach a permission from a role.

func OverviewPage

func OverviewPage(roles, permissions, assignments, relations, policies, resourceTypes int64, recentLogs []*checklog.Entry, cfg warden.Config, allRoles []*role.Role) templ.Component

func PermissionCreateDialog

func PermissionCreateDialog() templ.Component

PermissionCreateDialog renders a create permission modal dialog.

func PermissionsPage

func PermissionsPage(perms []*permission.Permission, search, resource, action string, pg components.PaginationMeta) templ.Component

func PlaygroundPage

func PlaygroundPage() templ.Component

PlaygroundPage renders the authorization playground for testing access checks.

func PoliciesPage

func PoliciesPage(policies []*policy.Policy, search, effectFilter, activeFilter string, pg components.PaginationMeta) templ.Component

func PolicyCreatePage

func PolicyCreatePage() templ.Component

PolicyCreatePage renders a full-page form for creating a new ABAC policy.

func PolicyDetailPage

func PolicyDetailPage(p *policy.Policy) templ.Component

func PolicyEditPage

func PolicyEditPage(p *policy.Policy) templ.Component

PolicyEditPage renders a full-page form for editing an existing ABAC policy.

func RelationCreateDialog

func RelationCreateDialog() templ.Component

RelationCreateDialog renders a write relation tuple modal dialog.

func RelationsPage

func RelationsPage(tuples []*relation.Tuple, objectType, rel, subjectType string, pg components.PaginationMeta) templ.Component

func ResourceTypeCreatePage

func ResourceTypeCreatePage() templ.Component

ResourceTypeCreatePage renders a full-page form for creating a new resource type.

func ResourceTypeDetailPage

func ResourceTypeDetailPage(rt *resourcetype.ResourceType) templ.Component

func ResourceTypesPage

func ResourceTypesPage(types []*resourcetype.ResourceType, search string, pg components.PaginationMeta) templ.Component

func RoleCreateDialog

func RoleCreateDialog(roles []*role.Role) templ.Component

RoleCreateDialog renders a create role modal dialog.

func RoleCreateDialogTrigger

func RoleCreateDialogTrigger() templ.Component

func RoleDetailPage

func RoleDetailPage(r *role.Role, perms []*permission.Permission, childRoles []*role.Role, allRoles []*role.Role, allPerms []*permission.Permission) templ.Component

func RoleEditDialog

func RoleEditDialog(r *role.Role, roles []*role.Role) templ.Component

RoleEditDialog renders an edit role modal dialog.

func RolesPage

func RolesPage(rows []RoleRow, search string, pg components.PaginationMeta) templ.Component

Types

type RoleRow

type RoleRow struct {
	Role            *role.Role
	PermissionCount int
	ParentSlug      string // copy of Role.ParentSlug; empty if no parent
	ParentName      string // resolved display name; empty if no parent
	ParentID        string // stringified parent typeid for link building; empty if no parent
	RelationCount   int64
}

RoleRow is a view model that pairs a Role with pre-fetched relationship counts for display in the roles list table.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL