Documentation
¶
Overview ¶
templ: version: v0.3.1020
Index ¶
- func CoverageBadge(pct int) templ.Component
- func FrameworkDetail(vm FrameworkDetailVM) templ.Component
- func FrameworkForm(fw *db.Framework, flash, flashType string, ...) templ.Component
- func FrameworkList(frameworks []FrameworkVM, expandID, flash, flashType string) templ.Component
- func ImportForm(frameworkID string, flash, flashType string, result *ImportResult) templ.Component
- func RequirementDetail(vm RequirementDetailVM) templ.Component
- func RequirementEditPage(vm RequirementEditVM, flash, flashType string) templ.Component
- func RequirementForm(frameworkID string, req *db.Requirement, flash, flashType string, ...) templ.Component
- func RequirementMeasureSearchResults(requirementID string, measures []db.Measure, query string) templ.Component
- func RequirementsTable(reqs []RequirementVM) templ.Component
- type FrameworkDetailVM
- type FrameworkVM
- type ImportResult
- type RequirementDetailVM
- type RequirementEditVM
- type RequirementVM
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CoverageBadge ¶
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 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 ¶
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.
Click to show internal directories.
Click to hide internal directories.