login-x509-info.ftl 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <#import "template.ftl" as layout>
  2. <@layout.registrationLayout; section>
  3. <#if section = "header">
  4. ${msg("doLogIn")}
  5. <#elseif section = "form">
  6. <form id="kc-x509-login-info" class="${properties.kcFormClass!}" action="${url.loginAction}" method="post">
  7. <div class="${properties.kcFormGroupClass!}">
  8. <div class="${properties.kcLabelWrapperClass!}">
  9. <label for="certificate_subjectDN" class="${properties.kcLabelClass!}">${msg("clientCertificate")}</label>
  10. </div>
  11. <#if x509.formData.subjectDN??>
  12. <div class="${properties.kcLabelWrapperClass!}">
  13. <label id="certificate_subjectDN" class="${properties.kcLabelClass!}">${(x509.formData.subjectDN!"")}</label>
  14. </div>
  15. <#else>
  16. <div class="${properties.kcLabelWrapperClass!}">
  17. <label id="certificate_subjectDN" class="${properties.kcLabelClass!}">${msg("noCertificate")}</label>
  18. </div>
  19. </#if>
  20. </div>
  21. <div class="${properties.kcFormGroupClass!}">
  22. <#if x509.formData.isUserEnabled??>
  23. <div class="${properties.kcLabelWrapperClass!}">
  24. <label for="username" class="${properties.kcLabelClass!}">${msg("doX509Login")}</label>
  25. </div>
  26. <div class="${properties.kcLabelWrapperClass!}">
  27. <label id="username" class="${properties.kcLabelClass!}">${(x509.formData.username!'')}</label>
  28. </div>
  29. </#if>
  30. </div>
  31. <div class="${properties.kcFormGroupClass!}">
  32. <div id="kc-form-options" class="${properties.kcFormOptionsClass!}">
  33. <div class="${properties.kcFormOptionsWrapperClass!}">
  34. </div>
  35. </div>
  36. <div id="kc-form-buttons" class="${properties.kcFormButtonsClass!}">
  37. <div class="${properties.kcFormButtonsWrapperClass!}">
  38. <input class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonLargeClass!}" name="login" id="kc-login" type="submit" value="${msg("doContinue")}"/>
  39. <#if x509.formData.isUserEnabled??>
  40. <input class="${properties.kcButtonClass!} ${properties.kcButtonDefaultClass!} ${properties.kcButtonLargeClass!}" name="cancel" id="kc-cancel" type="submit" value="${msg("doIgnore")}"/>
  41. </#if>
  42. </div>
  43. </div>
  44. </div>
  45. </form>
  46. </#if>
  47. </@layout.registrationLayout>