{{- /* artifactlock.tmpl ~ Buttons to launch the artifact editor modals. */ -}} {{- define "artifactlock" }} {{- $locked := index . "editor"}} {{- if ne true $locked}}{{/* render nothing */}}{{else}} {{- $alertCls := "w-100 my-0 text-center"}} {{- $forApproval := index . "forApproval"}} {{- $disableRecord := index . "disableRecord"}}
❌ Record is disabled and hidden from public access. ❌
{{- else if $forApproval}}
❓ This new record is hidden from public access. ❓
{{- /* todo: create a htmx element to approve and refresh */}}
If the data and images are correct, it can be approved.
Record is visible to the public.
{{- end}} {{- /* todo: alerts for obvious issues, no cat/platform/releasers/etc */}}