positions

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

templ: version: v0.2.793

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 PositionsContent

func PositionsContent(props *IndexPageProps) templ.Component

func PositionsTable

func PositionsTable(props *IndexPageProps) templ.Component

func UnitSelect

func UnitSelect(props *UnitSelectProps) templ.Component

Types

type CreatePageProps

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

type EditPageProps

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

type IndexPageProps

type IndexPageProps struct {
	*types.PageContext
	Positions       []*viewmodels.Position
	PaginationState *pagination.State
}

type UnitSelectProps

type UnitSelectProps struct {
	*types.PageContext
	Value string
	Units []*viewmodels.Unit
	Attrs templ.Attributes
}

Jump to

Keyboard shortcuts

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