From df02ce4d3665cf7e7ce03cabc62e8d23384240a8 Mon Sep 17 00:00:00 2001 From: vrockai Date: Fri, 27 Sep 2013 12:00:46 +0200 Subject: [PATCH] KEYCLOAK-74 deprecated and invalid template fixes --- .../resources/forms/theme/default/account.ftl | 6 +-- .../theme/default/css/login-register.css | 38 +++++++++---------- .../forms/theme/default/login-config-totp.ftl | 4 +- .../theme/default/login-reset-password.ftl | 4 +- .../forms/theme/default/login-totp.ftl | 4 +- .../theme/default/login-update-password.ftl | 4 +- .../theme/default/login-update-profile.ftl | 10 ++--- .../theme/default/login-verify-email.ftl | 4 +- .../resources/forms/theme/default/login.ftl | 10 ++--- .../forms/theme/default/password.ftl | 4 +- .../forms/theme/default/register.ftl | 6 +-- .../theme/default/template-login-action.ftl | 12 +++--- .../forms/theme/default/template-login.ftl | 16 ++++---- .../forms/theme/default/template-main.ftl | 1 + .../resources/forms/theme/default/totp.ftl | 2 +- 15 files changed, 63 insertions(+), 62 deletions(-) diff --git a/forms/src/main/resources/META-INF/resources/forms/theme/default/account.ftl b/forms/src/main/resources/META-INF/resources/forms/theme/default/account.ftl index f03d64aad0..e5a0a6e2ab 100755 --- a/forms/src/main/resources/META-INF/resources/forms/theme/default/account.ftl +++ b/forms/src/main/resources/META-INF/resources/forms/theme/default/account.ftl @@ -10,7 +10,7 @@
- +
@@ -18,11 +18,11 @@
- * + *
- * + *
diff --git a/forms/src/main/resources/META-INF/resources/forms/theme/default/css/login-register.css b/forms/src/main/resources/META-INF/resources/forms/theme/default/css/login-register.css index 36dec13b48..88784e0dee 100644 --- a/forms/src/main/resources/META-INF/resources/forms/theme/default/css/login-register.css +++ b/forms/src/main/resources/META-INF/resources/forms/theme/default/css/login-register.css @@ -48,16 +48,16 @@ body { width: 100%; min-width: 120em; } -.rcue-login-register .background-area section { +.rcue-login-register .background-area .section { float: left; padding: 1.5em 4.5em 1.5em 4.6em; width: auto; position: relative; } -.rcue-login-register .background-area section h3 { +.rcue-login-register .background-area .section h3 { display: none; } -.rcue-login-register .background-area section:first-child { +.rcue-login-register .background-area .section:first-child { padding-right: 4.5em; } .rcue-login-register .form-area { @@ -69,12 +69,12 @@ body { background-image: url(img/login-register-social-separators.svg); background-position: 39.6em center; } -.rcue-login-register section > p { +.rcue-login-register .section > p { font-size: 1.3em; margin-bottom: 1.53846153846154em; line-height: 1.3em; } -.rcue-login-register section.app-form { +.rcue-login-register .section.app-form { padding-left: 0; position: relative; } @@ -147,10 +147,10 @@ body { .rcue-login-register input.error[type="email"] { background-color: #F8E7E7; } -.rcue-login-register section.social-login > span { +.rcue-login-register .section.social-login > span { display: none; } -.rcue-login-register section.social-login > p { +.rcue-login-register .section.social-login > p { float: left; margin-top: 0.28571428571429em; /* 14px */ @@ -159,28 +159,28 @@ body { /* 95px */ } -.rcue-login-register section.social-login > ul { +.rcue-login-register .section.social-login > ul { float: left; } -.rcue-login-register section.social-login li { +.rcue-login-register .section.social-login li { margin-bottom: 2em; } -.rcue-login-register section.social-login li:last-child { +.rcue-login-register .section.social-login li:last-child { margin-bottom: 0; } -.rcue-login-register section.info-area { +.rcue-login-register .section.info-area { padding-right: 0; } -.rcue-login-register section.info-area p, -.rcue-login-register section.info-area li { +.rcue-login-register .section.info-area p, +.rcue-login-register .section.info-area li { font-size: 1.4em; margin-bottom: 1.64285714285714em; } -.rcue-login-register section.info-area li { +.rcue-login-register .section.info-area li { color: #999; margin-bottom: 1em; } -.rcue-login-register section.info-area li:last-child { +.rcue-login-register .section.info-area li:last-child { margin-bottom: 0; } @media screen and (min-width: 1280px) { @@ -284,11 +284,11 @@ a.zocial:before { color: #0099D3; } /* Forgot Password page */ -.rcue-login-register.reset .background-area section { +.rcue-login-register.reset .background-area .section { padding-top: 0; padding-bottom: 0; } -.rcue-login-register.reset .background-area section.app-form { +.rcue-login-register.reset .background-area .section.app-form { width: 43.2em; } .rcue-login-register.reset .feedback { @@ -342,10 +342,10 @@ a.zocial:before { position: inherit; margin-top: 16em; } -.rcue-login-register.email .background-area section { +.rcue-login-register.email .background-area .section { width: 41.2em; } -.rcue-login-register.email .background-area section.email { +.rcue-login-register.email .background-area .section.email { width: 45.8em; } .rcue-login-register.email label { diff --git a/forms/src/main/resources/META-INF/resources/forms/theme/default/login-config-totp.ftl b/forms/src/main/resources/META-INF/resources/forms/theme/default/login-config-totp.ftl index bceee99dc0..82f82f36fd 100755 --- a/forms/src/main/resources/META-INF/resources/forms/theme/default/login-config-totp.ftl +++ b/forms/src/main/resources/META-INF/resources/forms/theme/default/login-config-totp.ftl @@ -10,7 +10,7 @@ <#elseif section = "form"> -
+

To setup Google Authenticator

    @@ -35,7 +35,7 @@ <#elseif section = "info" > -
    +
    diff --git a/forms/src/main/resources/META-INF/resources/forms/theme/default/login-reset-password.ftl b/forms/src/main/resources/META-INF/resources/forms/theme/default/login-reset-password.ftl index c315a35ac0..6aaddd7b8c 100755 --- a/forms/src/main/resources/META-INF/resources/forms/theme/default/login-reset-password.ftl +++ b/forms/src/main/resources/META-INF/resources/forms/theme/default/login-reset-password.ftl @@ -10,7 +10,7 @@ <#elseif section = "form"> -
    +
    @@ -27,7 +27,7 @@ <#elseif section = "info" > -
    +
    diff --git a/forms/src/main/resources/META-INF/resources/forms/theme/default/login-totp.ftl b/forms/src/main/resources/META-INF/resources/forms/theme/default/login-totp.ftl index 88e61a0369..e45628490c 100755 --- a/forms/src/main/resources/META-INF/resources/forms/theme/default/login-totp.ftl +++ b/forms/src/main/resources/META-INF/resources/forms/theme/default/login-totp.ftl @@ -12,8 +12,8 @@ <#elseif section = "form"> - - + +
    diff --git a/forms/src/main/resources/META-INF/resources/forms/theme/default/login-update-password.ftl b/forms/src/main/resources/META-INF/resources/forms/theme/default/login-update-password.ftl index 51954e8b38..7a13ecc978 100755 --- a/forms/src/main/resources/META-INF/resources/forms/theme/default/login-update-password.ftl +++ b/forms/src/main/resources/META-INF/resources/forms/theme/default/login-update-password.ftl @@ -10,7 +10,7 @@ <#elseif section = "form"> -
    +
    @@ -27,7 +27,7 @@ <#elseif section = "info" > -
    +
    diff --git a/forms/src/main/resources/META-INF/resources/forms/theme/default/login-update-profile.ftl b/forms/src/main/resources/META-INF/resources/forms/theme/default/login-update-profile.ftl index 237faf4a15..06a06af6cf 100755 --- a/forms/src/main/resources/META-INF/resources/forms/theme/default/login-update-profile.ftl +++ b/forms/src/main/resources/META-INF/resources/forms/theme/default/login-update-profile.ftl @@ -10,19 +10,19 @@ <#elseif section = "form"> -
    +
    - +
    - +
    - +
    @@ -34,7 +34,7 @@ <#elseif section = "info" > -
    +
    diff --git a/forms/src/main/resources/META-INF/resources/forms/theme/default/login-verify-email.ftl b/forms/src/main/resources/META-INF/resources/forms/theme/default/login-verify-email.ftl index bd2b14114c..d6c62b00af 100755 --- a/forms/src/main/resources/META-INF/resources/forms/theme/default/login-verify-email.ftl +++ b/forms/src/main/resources/META-INF/resources/forms/theme/default/login-verify-email.ftl @@ -10,14 +10,14 @@ <#elseif section = "form"> -
    +
    An email with instructions to verify your email address has been sent to you. If you don't receive this email, click here to re-send the email.
    <#elseif section = "info" > -
    +
    diff --git a/forms/src/main/resources/META-INF/resources/forms/theme/default/login.ftl b/forms/src/main/resources/META-INF/resources/forms/theme/default/login.ftl index ffdf39454e..24c4cce7cf 100755 --- a/forms/src/main/resources/META-INF/resources/forms/theme/default/login.ftl +++ b/forms/src/main/resources/META-INF/resources/forms/theme/default/login.ftl @@ -6,12 +6,12 @@ <#elseif section = "header"> - Log in to ${(realm.name)?default('')} + Log in to ${(realm.name)!''} <#elseif section = "form"> -
    - +
    +
    @@ -32,9 +32,9 @@ <#elseif section = "info" > -
    +
    <#if realm.registrationAllowed> -

    ${rb.getString('noAccount')} ${rb.getString('register')}.

    +

    ${rb.getString('noAccount')} ${rb.getString('register')}.

    Reset password diff --git a/forms/src/main/resources/META-INF/resources/forms/theme/default/password.ftl b/forms/src/main/resources/META-INF/resources/forms/theme/default/password.ftl index 3b8b3d48cd..b2ae5294ce 100755 --- a/forms/src/main/resources/META-INF/resources/forms/theme/default/password.ftl +++ b/forms/src/main/resources/META-INF/resources/forms/theme/default/password.ftl @@ -14,11 +14,11 @@
    - +
    - +
    diff --git a/forms/src/main/resources/META-INF/resources/forms/theme/default/register.ftl b/forms/src/main/resources/META-INF/resources/forms/theme/default/register.ftl index 5bf3f47278..b418da1d3e 100755 --- a/forms/src/main/resources/META-INF/resources/forms/theme/default/register.ftl +++ b/forms/src/main/resources/META-INF/resources/forms/theme/default/register.ftl @@ -15,15 +15,15 @@

    ${rb.getString('allRequired')}

    - +
    - +
    - +
    diff --git a/forms/src/main/resources/META-INF/resources/forms/theme/default/template-login-action.ftl b/forms/src/main/resources/META-INF/resources/forms/theme/default/template-login-action.ftl index b0762b6b6e..4f20710faf 100644 --- a/forms/src/main/resources/META-INF/resources/forms/theme/default/template-login-action.ftl +++ b/forms/src/main/resources/META-INF/resources/forms/theme/default/template-login-action.ftl @@ -1,6 +1,6 @@ <#macro registrationLayout bodyClass> - + @@ -8,7 +8,7 @@ <#nested "title"> -