package web
import "html/template"
func parsePage(content string) (*template.Template, error) {
return template.New("layout").Funcs(template.FuncMap{
"seq": func() []int { return []int{1, 2, 3, 4, 5} },
"progress": func(answered, total int) int { return answered * 100 / total },
}).Parse(layoutPage + content)
}
const layoutPage = `{{define "layout"}}
{{.Title}} · NextPath ArizonaNextPath Arizona
{{template "content" .}}{{end}}`
const registerPage = `{{define "content"}}Find a path that fits your life.
Start with your interests. We will add Arizona education and labor-market evidence without pretending to predict whether you will be hired.
Create your private profile
{{if .Error}}{{.Error}}
{{end}}Already registered? Sign in.
{{end}}`
const loginPage = `{{define "content"}}Continue exploring.
{{end}}`
const assessmentPage = `{{define "content"}}What sounds interesting, {{.Name}}?
Rate the activity itself—not whether you are already good at it.
{{.Answered}} of {{.Total}} answered
{{end}}`
const resultsPage = `{{define "content"}}Your current interest profile
Hello {{.Name}}. Your three-letter exploration code is {{.Result.Code}}.
{{range .Result.Scores}}{{.Dimension}}
{{.Percent}}% {{end}}Careers to explore next
Interest fit and Arizona market outlook are separate signals. These percentages are market indexes, not your probability of being hired.
{{range .Matches}}O*NET-SOC {{.Occupation.ONETSOC}} · interest fit {{.FitScore}}%
{{.Occupation.Title}}
{{.Occupation.Summary}}
{{.Reason}}
{{if .Outlook}}Arizona market evidence
Employability today: {{.Outlook.TodayEmployabilityPercent}}% · {{.Outlook.TodayLabel}}
Five-year outlook: {{.Outlook.FiveYearEmployabilityPercent}}% · {{.Outlook.FiveYearLabel}}
{{.Outlook.Evidence.ArizonaProjectedOpenings}} projected openings/year and {{.Outlook.Evidence.ActivePostings}} sampled current postings. Arizona exact-program completions: {{.Outlook.Evidence.ArizonaGraduateHistory}}; three-year average {{.Outlook.ThreeYearAverageGraduates}}. Demand-to-average-graduates ratio: {{.Outlook.AnnualDemandToGraduateRatio}}.
Official projected employment growth: {{.Outlook.Evidence.ProjectedEmploymentGrowthPercent}}%. Historical graduate trend: {{.Outlook.GraduateAnnualTrendPercent}}%/year; modeled five-year graduate supply: {{.Outlook.ProjectedFiveYearGraduates}}.
Today = 75% projected annual demand coverage + 25% sampled current posting coverage. Five-year = 75% projected demand coverage against trend-modeled supply + 25% official employment-growth signal. Supply trend is capped at ±10%/year; official growth from -5% to +20% maps to the 0–100 growth signal. {{.Outlook.Confidence}} evidence confidence. Snapshot {{.Outlook.Evidence.PostingsObservedAt.Format "Jan 2, 2006"}}.
{{else}}Arizona employability outlook unavailable. Complete source evidence has not been refreshed for this occupation; no percentage is estimated.
{{end}}Try it first: {{.Occupation.TryFirst}}
Review the O*NET occupation profile{{end}}How to use this
{{.Result.InstrumentNotice}}
Confidence: {{.Result.Confidence}}. This describes interests, not ability or identity. Market indexes are contextual evidence, not a hiring promise.
{{end}}`