{{/* Generic config sub page (/config/auth, /config/git, /config/system, /config/telemetry, /config/logging): settings fields with effective values, entry section tables (oauth/saml/git_auth) and the app_config key/value table. Driven by the CONFIG_PAGES descriptors in handler.star; all changes take effect immediately (no staging). HTMX partial: block page_content */}} {{ template "head" . }}
{{ template "drawer_toggle" }}
{{ block "page_content" . }} {{ $actionPath := printf "%s/config/%s/action" .AppPath .Data.Page }} {{ $canEdit := index .Data.Perms "config:update" }} {{ template "page_progress" }} {{ if .Data.Error }} {{ template "error_alert" .Data.Error }} {{ else }} {{ template "flash_alerts" .Data }} {{ if .Data.Settings }}

Settings

dynamic values override the static openrun.toml value; clear a field and save to reset
{{ range .Data.Settings }} {{ template "config_setting_row" (dict "Row" . "ActionPath" $actionPath "VersionId" $.Data.VersionId "CanEdit" $canEdit) }} {{ end }} {{ if .Data.AdvancedSettings }}
Additional settings
{{ range .Data.AdvancedSettings }} {{ template "config_setting_row" (dict "Row" . "ActionPath" $actionPath "VersionId" $.Data.VersionId "CanEdit" $canEdit) }} {{ end }}
{{ end }}
{{ end }} {{ range .Data.Sections }}

{{ .title }}

{{ .desc }} + Add entry
{{ $section := .section }} {{ if .entries }}
{{ range .entries }} {{ end }}
{{ .name }} {{ if eq .source "static" }} static {{ else if .overrides }} overrides static {{ else }} dynamic {{ end }} {{ .summary }}
{{ if eq .source "static" }}override{{ else }}edit{{ end }} {{ if ne .source "static" }} {{ end }}
{{ else }}

No entries configured

{{ end }}
{{ end }} {{ range .Data.KVs }}

{{ .title }}

{{ .help }}
{{ $kv := . }} {{ if .rows }}
{{ range .rows }} {{ end }}
Key Value Actions
{{ .key }} {{ .value }}
{{ else }}

No overrides configured

{{ end }}
{{ template "secret_input" (dict "Name" "value" "AppPath" $.AppPath "Prefix" .section "CanCreate" (index $.Data.Perms "secret:create") "CanDelete" (index $.Data.Perms "secret:delete") "Small" true "Placeholder" "value") }}
{{ end }} {{ end }} {{ end }}
{{ template "sidebar" . }}
{{/* config_setting_row: one settings field form. Page-local define (used only by this file's page_content block). Context dict: Row (the setting row), ActionPath, VersionId, CanEdit */}} {{ define "config_setting_row" }} {{ $row := .Row }} {{ $canEdit := .CanEdit }}
{{ $row.section }}.{{ $row.key }}
{{ if eq $row.kind "bool" }} {{ else if eq $row.kind "select" }} {{ else if eq $row.kind "textarea" }} {{ else }} {{ end }} {{ if $row.help }}

{{ $row.help }}

{{ end }}
{{ if $row.is_dynamic }} dynamic {{ end }} {{ if $row.is_dynamic }} {{ end }}
{{ end }}