{{/* Binding create/update form (/bindings/create, /bindings/update). Updates edit the staged grants as a textarea diff */}} {{ template "head" . }}
{{ template "drawer_toggle" }}
{{ template "page_progress" }} {{ block "op_form" . }}
{{ template "error_alert" .Data.Error }} {{ template "validation_alert" (dict "Validated" .Data.Validated "Value" .Data.Values.path "Suffix" "is ready to be created") }} {{ if and (eq .Data.Mode "update") (not .Data.Binding) }}

The binding could not be loaded

Back to bindings
{{ else }} {{ if eq .Data.Mode "update" }}
Source
{{ .Data.Binding.source }}
Base binding
{{ if .Data.Binding.derived_from }} {{ .Data.Binding.derived_from }} {{ else }} - {{ end }}
Service
{{ .Data.Binding.service_type }}{{ if .Data.Binding.service_name }}/{{ .Data.Binding.service_name }}{{ end }}
{{ end }}
{{ if eq .Data.Mode "create" }}

Unique path apps use to reference this binding

A service id (type/name) for a base binding, or an existing binding path to derive from

{{ else }} {{ end }}

One type:target grant per line, for derived bindings only. {{ if eq .Data.Mode "update" }} Removing a line deletes the grant. {{ end }}

{{ if eq .Data.Mode "create" }}
Config {{ template "kv_table" (dict "Field" "config" "AppPath" .AppPath "Prefix" "binding" "CanCreate" (index .Data.Perms "secret:create") "CanDelete" (index .Data.Perms "secret:delete") "Rows" .Data.Values.config_rows "KeyPlaceholder" "timeout" "ValuePlaceholder" "30" "AddLabel" "Add config entry") }}

Config overrides for this binding. The lock button encrypts a value into the secrets store and uses the secret reference instead

{{ end }}
Cancel {{ if eq .Data.Mode "create" }} {{ else }} {{ end }}
{{ end }}
{{ end }}
{{ template "sidebar" . }}