view

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigsTable

func ConfigsTable(rows []entity.Config, actionBase string, editKey string, cancelHref string) templ.Component

ConfigsTable renders an editable list of configs owned by a single scope (app variables, a tool, or a job). actionBase is the route prefix where edits POST — e.g. "/manager/variables" or "/manager/tools/foo/configs". Rows submit to {actionBase}/{key} and regenerate via {actionBase}/{key}/regenerate. editKey selects which row is currently in edit mode; cancelHref is where Cancel links.

func JobDetailPage

func JobDetailPage(j *entity.Job, configs []entity.Config, editConfigKey string, user *entity.User, errMsg string, bannerEntry *ui.MissingEntry) templ.Component

JobDetailPage is the one-stop admin view for a single job: settings (schedule, enabled, max runs) and runtime configs. bannerEntry is non-nil when this job still has Required configs empty; the ScopedSetupBanner above the body nudges the admin.

func JobStatusBadge

func JobStatusBadge(status entity.JobStatus, enabled bool) templ.Component

func Layout

func Layout(title string, user *entity.User) templ.Component

Layout is the shared chrome (nav + tabs + dark toggle + user menu) for every manager screen. Pages wrap their <main> body as children.

func ToolDetailPage

func ToolDetailPage(t tool.Tool, configs []entity.Config, editKey string, user *entity.User, bannerEntry *ui.MissingEntry) templ.Component

ToolDetailPage is the per-tool config editor. No schedule, no runs — just the reusable configs table scoped to Meta.Key. bannerEntry is non-nil when this tool still has Required configs empty; the ScopedSetupBanner above the body nudges the admin to fill them in.

Types

This section is empty.

Directories

Path Synopsis
templ: version: v0.3.1001
templ: version: v0.3.1001

Jump to

Keyboard shortcuts

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