html

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Index                = parse("layout.html", "index.html")
	InternalServerError  = parse("layout.html", "internal-server-error.html")
	NotFound             = parse("layout.html", "not-found.html")
	PadCreate            = parse("layout.html", "pad-create.html")
	PadPayout            = parse("layout.html", "pad.html", "pad-payout.html")
	PadPayoutTaker       = parse("layout.html", "pad.html", "pad-payout-taker.html")
	PadPayoutTakerResult = parse("layout.html", "pad.html", "pad-payout-taker-result.html")
	PadSettings          = parse("layout.html", "pad.html", "pad-settings.html")
	PadShare             = parse("layout.html", "pad.html", "pad-share.html")
	PadShareResult       = parse("layout.html", "pad.html", "pad-share-result.html")
	PadViewWeek          = parse("layout.html", "pad.html", "pad-view-week.html")
	ShiftCreate          = parse("layout.html", "pad.html", "shift-create.html")
	ShiftDelete          = parse("layout.html", "pad.html", "shift-delete.html")
	ShiftEdit            = parse("layout.html", "pad.html", "shift-edit.html")
	ShiftTake            = parse("layout.html", "pad.html", "shift-take.html")
	TakeApprove          = parse("layout.html", "pad.html", "take-approve.html")
)

Functions

This section is empty.

Types

type Lang added in v0.2.0

type Lang language.Tag

func (Lang) Tr added in v0.2.0

func (l Lang) Tr(key message.Reference, a ...interface{}) string

type LayoutData added in v0.2.0

type LayoutData struct {
	Lang
}

func MakeLayoutData added in v0.2.0

func MakeLayoutData(r *http.Request) LayoutData

type PadData

type PadData struct {
	LayoutData
	ActiveTab string
	Errors    []string
	Pad       shiftpad.AuthPad
}

type PadPayoutData added in v0.6.0

type PadPayoutData struct {
	PadData
	TakerNames []string
}

type PadPayoutTakerData added in v0.6.0

type PadPayoutTakerData struct {
	PadData
	Name   string
	Events []shiftpad.Event
}

type PadPayoutTakerResultData added in v0.6.0

type PadPayoutTakerResultData struct {
	PadPayoutTakerData
	SumHours float64
}

type PadSettingsData

type PadSettingsData struct {
	PadData
	Error     string
	Locations []string
}

type PadShareData

type PadShareData struct {
	PadData
}

type PadShareResultData

type PadShareResultData struct {
	PadData
	Host string
	Link string
}

type PadViewWeekData

type PadViewWeekData struct {
	PadData
	ISOWeek     string
	Days        [7]*shiftpad.Day
	EarlierYear int
	EarlierWeek int
	LaterYear   int
	LaterWeek   int
	ThisYear    int
	ThisWeek    int
	NextYear    int
	NextWeek    int
}

type ShiftCellsData added in v0.7.0

type ShiftCellsData struct {
	Lang
	Pad   shiftpad.AuthPad
	Day   shiftpad.Day
	Shift *shiftpad.Shift
}

for subtemplate "shift-cells"

type ShiftCreateData

type ShiftCreateData struct {
	PadData
	Day      shiftpad.Day
	EventUID string
	MaxDate  string
	MinDate  string
	Error    string
}

type ShiftDeleteData

type ShiftDeleteData struct {
	PadData
	Day   shiftpad.Day
	Shift *shiftpad.Shift
	Error string
}

type ShiftEditData

type ShiftEditData struct {
	PadData
	Day     shiftpad.Day
	MaxDate string
	MinDate string
	Shift   *shiftpad.Shift
	Error   string
}

type ShiftTakeData

type ShiftTakeData struct {
	PadData
	Apply      bool
	Day        shiftpad.Day
	Shift      *shiftpad.Shift
	TakerNames []string
}

type TakeApproveData added in v0.5.0

type TakeApproveData struct {
	PadData
	Day   shiftpad.Day
	Shift *shiftpad.Shift
	Take  shiftpad.Take
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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