Skip to content

Commit

Permalink
fix: account selection (#2926)
Browse files Browse the repository at this point in the history
* fix: account selection

* fix: styling of disabled accounts

* fix: styling of disabled accounts

* fix: don't show disabled accounts

* fix: remove unused css

* fix: remove unused css

* fix: remove unused css
  • Loading branch information
hifabienne committed Jan 6, 2022
1 parent aa2a184 commit e624047
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/ui/login/static/templates/select_user.html
Expand Up @@ -24,8 +24,10 @@ <h1>{{t "SelectAccount.Title"}}</h1>
<div class="lgn-account-selection">
{{ if .Users }}
{{ $displayLoginNameSuffix := and .OrgID (not .DisplayLoginNameSuffix)}}
{{ $orgName := .OrgName }}
{{ range $user := .Users }}
{{ $sessionState := (printf "SelectAccount.SessionState%v" $user.UserSessionState) }}
{{if $user.SelectionPossible}}
<button type="submit" name="userID" value="{{$user.UserID}}" class="lgn-account"
{{if not $user.SelectionPossible}}disabled title="{{t "Errors.User.NotAllowedOrg"}}"{{end}}>
<div class="left">
Expand All @@ -47,6 +49,7 @@ <h1>{{t "SelectAccount.Title"}}</h1>
</button>
{{ end }}
{{ end }}
{{ end }}
<button type="submit" name="userID" value="0" class="lgn-account">
<div class="left">
<div class="lgn-avatar transparent">
Expand Down

0 comments on commit e624047

Please sign in to comment.