code.ftl 628 B

12345678910111213141516171819
  1. <#import "template.ftl" as layout>
  2. <@layout.registrationLayout; section>
  3. <#if section = "header">
  4. <#if code.success>
  5. ${msg("codeSuccessTitle")}
  6. <#else>
  7. ${msg("codeErrorTitle", code.error)}
  8. </#if>
  9. <#elseif section = "form">
  10. <div id="kc-code">
  11. <#if code.success>
  12. <p>${msg("copyCodeInstruction")}</p>
  13. <input id="code" class="${properties.kcTextareaClass!}" value="${code.code}"/>
  14. <#else>
  15. <p id="error">${code.error}</p>
  16. </#if>
  17. </div>
  18. </#if>
  19. </@layout.registrationLayout>