account.ftl 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. </div>
  7. <div class="col-md-2 subtitle">
  8. <span class="subtitle"><span class="required">*</span> ${msg("requiredFields")}</span>
  9. </div>
  10. </div>
  11. <form action="${url.accountUrl}" class="form-horizontal" method="post">
  12. <input type="hidden" id="stateChecker" name="stateChecker" value="${stateChecker}">
  13. <#if !realm.registrationEmailAsUsername>
  14. <div class="form-group ${messagesPerField.printIfExists('username','has-error')}">
  15. <div class="col-sm-2 col-md-2">
  16. <label for="username" class="control-label">${msg("username")}</label> <#if realm.editUsernameAllowed><span class="required">*</span></#if>
  17. </div>
  18. <div class="col-sm-10 col-md-10">
  19. <input type="text" class="form-control" id="username" name="username" <#if !realm.editUsernameAllowed>disabled="disabled"</#if> value="${(account.username!'')}"/>
  20. </div>
  21. </div>
  22. </#if>
  23. <div class="form-group ${messagesPerField.printIfExists('email','has-error')}">
  24. <div class="col-sm-2 col-md-2">
  25. <label for="email" class="control-label">${msg("email")}</label> <span class="required">*</span>
  26. </div>
  27. <div class="col-sm-10 col-md-10">
  28. <input type="text" class="form-control" id="email" name="email" autofocus value="${(account.email!'')}"/>
  29. </div>
  30. </div>
  31. <div class="form-group ${messagesPerField.printIfExists('firstName','has-error')}">
  32. <div class="col-sm-2 col-md-2">
  33. <label for="firstName" class="control-label">${msg("firstName")}</label> <span class="required">*</span>
  34. </div>
  35. <div class="col-sm-10 col-md-10">
  36. <input type="text" class="form-control" id="firstName" name="firstName" value="${(account.firstName!'')}"/>
  37. </div>
  38. </div>
  39. <div class="form-group ${messagesPerField.printIfExists('lastName','has-error')}">
  40. <div class="col-sm-2 col-md-2">
  41. <label for="lastName" class="control-label">${msg("lastName")}</label> <span class="required">*</span>
  42. </div>
  43. <div class="col-sm-10 col-md-10">
  44. <input type="text" class="form-control" id="lastName" name="lastName" value="${(account.lastName!'')}"/>
  45. </div>
  46. </div>
  47. <div class="form-group ${messagesPerField.printIfExists('nickname','has-error')}">
  48. <div class="col-sm-2 col-md-2">
  49. <label for="nickname" class="control-label">${msg("nickname")}</label> <span class="required">*</span>
  50. </div>
  51. <div class="col-sm-10 col-md-10">
  52. <input type="text" class="form-control" id="nickname" name="nickname" value="${(account.nickname!'')}"/>
  53. </div>
  54. </div>
  55. <p>${{account.email}}</p>
  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>