{{template "org/header" .}}

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

{{template "base/alert" .}}
{{if .Team.IsOwnerTeam}} {{end}} {{ctx.Locale.Tr "org.team_name_helper"}}
{{ctx.Locale.Tr "org.team_desc_helper"}}
{{if .Team.IsOwnerTeam}}
{{if .Team.IsPrivate}} {{ctx.Locale.Tr "org.teams.visibility_private"}} {{else if .Team.IsLimited}} {{ctx.Locale.Tr "org.teams.visibility_limited"}} {{else if .Team.IsPublic}} {{ctx.Locale.Tr "org.teams.visibility_public"}} {{end}}
{{ctx.Locale.Tr "org.teams.owners_visibility_fixed"}}
{{end}} {{if not .Team.IsOwnerTeam}}

{{ctx.Locale.Tr "org.teams.visibility_private_helper"}}
{{ctx.Locale.Tr "org.teams.visibility_limited_helper"}}
{{ctx.Locale.Tr "org.teams.visibility_public_helper"}}

{{ctx.Locale.Tr "org.teams.specific_repositories_helper"}}
{{ctx.Locale.Tr "org.teams.all_repositories_helper"}}
{{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 "tw-ml-1"}} {{ctx.Locale.Tr "org.teams.read_access"}} {{svg "octicon-question" 16 "tw-ml-1"}} {{ctx.Locale.Tr "org.teams.write_access"}} {{svg "octicon-question" 16 "tw-ml-1"}}
{{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 .Team.IsOwnerTeam}} {{end}} {{end}}