keycloak-memoizeit

KEYCLOAK-74 error page placeholder

9/27/2013 12:49:36 PM

Details

diff --git a/forms/src/main/resources/META-INF/resources/forms/error.ftl b/forms/src/main/resources/META-INF/resources/forms/error.ftl
index 3dd69c9..2b28cb7 100644
--- a/forms/src/main/resources/META-INF/resources/forms/error.ftl
+++ b/forms/src/main/resources/META-INF/resources/forms/error.ftl
@@ -1 +1 @@
-template not found
\ No newline at end of file
+<#include "./theme/" + template.theme + "/error.ftl">
\ No newline at end of file
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 88784e0..343f60d 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
@@ -294,6 +294,19 @@ a.zocial:before {
 .rcue-login-register.reset .feedback {
   left: 35.7em;
 }
+
+.rcue-login-register .background-area p.instruction.instruction.second {
+    color: #999999;
+}
+.rcue-login-register .background-area p.instruction + .instruction.second {
+    margin-top: -1.23077em;
+}
+
+.rcue-login-register .background-area a.link-right {
+    float: right;
+    font-size: 1.3em;
+}
+
 .rcue-login-register.reset .form-area {
   background-image: none;
 }
diff --git a/forms/src/main/resources/META-INF/resources/forms/theme/default/error.ftl b/forms/src/main/resources/META-INF/resources/forms/theme/default/error.ftl
new file mode 100755
index 0000000..a7f1f5b
--- /dev/null
+++ b/forms/src/main/resources/META-INF/resources/forms/theme/default/error.ftl
@@ -0,0 +1,24 @@
+<#-- TODO: Only a placeholder, implementation needed -->
+<#import "template-login-action.ftl" as layout>
+<@layout.registrationLayout bodyClass="reset"; section>
+    <#if section = "title">
+
+    We're sorry...
+
+    <#elseif section = "header">
+
+    We're <strong>sorry</strong> ...
+
+    <#elseif section = "form">
+
+        <p class="instruction">Something happened and we could not process your request.</p>
+        <p class="instruction second">Please make sure the URL you entered is correct.</p>
+        <a href="saas-login.html" class="link-right">Go to the homepage »</a>
+
+    <#elseif section = "info" >
+
+    <div id="info">
+    </div>
+
+    </#if>
+</@layout.registrationLayout>
\ No newline at end of file