compliancetemplates

package
v1.2.1 Latest Latest
Warning

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

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

Documentation

Overview

templ: version: v0.3.1020

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CoverageBadge

func CoverageBadge(pct int) templ.Component

func FrameworkDetail

func FrameworkDetail(vm FrameworkDetailVM) templ.Component

── Framework detail ──

func FrameworkForm

func FrameworkForm(fw *db.Framework, flash, flashType string, auditLog []db.ListAuditLogForFrameworkRow) templ.Component

── Framework form ──

func FrameworkList

func FrameworkList(frameworks []FrameworkVM, expandID, flash, flashType string) templ.Component

── Framework list ──

func ImportForm

func ImportForm(frameworkID string, flash, flashType string, result *ImportResult) templ.Component

── CSV import form ──

func RequirementDetail

func RequirementDetail(vm RequirementDetailVM) templ.Component

── Requirement detail ──

func RequirementEditPage

func RequirementEditPage(vm RequirementEditVM, flash, flashType string) templ.Component

── Requirement edit page (form + links) ──

func RequirementForm

func RequirementForm(frameworkID string, req *db.Requirement, flash, flashType string, auditLog []db.ListAuditLogForRequirementRow) templ.Component

── Requirement form ──

func RequirementMeasureSearchResults

func RequirementMeasureSearchResults(requirementID string, measures []db.Measure, query string) templ.Component

func RequirementsTable

func RequirementsTable(reqs []RequirementVM) templ.Component

Types

type FrameworkDetailVM

type FrameworkDetailVM struct {
	Framework                  db.Framework
	Requirements               []db.Requirement
	RequirementImplementations []RequirementVM
	CoveredReqs                int64
	CanEdit                    bool
	AuditLog                   []db.ListAuditLogForFrameworkRow
}

FrameworkDetailVM is the view model for the framework detail page.

type FrameworkVM

type FrameworkVM struct {
	Framework    db.Framework
	Coverage     int
	TotalReqs    int64
	CoveredReqs  int64
	Requirements []RequirementVM
}

FrameworkVM is the view model for displaying a framework in the list.

type ImportResult

type ImportResult struct {
	Count  int
	Errors []string
}

ImportResult holds the result of a CSV import operation.

type RequirementDetailVM

type RequirementDetailVM struct {
	Requirement    db.Requirement
	FrameworkName  string
	FrameworkShort string
	Measures       []db.ListMeasuresForRequirementRow
	CanEdit        bool
	AuditLog       []db.ListAuditLogForRequirementRow
}

RequirementDetailVM is the view model for the requirement detail page.

type RequirementEditVM

type RequirementEditVM struct {
	Requirement    db.Requirement
	LinkedMeasures []db.ListMeasuresForRequirementRow
	AuditLog       []db.ListAuditLogForRequirementRow
}

RequirementEditVM is the view model for the requirement edit page with links management.

type RequirementVM

type RequirementVM struct {
	Requirement db.Requirement
	Measures    []db.ListMeasuresForRequirementRow
}

RequirementVM is the view model for a requirement with its linked measures.

Jump to

Keyboard shortcuts

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