mirror of
https://github.com/zitadel/zitadel.git
synced 2025-06-11 01:08:33 +00:00

* fix: import user, and label policy command side * feat: Import user and hide loginname suffix (#1464) * fix: import user * fix: label policy * fix: label policy * fix: label policy * fix: migrations * fix: migrations * fix: migrations * fix: label policy * loginSuffix in login ui * suffix * fix cursor on disabled user selection Co-authored-by: Livio Amstutz <livio.a@gmail.com> (cherry picked from commit 03ddb8fc388494d6ec99b1db9e16d16c28ee9649) * feat: Import user and hide loginname suffix (#1464) * fix: import user * fix: label policy * fix: label policy * fix: label policy * fix: migrations * fix: migrations * fix: migrations * fix: label policy * loginSuffix in login ui * suffix * fix cursor on disabled user selection Co-authored-by: Livio Amstutz <livio.a@gmail.com> (cherry picked from commit 03ddb8fc388494d6ec99b1db9e16d16c28ee9649) * feat: Import user and hide loginname suffix (#1464) * fix: import user * fix: label policy * fix: label policy * fix: label policy * fix: migrations * fix: migrations * fix: migrations * fix: label policy * loginSuffix in login ui * suffix * fix cursor on disabled user selection Co-authored-by: Livio Amstutz <livio.a@gmail.com> (cherry picked from commit 03ddb8fc388494d6ec99b1db9e16d16c28ee9649) * fix: label policy events * loginname placeholder * fix: tests * fix: tests * Update internal/command/iam_policy_label_model.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> Co-authored-by: Livio Amstutz <livio.a@gmail.com>
63 lines
2.4 KiB
HTML
63 lines
2.4 KiB
HTML
{{template "main-top" .}}
|
|
|
|
<div class="lgn-head">
|
|
{{if .Linking}}
|
|
<h1>{{t "UserSelection.TitleLinking"}}</h1>
|
|
<p>{{t "UserSelection.DescriptionLinking"}}{{if .OrgName}}
|
|
{{t "UserSelection.MustBeMemberOfOrg" "OrgName" .OrgName}}{{end}}</p>
|
|
{{else}}
|
|
<h1>{{t "UserSelection.Title"}}</h1>
|
|
<p>{{t "UserSelection.Description"}}{{if .OrgName}}
|
|
{{t "UserSelection.MustBeMemberOfOrg" "OrgName" .OrgName}}
|
|
{{end}}
|
|
</p>
|
|
{{end}}
|
|
</div>
|
|
|
|
|
|
<form action="{{ userSelectionUrl }}" method="POST">
|
|
|
|
{{ .CSRF }}
|
|
|
|
<input type="hidden" name="authRequestID" value="{{ .AuthReqID }}" />
|
|
|
|
<div class="lgn-account-selection">
|
|
{{ if .Users }}
|
|
{{ $displayLoginNameSuffix := and .OrgID (not .DisplayLoginNameSuffix)}}
|
|
{{ range $user := .Users }}
|
|
{{ $sessionState := (printf "UserSelection.SessionState%v" $user.UserSessionState) }}
|
|
<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">
|
|
<div class="lgn-avatar" displayname="{{$user.DisplayName}}">
|
|
<span class="initials">A</span>
|
|
</div>
|
|
</div>
|
|
<div class="lgn-names">
|
|
<p class="lgn-displayname">{{$user.DisplayName}}</p>
|
|
<p class="lgn-loginname">{{if and $displayLoginNameSuffix $user.SelectionPossible}}{{$user.UserName}}{{else}}{{$user.LoginName}}{{end}}</p>
|
|
<p class="lgn-session-state i{{$user.UserSessionState}}">{{t $sessionState}}</p>
|
|
</div>
|
|
<span class="fill-space"></span>
|
|
<i class="lgn-icon-angle-right-solid"></i>
|
|
</button>
|
|
{{ end }}
|
|
{{ end }}
|
|
<button type="submit" name="userID" value="0" class="lgn-account">
|
|
<div class="left">
|
|
<div class="lgn-avatar transparent">
|
|
<i class="lgn-icon-user-plus-solid"></i>
|
|
</div>
|
|
</div>
|
|
<div class="lgn-names">
|
|
<p>{{t "UserSelection.OtherUser"}}</p>
|
|
</div>
|
|
<span class="fill-space"></span>
|
|
<i class="lgn-icon-angle-right-solid"></i>
|
|
</button>
|
|
</div>
|
|
</form>
|
|
|
|
<script src="{{ resourceUrl "scripts/avatar.js" }}"></script>
|
|
|
|
{{template "main-bottom" .}} |