|
2 | 2 | <div class="login-or-register-oidc-form__container">
|
3 | 3 | <div class="login-or-register-oidc-form__register-container">
|
4 | 4 | <h2 class="login-or-register-oidc-form__subtitle">{{t "pages.login-or-register-oidc.register-form.title"}}</h2>
|
5 |
| - <div> |
6 |
| - <p class="login-or-register-oidc-form__description"> |
7 |
| - {{! template-lint-disable "no-bare-strings" }} |
8 |
| - {{t "pages.login-or-register-oidc.register-form.description"}} |
9 |
| - <em>{{this.identityProviderOrganizationName}}</em> : |
10 |
| - </p> |
11 |
| - <div class="login-or-register-oidc-form__information"> |
12 |
| - <ul> |
13 |
| - <li>{{t "pages.login-or-register-oidc.register-form.information.given-name" givenName=this.givenName}}</li> |
14 |
| - <li>{{t "pages.login-or-register-oidc.register-form.information.family-name" familyName=this.familyName}}</li> |
15 |
| - </ul> |
| 5 | + {{#if this.userClaimsToDisplay.length}} |
| 6 | + <div> |
| 7 | + <p class="login-or-register-oidc-form__description"> |
| 8 | + {{! template-lint-disable "no-bare-strings" }} |
| 9 | + {{t "pages.login-or-register-oidc.register-form.description"}} |
| 10 | + <em>{{this.identityProviderOrganizationName}}</em> : |
| 11 | + </p> |
| 12 | + <div class="login-or-register-oidc-form__information"> |
| 13 | + <ul> |
| 14 | + {{#each this.userClaimsToDisplay as |userClaimToDisplay|}} |
| 15 | + <li>{{userClaimToDisplay}}</li> |
| 16 | + {{/each}} |
| 17 | + </ul> |
| 18 | + </div> |
| 19 | + </div> |
| 20 | + <div class="login-or-register-oidc-form__cgu-container"> |
| 21 | + <PixCheckbox {{on "change" this.onChange}}> |
| 22 | + <:label>{{t |
| 23 | + "common.cgu.message" |
| 24 | + cguUrl=this.cguUrl |
| 25 | + dataProtectionPolicyUrl=this.dataProtectionPolicyUrl |
| 26 | + htmlSafe=true |
| 27 | + }}</:label> |
| 28 | + </PixCheckbox> |
16 | 29 | </div>
|
17 |
| - </div> |
18 |
| - <div class="login-or-register-oidc-form__cgu-container"> |
19 |
| - <PixCheckbox {{on "change" this.onChange}}> |
20 |
| - <:label>{{t |
21 |
| - "common.cgu.message" |
22 |
| - cguUrl=this.cguUrl |
23 |
| - dataProtectionPolicyUrl=this.dataProtectionPolicyUrl |
24 |
| - htmlSafe=true |
25 |
| - }}</:label> |
26 |
| - </PixCheckbox> |
27 |
| - </div> |
28 | 30 |
|
29 |
| - {{#if this.registerErrorMessage}} |
| 31 | + {{#if this.registerErrorMessage}} |
| 32 | + <PixNotificationAlert @type="error" class="login-or-register-oidc-form__cgu-error"> |
| 33 | + {{this.registerErrorMessage}} |
| 34 | + </PixNotificationAlert> |
| 35 | + {{/if}} |
| 36 | + |
| 37 | + <PixButton @type="submit" @triggerAction={{this.register}} @isLoading={{this.isRegisterLoading}}> |
| 38 | + {{t "pages.login-or-register-oidc.register-form.button"}} |
| 39 | + </PixButton> |
| 40 | + {{else if this.userClaimsErrorMessage}} |
30 | 41 | <PixNotificationAlert @type="error" class="login-or-register-oidc-form__cgu-error">
|
31 |
| - {{this.registerErrorMessage}} |
| 42 | + {{this.userClaimsErrorMessage}} |
32 | 43 | </PixNotificationAlert>
|
33 | 44 | {{/if}}
|
34 |
| - |
35 |
| - <PixButton @type="submit" @triggerAction={{this.register}} @isLoading={{this.isRegisterLoading}}> |
36 |
| - {{t "pages.login-or-register-oidc.register-form.button"}} |
37 |
| - </PixButton> |
38 | 45 | </div>
|
39 | 46 |
|
40 | 47 | <div class="login-or-register-oidc-form__divider"></div>
|
|
0 commit comments