{{/* THE APP'S CONFIGURATION FIELDS — the install wizard's form (deploy.html). v0.319.0: the settings tab no longer renders this — it shows the install answers as rows and the login as one panel (app_settings.html, app_login.go). The `.AlreadyDeployed` branches below are NOT dead: `/apps/{slug}/install` still answers for an app that is installed, and renders this form read-only. Their guards are what keep an installed app's secrets out of that page (TestDeployPage_DeployedApp_DoesNotCarryTheSecret, TestR709_AnInstalledAppsPasswordIsNotInThePage) and the parity case `deploy_installed` renders them. The secret rules are unchanged and load-bearing: R-254 — an INSTALLED app's `type: secret` value is not in the page; the eye fetches it. R-709 — nor is a `type: password` one. The PRE-DEPLOY hidden input is deliberate: the form must carry what it submits, so the value saved is the one the household was shown (controller/README §318). */}} {{define "app_deploy_fields"}} {{if .AutoFields}}

{{T "deploy.automatikusan_generalt_ertekek"}}

{{if .AlreadyDeployed}}

{{T "deploy.ezek_az_ertekek_automatikusan_jottek"}}

{{else}}

{{T "deploy.ezek_az_ertekek_a_telepitessel"}}

{{end}} {{$autoValues := .AutoFieldValues}} {{$stackName := .Stack.Name}} {{$isDeployed := .AlreadyDeployed}} {{range .AutoFields}} {{$val := index $autoValues .EnvVar}}
{{if $val}} {{if eq .Type "secret"}} {{if $isDeployed}}
{{else}}
{{end}} {{else}} {{end}} {{if and (not $isDeployed) (eq .Type "secret")}} {{end}} {{end}}
{{end}}
{{end}} {{if .UserFields}}

{{T "deploy.beallitasok"}}

{{range .UserFields}} {{/* v0.316.0: an INSTALLED app shows its address once, as the „Cim" row above these fields, so the disabled subdomain input saying the same thing is skipped. The install wizard still asks for it — this is the read-only view's duplicate only. */}} {{if and $.AlreadyDeployed (eq .Type "subdomain")}}{{continue}}{{end}}
{{if eq .Type "subdomain"}}
.{{$.Domain}}
{{if not $.AlreadyDeployed}} {{T "deploy.az_aldomain_telepites_utan_nem"}} {{end}} {{else if eq .Type "select"}} {{else if eq .Type "password"}}
{{- if $.AlreadyDeployed}} {{- /* R-709 (v0.280.0): an installed app's password is never in this page; the eye fetches it. */}} {{- if not (and $.RestoredLogins (index $.RestoredLogins .EnvVar))}} {{- end}} {{- else}} {{- end}}
{{if $.AlreadyDeployed}} {{if and $.RestoredLogins (index $.RestoredLogins .EnvVar)}}{{T "deploy.login_from_backup"}}{{else}}{{T "deploy.telepiteskor_beallitott_kezdeti_jelszo_h"}}{{end}} {{else}}
{{end}} {{else if eq .Type "boolean"}} {{else if eq .Type "path"}} {{if $.StoragePaths}}
{{T "deploy.a_kivalasztott_meghajton_az_alkalmazas"}}
{{else}} {{T "deploy.nincs_regisztralt_adattarolo_adja_meg"}} {{end}} {{else}} {{end}} {{if and .Description (ne .Type "subdomain")}} {{.Description}} {{end}}
{{end}}
{{end}} {{end}}