update-user-profile.ftl 1.6 KB

12345678910111213141516171819202122232425262728
  1. <#import "template.ftl" as layout>
  2. <#import "user-profile-commons.ftl" as userProfileCommons>
  3. <@layout.registrationLayout displayMessage=messagesPerField.exists('global') displayRequiredFields=true; section>
  4. <#if section = "header">
  5. ${msg("loginProfileTitle")}
  6. <#elseif section = "form">
  7. <form id="kc-update-profile-form" class="${properties.kcFormClass!}" action="${url.loginAction}" method="post">
  8. <@userProfileCommons.userProfileFormFields/>
  9. <div class="${properties.kcFormGroupClass!}">
  10. <div id="kc-form-options" class="${properties.kcFormOptionsClass!}">
  11. <div class="${properties.kcFormOptionsWrapperClass!}">
  12. </div>
  13. </div>
  14. <div id="kc-form-buttons" class="${properties.kcFormButtonsClass!}">
  15. <#if isAppInitiatedAction??>
  16. <input class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonLargeClass!}" type="submit" value="${msg("doSubmit")}" />
  17. <button class="${properties.kcButtonClass!} ${properties.kcButtonDefaultClass!} ${properties.kcButtonLargeClass!}" type="submit" name="cancel-aia" value="true" formnovalidate/>${msg("doCancel")}</button>
  18. <#else>
  19. <input class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonBlockClass!} ${properties.kcButtonLargeClass!}" type="submit" value="${msg("doSubmit")}" />
  20. </#if>
  21. </div>
  22. </div>
  23. </form>
  24. </#if>
  25. </@layout.registrationLayout>