account.yaml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. title: Site
  2. form:
  3. validation: loose
  4. fields:
  5. content:
  6. type: section
  7. title: PLUGIN_ADMIN.ACCOUNT
  8. fields:
  9. username:
  10. type: text
  11. size: large
  12. label: PLUGIN_ADMIN.USERNAME
  13. disabled: true
  14. readonly: true
  15. email:
  16. type: email
  17. size: large
  18. label: PLUGIN_ADMIN.EMAIL
  19. validate:
  20. type: email
  21. message: PLUGIN_ADMIN.EMAIL_VALIDATION_MESSAGE
  22. required: true
  23. password:
  24. type: password
  25. size: large
  26. label: PLUGIN_ADMIN.PASSWORD
  27. validate:
  28. required: true
  29. message: PLUGIN_ADMIN.PASSWORD_VALIDATION_MESSAGE
  30. pattern: '(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}'
  31. fullname:
  32. type: text
  33. size: large
  34. label: PLUGIN_ADMIN.FULL_NAME
  35. validate:
  36. required: true
  37. title:
  38. type: text
  39. size: large
  40. label: PLUGIN_ADMIN.TITLE
  41. language:
  42. type: select
  43. label: PLUGIN_ADMIN.LANGUAGE
  44. size: medium
  45. classes: fancy
  46. '@data-options': '\Grav\Plugin\admin::adminLanguages'
  47. default: 'en'
  48. help: PLUGIN_ADMIN.LANGUAGE_HELP