pages

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetDeletePage

type AssetDeletePage struct {
	Asset   *entities.Asset
	Message string
}

func (*AssetDeletePage) Render

type AssetEditPage

type AssetEditPage struct {
	Asset            *entities.Asset
	IsNew            bool
	ValidationErrs   map[string]string
	DefaultCurrency  string
	DecimalSeparator string
	Referer          string
}

func (*AssetEditPage) Render

type AssetFileDeletePage

type AssetFileDeletePage struct {
	File *entities.File
}

func (*AssetFileDeletePage) Render

type AssetListPage

type AssetListPage struct {
	Assets  *views.Pagination[*entities.Asset]
	Search  string
	Columns map[string]bool
}

func (*AssetListPage) Render

type AssetViewPage

type AssetViewPage struct {
	Asset            *entities.Asset
	DecimalSeparator string
}

func (*AssetViewPage) Render

type AuthPasswordResetPage

type AuthPasswordResetPage struct {
	ValidationErrs map[string]string
}

func (*AuthPasswordResetPage) Render

type ChangePasswordPage

type ChangePasswordPage struct {
	ValidationErrs map[string]string
}

func (*ChangePasswordPage) Render

type ImportPage

type ImportPage struct {
	Format           string `form:"format"`
	IgnoreDuplicates bool   `form:"ignore_duplicates"`

	SnipeITURL    string `form:"snipeit_url"`
	SnipeITAPIKey string `form:"snipeit_api_key"`

	ValidationErrs map[string]string `form:"-"`
}

func (*ImportPage) Render

func (m *ImportPage) Render(w http.ResponseWriter, r *http.Request) error

type LabelSheetCreatorPage

type LabelSheetCreatorPage struct {
	Template string `form:"template"`

	SelectedAssetIDs []int64 `form:"selected_asset_ids"`

	PageSize   string `form:"page_size"`
	SkipLabels int    `form:"skip_labels"`

	NumColumns   int     `form:"page_cols"`
	NumRows      int     `form:"page_rows"`
	MarginLeft   float64 `form:"page_margin_left"`
	MarginTop    float64 `form:"page_margin_top"`
	MarginRight  float64 `form:"page_margin_right"`
	MarginBottom float64 `form:"page_margin_bottom"`

	ShowBorders       bool    `form:"label_show_borders"`
	FontSize          float64 `form:"label_font_size"`
	Width             float64 `form:"label_width"`
	Height            float64 `form:"label_height"`
	VerticalPadding   float64 `form:"label_vertical_padding"`
	HorizontalPadding float64 `form:"label_horizontal_padding"`
	VerticalSpacing   float64 `form:"label_vertical_spacing"`
	HorizontalSpacing float64 `form:"label_horizontal_spacing"`

	Assets []*entities.Asset `form:"-"`

	ValidationErrs map[string]string `form:"-"`
}

func (*LabelSheetCreatorPage) Render

type LoginPage

type LoginPage struct {
	ValidationErrs map[string]string
}

func (*LoginPage) Render

func (p *LoginPage) Render(w http.ResponseWriter, r *http.Request) error

type TagListPage

type TagListPage struct {
	Tags   *views.Pagination[*entities.Tag]
	Search string
}

func (*TagListPage) Render

func (m *TagListPage) Render(w http.ResponseWriter, r *http.Request) error

type UserDeletePage

type UserDeletePage struct {
	User           *auth.User
	ValidationErrs map[string]string
}

func (*UserDeletePage) Render

type UsersCurrentPage

type UsersCurrentPage struct {
	User           *auth.User
	ValidationErrs map[string]string
}

func (*UsersCurrentPage) Render

type UsersListPage

type UsersListPage struct {
	Users *views.Pagination[*auth.User]
}

func (*UsersListPage) Render

type UsersNewPage

type UsersNewPage struct {
	User           *auth.User
	ValidationErrs map[string]string
}

func (*UsersNewPage) Render

func (p *UsersNewPage) Render(w http.ResponseWriter, r *http.Request) error

Jump to

Keyboard shortcuts

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