measurestemplates

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Overview

templ: version: v0.3.1020

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MeasureCoreFields

func MeasureCoreFields() templ.Component

MeasureCoreFields renders name, category, owner, and due-date inputs.

func MeasureDetail

func MeasureDetail(vm MeasureDetailVM) templ.Component

── Measure detail ──

func MeasureEditPage

func MeasureEditPage(vm MeasureEditVM, flash, flashType string) templ.Component

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

func MeasureForm

func MeasureForm(m *db.Measure, users []db.User, flash, flashType string) templ.Component

── Measure form ──

func MeasureList

func MeasureList(measures []MeasureVM, filter, owner string, mine bool, flash, flashType string, hasMore bool, pageSize int32) templ.Component

── Measure list ──

func MeasureRequirementSearchResults

func MeasureRequirementSearchResults(measureID string, requirements []db.ListRequirementsForMeasureRow, query string) templ.Component

func MeasureRows

func MeasureRows(measures []MeasureVM, hasMore bool, nextOffset int32, filter, owner string, mine bool) templ.Component

func MeasuresTable

func MeasuresTable(measures []MeasureVM, hasMore bool, pageSize int32, filter, owner string, mine bool) templ.Component

Types

type MeasureDetailVM

type MeasureDetailVM struct {
	Measure     db.Measure
	LinkedReqs  []db.ListRequirementsForMeasureRow
	Activities  []db.ListActivitiesForMeasureRow
	Links       []db.MeasureLink
	LinkedRisks []db.Risk
	CanEdit     bool
	AuditLog    []db.ListAuditLogForMeasureRow
}

MeasureDetailVM is the view model for the measure detail page.

type MeasureEditVM

type MeasureEditVM struct {
	Measure    db.Measure
	LinkedReqs []db.ListRequirementsForMeasureRow
	Users      []db.User
	Links      []db.MeasureLink
	AuditLog   []db.ListAuditLogForMeasureRow
}

MeasureEditVM is the view model for the measure edit page with links management.

type MeasureVM

type MeasureVM struct {
	Measure      db.Measure
	Frameworks   []string // framework short names this measure covers
	HasRiskLinks bool     // linked to at least one risk
	OwnerDisplay string
}

MeasureVM is the view model for displaying a measure in the list.

Jump to

Keyboard shortcuts

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