Documentation
¶
Overview ¶
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
Index ¶
- func ConfigsTable(rows []entity.Config, actionBase string, editKey string, cancelHref string) templ.Component
- func JobDetailPage(j *entity.Job, configs []entity.Config, editConfigKey string, ...) templ.Component
- func JobStatusBadge(status entity.JobStatus, enabled bool) templ.Component
- func Layout(title string, user *entity.User) templ.Component
- func ToolDetailPage(t tool.Tool, configs []entity.Config, editKey string, user *entity.User, ...) templ.Component
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 Layout ¶
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.