{{/* THE APP'S CONFIGURATION FIELDS — shared by the install wizard and the settings tab. ONE copy of this markup, rendered by two surfaces, because they are the same fields: the install page submits them, the settings tab shows what was submitted. `.AlreadyDeployed` is the single flag every branch below reads, exactly as it did when both surfaces were one page — that is what keeps the install form and the settings view from drifting apart. 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}}