Commit 5dc217f9 authored by jbuechele's avatar jbuechele
Browse files

added error, success, info and warning messages

parent 31836c6e
......@@ -11,6 +11,28 @@
<div class="card fat">
<div class="card-body">
<h4 class="card-title">Forgot Password</h4>
<#if message?has_content>
<#if message.type = 'success'>
<div class="alert alert-success" role="alert">
${message.summary?no_esc}
</div>
</#if>
<#if message.type = 'warning'>
<div class="alert alert-warning" role="alert">
${message.summary?no_esc}
</div>
</#if>
<#if message.type = 'error'>
<div class="alert alert-danger" role="alert">
${message.summary?no_esc}
</div>
</#if>
<#if message.type = 'info'>
<div class="alert alert-info" role="alert">
${message.summary?no_esc}
</div>
</#if>
</#if>
<form action="${url.loginAction}" method="post">
<div class="form-group">
......
......@@ -11,6 +11,28 @@
<div class="card fat">
<div class="card-body">
<h4 class="card-title">${msg("loginOtpTitle")}</h4>
<#if message?has_content>
<#if message.type = 'success'>
<div class="alert alert-success" role="alert">
${message.summary?no_esc}
</div>
</#if>
<#if message.type = 'warning'>
<div class="alert alert-warning" role="alert">
${message.summary?no_esc}
</div>
</#if>
<#if message.type = 'error'>
<div class="alert alert-danger" role="alert">
${message.summary?no_esc}
</div>
</#if>
<#if message.type = 'info'>
<div class="alert alert-info" role="alert">
${message.summary?no_esc}
</div>
</#if>
</#if>
<form action="${url.loginAction}" method="post">
<div class="form-group">
......
......@@ -16,6 +16,28 @@
<div class="card fat">
<div class="card-body">
<h4 class="card-title">Login or <a href="${url.registrationUrl}">Sign up</a></h4>
<#if message?has_content>
<#if message.type = 'success'>
<div class="alert alert-success" role="alert">
${message.summary?no_esc}
</div>
</#if>
<#if message.type = 'warning'>
<div class="alert alert-warning" role="alert">
${message.summary?no_esc}
</div>
</#if>
<#if message.type = 'error'>
<div class="alert alert-danger" role="alert">
${message.summary?no_esc}
</div>
</#if>
<#if message.type = 'info'>
<div class="alert alert-info" role="alert">
${message.summary?no_esc}
</div>
</#if>
</#if>
<form id="kc-form-login" class="form ${properties.kcFormClass!}" action="${url.loginAction}" method="post">
<div class="form-group">
......
......@@ -15,6 +15,28 @@
<div class="card fat">
<div class="card-body">
<h4 class="card-title">Register</h4>
<#if message?has_content>
<#if message.type = 'success'>
<div class="alert alert-success" role="alert">
${message.summary?no_esc}
</div>
</#if>
<#if message.type = 'warning'>
<div class="alert alert-warning" role="alert">
${message.summary?no_esc}
</div>
</#if>
<#if message.type = 'error'>
<div class="alert alert-danger" role="alert">
${message.summary?no_esc}
</div>
</#if>
<#if message.type = 'info'>
<div class="alert alert-info" role="alert">
${message.summary?no_esc}
</div>
</#if>
</#if>
<form method="POST">
<div class="form-group">
......
......@@ -58,19 +58,6 @@
<div id="kc-content" class="${properties.kcContentClass!}">
<div id="kc-content-wrapper" class="${properties.kcContentWrapperClass!}">
<#if displayMessage && message?has_content>
<div class="${properties.kcFeedbackAreaClass!}">
<div class="alert alert-${message.type}">
<#if message.type = 'success'><span class="${properties.kcFeedbackSuccessIcon!}"></span></#if>
<#if message.type = 'warning'><span class="${properties.kcFeedbackWarningIcon!}"></span></#if>
<#if message.type = 'error'><span class="${properties.kcFeedbackErrorIcon!}"></span></#if>
<#if message.type = 'info'><span class="${properties.kcFeedbackInfoIcon!}"></span></#if>
<span class="kc-feedback-text">${message.summary?no_esc}</span>
</div>
</div>
</#if>
<div id="kc-form" class="${properties.kcFormAreaClass!}">
<div id="kc-form-wrapper" class="${properties.kcFormAreaWrapperClass!}">
<#nested "form">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment