{{printf (copy "project_setup.heading") .Name .Repository}}
{{.Why}}
{{if $.CanAnswer}} {{else}}{{copy (printf "project_setup.%s" .State)}}
{{if .ProjectID}}{{.Name}}{{end}}{{end}} {{end}} {{if eq .Kind "task"}}{{with .Work}}{{template "chat-task" .}}{{end}} {{with .Plan}}{{if and .CanEdit (ne .Task.ApprovalRevision .Plan.Revision)}}{{end}}{{end}}{{end}} {{with .NativeQuestion}} {{if not .Fields}}{{.Text}}{{else if eq (len .Fields) 1}}{{(index .Fields 0).Prompt}}
{{end}} {{if ne .State "pending"}}{{copy (printf "question.%s" .State)}}{{end}} {{if and .CanAnswer (eq (len .Fields) 1)}}{{$q := .}}{{range (index .Fields 0).Options}}{{end}}{{end}} {{if .CanAnswer}}{{end}} {{end}} {{with .Question}}{{.Prompt}}
{{if ne .State "pending"}}{{copy (printf "question.%s" .State)}}{{end}} {{if $.CanAnswer}} {{end}} {{end}} {{if eq .Kind "coordinator"}} {{if .WaitingTaskURL}}{{copy "coordinator.waiting_label"}} {{.WaitingLabel}}
{{else}}{{copy .CopyKey}}
{{end}} {{if or (eq .CopyKey "coordinator.budget_needed") (eq .CopyKey "coordinator.waiting_connection")}}{{copy "coordinator.settings"}}{{end}} {{if .ActionKeys}}{{end}} {{end}} {{if eq .Kind "suggest_playbook"}}{{copy "playbooks.save_suggestion"}}{{end}} {{if eq .Kind "suggest_preference"}}{{copy "preferences.title"}}{{end}}