{{template "org/header" .}}
{{.CsrfTokenHtml}}

{{if .PageIsOrgTeamsNew}}{{ctx.Locale.Tr "org.create_new_team"}}{{else}}{{ctx.Locale.Tr "org.teams.settings"}}{{end}}

{{template "base/alert" .}}
{{if eq .Team.LowerName "owners"}} {{end}} {{ctx.Locale.Tr "org.team_name_helper"}}
{{ctx.Locale.Tr "org.team_desc_helper"}}
{{if not (eq .Team.LowerName "owners")}}

{{ctx.Locale.Tr "org.teams.specific_repositories_helper" | SanitizeHTML}}
{{ctx.Locale.Tr "org.teams.all_repositories_helper" | SanitizeHTML}}
{{ctx.Locale.Tr "org.teams.can_create_org_repo_helper"}}

{{ctx.Locale.Tr "org.teams.general_access_helper"}}
{{ctx.Locale.Tr "org.teams.admin_access_helper"}}
{{range $t, $unit := $.Units}} {{if ge $unit.MaxPerm 2}} {{end}} {{end}}
{{ctx.Locale.Tr "units.unit"}} {{ctx.Locale.Tr "org.teams.none_access"}} {{svg "octicon-question" 16 "gt-ml-2"}} {{ctx.Locale.Tr "org.teams.read_access"}} {{svg "octicon-question" 16 "gt-ml-2"}} {{ctx.Locale.Tr "org.teams.write_access"}} {{svg "octicon-question" 16 "gt-ml-2"}}
{{ctx.Locale.Tr $unit.DescKey}}
{{range $t, $unit := $.Units}} {{if lt $unit.MaxPerm 2}}
{{ctx.Locale.Tr $unit.DescKey}}
{{end}} {{end}}
{{end}}
{{if .PageIsOrgTeamsNew}} {{else}} {{if not (eq .Team.LowerName "owners")}} {{end}} {{end}}