{{ template "header" .}} {{ template "settings_header" .}}

{{ .locale.Tr "settings.change-username" }}

{{ .csrfHtml }}
{{ if not .disableForm }}

{{if .hasPassword}} {{ .locale.Tr "settings.change-password" }} {{else}} {{ .locale.Tr "settings.create-password" }} {{end}}

{{if .hasPassword}} {{ .locale.Tr "settings.change-password-help" }} {{else}} {{ .locale.Tr "settings.create-password-help" }} {{end}}

{{ .csrfHtml }}
{{ end }}

{{ .locale.Tr "settings.email" }}

{{ .locale.Tr "settings.email-help" }}

{{ .csrfHtml }}
{{ if or .githubOauth .gitlabOauth .giteaOauth .oidcOauth }}

{{ .locale.Tr "settings.link-accounts" }}

{{ if .githubOauth }} {{ if .userLogged.GithubID }} {{ .locale.Tr "settings.unlink-github-account" }} {{ else }} {{ .locale.Tr "settings.link-github-account" }} {{ end }} {{ end }} {{ if .gitlabOauth }} {{ if .userLogged.GitlabID }} {{ .locale.Tr "settings.unlink-gitlab-account" }} {{ else }} {{ .locale.Tr "settings.link-gitlab-account" }} {{ end }} {{ end }} {{ if .giteaOauth }} {{ if .userLogged.GiteaID }} {{ .locale.Tr "settings.unlink-gitea-account" }} {{ else }} {{ .locale.Tr "settings.link-gitea-account" }} {{ end }} {{ end }} {{ if .oidcOauth }} {{ if .userLogged.OIDCID }} Unlink OpenID account {{ else }} Link OpenID account {{ end }} {{ end }}
{{ end }}

{{ .locale.Tr "settings.delete-account" }}

{{ .csrfHtml }}
{{ template "settings_footer" .}} {{ template "footer" .}}