units

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

templ: version: v0.2.793

templ: version: v0.2.793

templ: version: v0.2.793

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateForm

func CreateForm(props *CreatePageProps) templ.Component

func Edit

func Edit(props *EditPageProps) templ.Component

func EditForm

func EditForm(props *EditPageProps) templ.Component

func Index

func Index(props *IndexPageProps) templ.Component

func New

func New(props *CreatePageProps) templ.Component

func UnitsContent

func UnitsContent(props *IndexPageProps) templ.Component

func UnitsTable

func UnitsTable(props *IndexPageProps) templ.Component

Types

type CreatePageProps

type CreatePageProps struct {
	*types.PageContext
	Unit    *viewmodels.Unit
	Errors  map[string]string
	SaveURL string
}

type EditPageProps

type EditPageProps struct {
	*types.PageContext
	Unit      *viewmodels.Unit
	Errors    map[string]string
	DeleteURL string
}

type IndexPageProps

type IndexPageProps struct {
	*types.PageContext
	Units           []*viewmodels.Unit
	PaginationState *pagination.State
}

Jump to

Keyboard shortcuts

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