Skip to content

Commit

Permalink
Merge pull request #17 from ahghatol/master
Browse files Browse the repository at this point in the history
Issue #257 fix: Added sunbird logo in theme
  • Loading branch information
shriharshs authored Nov 17, 2017
2 parents f002e94 + b0f2b54 commit b14fb7c
Showing 1 changed file with 28 additions and 11 deletions.
39 changes: 28 additions & 11 deletions keycloak/sms-provider/templates/sms-validation.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,50 @@
<#elseif section = "header">
${msg("loginTitleHtml",realm.name)}
<#elseif section = "form">
<form id="kc-totp-login-form" class="${properties.kcFormClass!}" action="${url.loginAction}" method="post">

<div class="ui centered grid container">
<div class="ten wide column signInGridAlign">
<div class="ui fluid card">

<div class="ui centered medium image signInLogo margin-top3em">
<img src="${url.resourcesPath}/img/logo.png">
</div>
<div class="content signin-contentPadding">
<form id="kc-totp-login-form" class="${properties.kcFormClass!} ui form pre-signin" action="${url.loginAction}" method="post">
<div class="${properties.kcFormGroupClass!}">
<div class="${properties.kcLabelWrapperClass!}">
<label for="totp" class="${properties.kcLabelClass!}">Enter the code we sent to your device</label>
<div class="field">
<div class="${properties.kcLabelWrapperClass!}">
<lable for="totp" class="${properties.kcLabelClass!}">Enter the code we sent to your device</label>
</div>
<div class="${properties.kcInputWrapperClass!}">
<input id="totp" name="smsCode" type="text" class="${properties.kcInputClass!}" />
</div>
</div>

<div class="${properties.kcInputWrapperClass!}">
<input id="totp" name="smsCode" type="text" class="${properties.kcInputClass!}" />
</div>
</div>

<div class="${properties.kcFormGroupClass!}">
<div id="kc-form-options" class="${properties.kcFormOptionsClass!}">
<div class="${properties.kcFormGroupClass!} margin-top2em">

<div id="kc-form-options" class="${properties.kcFormOptionsClass!}">
<div class="${properties.kcFormOptionsWrapperClass!}">
</div>
</div>

<div id="kc-form-buttons" class="${properties.kcFormButtonsClass!}">
<div class="${properties.kcFormButtonsWrapperClass!}">
<input class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonLargeClass!}" name="login" id="kc-login" type="submit" value="${msg("doLogIn")}"/>
<input class="${properties.kcButtonClass!} ${properties.kcButtonDefaultClass!} ${properties.kcButtonLargeClass!}" name="cancel" id="kc-cancel" type="submit" value="${msg("doCancel")}"/>
<button class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonLargeClass!} ui primary right floated button buttonResizeClass" name="login" id="kc-login" type="submit" value="${msg("doLogIn")}">${msg("doLogIn")}</button>
<button class="ui right floated button buttonResizeClass ${properties.kcButtonClass!} ${properties.kcButtonDefaultClass!} ${properties.kcButtonLargeClass!}" name="cancel" id="kc-cancel" type="submit" value="${msg("doCancel")}">${msg("doCancel")}</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>

<#if client?? && client.baseUrl?has_content>
<p><a id="backToApplication" href="${client.baseUrl}">${msg("backToApplication")}</a></p>
<p class="content signin-contentPadding"><a id="backToApplication" href="${client.baseUrl}">${msg("backToApplication")}</a></p>
</#if>
</#if>
</@layout.registrationLayout>

0 comments on commit b14fb7c

Please sign in to comment.