{{define "profile_edit_content"}} {{with .UserProfile}} {{ range (index $.FormInfos "infos")}}
× {{ . }}
{{end}} {{ range (index $.FormErrors "errors")}}
× {{ . }}
{{end}}

{{ T "personal_info"}}

{{ range (index $.FormErrors "email")}}

{{ . }}

{{end}}
{{ range (index $.FormErrors "language")}}

{{ . }}

{{end}}
{{ if not (HasAdmin .)}}
{{ range (index $.FormErrors "current_password")}}

{{ . }}

{{end}}
{{end}}
{{ range (index $.FormErrors "password")}}

{{ . }}

{{end}}
{{ range (index $.FormErrors "password_confirmation")}}

{{ . }}

{{end}}
{{ if HasAdmin .}}

{{ T "moderation"}}

{{ range (index $.FormErrors "username")}}

{{ . }}

{{end}}
{{ range (index $.FormErrors "status")}}

{{ . }}

{{end}}
{{end}}
{{ if CurrentOrAdmin $.User .ID }}
{{ T "delete_account"}} {{end}} {{end}} {{end}}