/components/com_users/models/forms/profile.xml

https://bitbucket.org/eternaware/joomus · XML · 72 lines · 65 code · 7 blank · 0 comment · 0 complexity · d156e885d508cff4e097c5c4390bbe49 MD5 · raw file

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <form>
  3. <fieldset name="core"
  4. label="COM_USERS_PROFILE_DEFAULT_LABEL">
  5. <field name="id" type="hidden"
  6. filter="integer"
  7. />
  8. <field name="name" type="text"
  9. description="COM_USERS_PROFILE_NAME_DESC"
  10. filter="string"
  11. label="COM_USERS_PROFILE_NAME_LABEL"
  12. required="true"
  13. size="30"
  14. />
  15. <field name="username" type="text"
  16. class="validate-username"
  17. description="COM_USERS_DESIRED_USERNAME"
  18. filter="username"
  19. label="COM_USERS_PROFILE_USERNAME_LABEL"
  20. message="COM_USERS_PROFILE_USERNAME_MESSAGE"
  21. required="true"
  22. size="30"
  23. validate="username"
  24. />
  25. <field name="password1" type="password"
  26. autocomplete="off"
  27. class="validate-password"
  28. description="COM_USERS_DESIRED_PASSWORD"
  29. field="password2"
  30. filter="raw"
  31. label="COM_USERS_PROFILE_PASSWORD1_LABEL"
  32. message="COM_USERS_PROFILE_PASSWORD1_MESSAGE"
  33. size="30"
  34. validate="equals"
  35. />
  36. <field name="password2" type="password"
  37. autocomplete="off"
  38. class="validate-password"
  39. description="COM_USERS_PROFILE_PASSWORD2_DESC"
  40. filter="raw"
  41. label="COM_USERS_PROFILE_PASSWORD2_LABEL"
  42. size="30"
  43. />
  44. <field name="email1" type="email"
  45. description="COM_USERS_PROFILE_EMAIL1_DESC"
  46. filter="string"
  47. label="COM_USERS_PROFILE_EMAIL1_LABEL"
  48. message="COM_USERS_PROFILE_EMAIL1_MESSAGE"
  49. required="true"
  50. size="30"
  51. unique="true"
  52. validate="email"
  53. />
  54. <field name="email2" type="email"
  55. description="COM_USERS_PROFILE_EMAIL2_DESC"
  56. field="email1"
  57. filter="string"
  58. label="COM_USERS_PROFILE_EMAIL2_LABEL"
  59. message="COM_USERS_PROFILE_EMAIL2_MESSAGE"
  60. required="true"
  61. size="30"
  62. validate="equals"
  63. />
  64. </fieldset>
  65. </form>