account.ftl 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <#import "template.ftl" as layout>
  2. <@layout.mainLayout active='account' bodyClass='user'; section>
  3. <div class="row">
  4. <div class="col-md-10">
  5. <h2>${msg("editAccountHtmlTitle")}</h2>
  6. <p>${{account.username!''}}</p>
  7. </div>
  8. <div class="col-md-2 subtitle">
  9. <span class="subtitle"><span class="required">*</span> ${msg("requiredFields")}</span>
  10. </div>
  11. </div>
  12. <form action="${url.accountUrl}" class="form-horizontal" method="post">
  13. <input type="hidden" id="stateChecker" name="stateChecker" value="${stateChecker}">
  14. <#if !realm.registrationEmailAsUsername>
  15. <div class="form-group ${messagesPerField.printIfExists('username','has-error')}">
  16. <div class="col-sm-2 col-md-2">
  17. <label for="username" class="control-label">${msg("username")}</label> <#if realm.editUsernameAllowed><span class="required">*</span></#if>
  18. </div>
  19. <div class="col-sm-10 col-md-10">
  20. <input type="text" class="form-control" id="username" name="username" <#if !realm.editUsernameAllowed>disabled="disabled"</#if> value="${(account.username!'')}"/>
  21. </div>
  22. </div>
  23. </#if>
  24. <div class="form-group ${messagesPerField.printIfExists('email','has-error')}">
  25. <div class="col-sm-2 col-md-2">
  26. <label for="email" class="control-label">${msg("email")}</label> <span class="required">*</span>
  27. </div>
  28. <div class="col-sm-10 col-md-10">
  29. <input type="text" class="form-control" id="email" name="email" autofocus value="${(account.email!'')}"/>
  30. </div>
  31. </div>
  32. <div class="form-group ${messagesPerField.printIfExists('firstName','has-error')}">
  33. <div class="col-sm-2 col-md-2">
  34. <label for="firstName" class="control-label">${msg("firstName")}</label> <span class="required">*</span>
  35. </div>
  36. <div class="col-sm-10 col-md-10">
  37. <input type="text" class="form-control" id="firstName" name="firstName" value="${(account.firstName!'')}"/>
  38. </div>
  39. </div>
  40. <div class="form-group ${messagesPerField.printIfExists('lastName','has-error')}">
  41. <div class="col-sm-2 col-md-2">
  42. <label for="lastName" class="control-label">${msg("lastName")}</label> <span class="required">*</span>
  43. </div>
  44. <div class="col-sm-10 col-md-10">
  45. <input type="text" class="form-control" id="lastName" name="lastName" value="${(account.lastName!'')}"/>
  46. </div>
  47. </div>
  48. <div class="form-group ${messagesPerField.printIfExists('nickname','has-error')}">
  49. <div class="col-sm-2 col-md-2">
  50. <label for="nickname" class="control-label">${msg("nickname")}</label> <span class="required">*</span>
  51. </div>
  52. <div class="col-sm-10 col-md-10">
  53. <input type="text" class="form-control" id="nickname" name="nickname" value="${(account.nickname!'')}"/>
  54. </div>
  55. </div>
  56. <div class="form-group">
  57. <div id="kc-form-buttons" class="col-md-offset-2 col-md-10 submit">
  58. <div class="">
  59. <#if url.referrerURI??><a href="${url.referrerURI}">${kcSanitize(msg("backToApplication")?no_esc)}</a></#if>
  60. <button type="submit" class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonLargeClass!}" name="submitAction" value="Save">${msg("doSave")}</button>
  61. <button type="submit" class="${properties.kcButtonClass!} ${properties.kcButtonDefaultClass!} ${properties.kcButtonLargeClass!}" name="submitAction" value="Cancel">${msg("doCancel")}</button>
  62. </div>
  63. </div>
  64. </div>
  65. </form>
  66. </@layout.mainLayout>