{{if not .WorkflowDispatchConfig}}
{{/* using "ui message" in "ui form" needs to force to display */}} {{if not .CurWorkflowExists}} {{ctx.Locale.Tr "actions.workflow.not_found" $.CurWorkflow}} {{else}} {{ctx.Locale.Tr "actions.workflow.has_no_workflow_dispatch" $.CurWorkflow}} {{end}}
{{else}} {{range $item := .WorkflowDispatchConfig.Inputs}}
{{if eq .Type "choice"}} {{/* htmx won't initialize the fomantic dropdown, so it is a standard "select" input */}} {{else if eq .Type "boolean"}} {{/* htmx doesn't trigger our JS code to attach fomantic label to checkbox, so here we use standard checkbox */}} {{else if eq .Type "number"}} {{else}} {{end}}
{{end}}
{{end}} {{range .workflows}} {{if and .ErrMsg (eq .Entry.Name $.CurWorkflow)}}
{{svg "octicon-alert" 16 "text red"}} {{.ErrMsg}}
{{end}} {{end}}