From 1cebe997740484d41e3a619af8d7b05504bf37a4 Mon Sep 17 00:00:00 2001 From: Viliam Rockai Date: Tue, 4 Feb 2014 15:52:06 +0100 Subject: [PATCH] KEYCLOAK-282 Login forms HTML refactoring --- .../main/resources/theme/login/base/error.ftl | 9 +- .../theme/login/base/login-config-totp.ftl | 47 ++--- .../theme/login/base/login-oauth-grant.ftl | 12 +- .../theme/login/base/login-reset-password.ftl | 14 +- .../resources/theme/login/base/login-totp.ftl | 11 +- .../login/base/login-update-password.ftl | 29 +-- .../theme/login/base/login-update-profile.ftl | 42 ++-- .../login/base/login-username-reminder.ftl | 19 +- .../theme/login/base/login-verify-email.ftl | 8 +- .../main/resources/theme/login/base/login.ftl | 35 ++-- .../resources/theme/login/base/register.ftl | 20 +- .../resources/theme/login/base/template.ftl | 18 +- .../login/keycloak/resources/css/styles.css | 7 +- .../theme/login/rcue/resources/css/forms.css | 4 +- .../rcue/resources/css/login-register.css | 181 +++++++++--------- 15 files changed, 189 insertions(+), 267 deletions(-) diff --git a/forms/common-themes/src/main/resources/theme/login/base/error.ftl b/forms/common-themes/src/main/resources/theme/login/base/error.ftl index 78b8284cbe..1988f600cc 100755 --- a/forms/common-themes/src/main/resources/theme/login/base/error.ftl +++ b/forms/common-themes/src/main/resources/theme/login/base/error.ftl @@ -2,22 +2,15 @@ <#import "template.ftl" as layout> <@layout.registrationLayout bodyClass=""; section> <#if section = "title"> - We're sorry... <#elseif section = "header"> - We're sorry ... <#elseif section = "form"> - +

Something happened and we could not process your request.

${message.summary}

- - <#elseif section = "info" > - -
- \ No newline at end of file diff --git a/forms/common-themes/src/main/resources/theme/login/base/login-config-totp.ftl b/forms/common-themes/src/main/resources/theme/login/base/login-config-totp.ftl index a3872aed8c..149f4ebacc 100755 --- a/forms/common-themes/src/main/resources/theme/login/base/login-config-totp.ftl +++ b/forms/common-themes/src/main/resources/theme/login/base/login-config-totp.ftl @@ -1,38 +1,31 @@ <#import "template.ftl" as layout> <@layout.registrationLayout bodyClass=""; section> <#if section = "title"> - Google Authenticator Setup <#elseif section = "header"> - Google Authenticator Setup <#elseif section = "form"> - -
-
    -
  1. -

    1Download the Google Authenticator app in your device.

    -
  2. -
  3. -

    2Create an account in Google Authenticator and scan the barcode or the provided key below.

    - Figure: Barcode - ${totp.totpSecretEncoded} -
  4. -
  5. -

    3Enter the one-time-password provided by Google Authenticator below and click Submit to finish the setup.

    -
    -
    - - -
    - -
    -
  6. -
-
- - <#elseif section = "info" > +
    +
  1. +

    1Download the Google Authenticator app in your device.

    +
  2. +
  3. +

    2Create an account in Google Authenticator and scan the barcode or the provided key below.

    + Figure: Barcode + ${totp.totpSecretEncoded} +
  4. +
  5. +

    3Enter the one-time-password provided by Google Authenticator below and click Submit to finish the setup.

    +
    +
    + + +
    + +
    +
  6. +
\ No newline at end of file diff --git a/forms/common-themes/src/main/resources/theme/login/base/login-oauth-grant.ftl b/forms/common-themes/src/main/resources/theme/login/base/login-oauth-grant.ftl index 389a934886..73f3047449 100755 --- a/forms/common-themes/src/main/resources/theme/login/base/login-oauth-grant.ftl +++ b/forms/common-themes/src/main/resources/theme/login/base/login-oauth-grant.ftl @@ -2,17 +2,15 @@ <#import "template.ftl" as layout> <@layout.registrationLayout bodyClass="oauth"; section> <#if section = "title"> - OAuth Grant <#elseif section = "header"> - Keycloak Central Login <#elseif section = "form"> -
+

${oauth.client} requests access to:

-
    +
      <#list oauth.realmRolesRequested as role>
    • <#if role.description??>${role.description}<#else>${role.name} @@ -36,11 +34,5 @@
- - <#elseif section = "info" > - -
-
- \ No newline at end of file diff --git a/forms/common-themes/src/main/resources/theme/login/base/login-reset-password.ftl b/forms/common-themes/src/main/resources/theme/login/base/login-reset-password.ftl index 226c04b38a..e00f3c3aa1 100755 --- a/forms/common-themes/src/main/resources/theme/login/base/login-reset-password.ftl +++ b/forms/common-themes/src/main/resources/theme/login/base/login-reset-password.ftl @@ -1,25 +1,23 @@ <#import "template.ftl" as layout> <@layout.registrationLayout bodyClass=""; section> <#if section = "title"> - ${rb.emailForgotHeader} <#elseif section = "header"> - ${rb.emailForgotHeader} <#elseif section = "form"> - -
+

${rb.emailInstruction}

-
- -
+
+ +
+ <#elseif section = "info" > -

« Back to Login

+

« Back to Login

\ No newline at end of file diff --git a/forms/common-themes/src/main/resources/theme/login/base/login-totp.ftl b/forms/common-themes/src/main/resources/theme/login/base/login-totp.ftl index 4416e57700..48c18bc3dc 100755 --- a/forms/common-themes/src/main/resources/theme/login/base/login-totp.ftl +++ b/forms/common-themes/src/main/resources/theme/login/base/login-totp.ftl @@ -2,20 +2,17 @@ <@layout.registrationLayout bodyClass=""; section> <#if section = "title"> - Log in to ${realm.name} <#elseif section = "header"> - Log in to ${realm.name} <#elseif section = "form"> - -
+ -
+
@@ -28,10 +25,10 @@ <#elseif section = "info"> - <#if realm.registrationAllowed> + \ No newline at end of file diff --git a/forms/common-themes/src/main/resources/theme/login/base/login-update-password.ftl b/forms/common-themes/src/main/resources/theme/login/base/login-update-password.ftl index 7738cd7573..922f801dcc 100755 --- a/forms/common-themes/src/main/resources/theme/login/base/login-update-password.ftl +++ b/forms/common-themes/src/main/resources/theme/login/base/login-update-password.ftl @@ -1,32 +1,21 @@ <#import "template.ftl" as layout> <@layout.registrationLayout bodyClass=""; section> <#if section = "title"> - ${rb.emailUpdateHeader} <#elseif section = "header"> - ${rb.emailUpdateHeader} <#elseif section = "form"> +
+
+ +
+
+ +
-
- -
- -
-
- -
- - - -
- - <#elseif section = "info" > - -
-
- + + \ No newline at end of file diff --git a/forms/common-themes/src/main/resources/theme/login/base/login-update-profile.ftl b/forms/common-themes/src/main/resources/theme/login/base/login-update-profile.ftl index a235ec3ac4..05e09faf65 100755 --- a/forms/common-themes/src/main/resources/theme/login/base/login-update-profile.ftl +++ b/forms/common-themes/src/main/resources/theme/login/base/login-update-profile.ftl @@ -1,37 +1,31 @@ <#import "template.ftl" as layout> <@layout.registrationLayout bodyClass=""; section> <#if section = "title"> - Update Account Information <#elseif section = "header"> - -

Update Account Information

+ Update Account Information <#elseif section = "feedback"> -