group.yaml 992 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. title: Group
  2. rules:
  3. slug:
  4. pattern: '[a-zA-Zа-яA-Я0-9_\-]+'
  5. min: 1
  6. max: 200
  7. form:
  8. validation: loose
  9. fields:
  10. groupname:
  11. type: text
  12. size: large
  13. label: PLUGIN_ADMIN.GROUP_NAME
  14. flex-disabled@: exists
  15. flex-readonly@: exists
  16. validate:
  17. required: true
  18. rule: slug
  19. readableName:
  20. type: text
  21. size: large
  22. label: PLUGIN_ADMIN.DISPLAY_NAME
  23. description:
  24. type: text
  25. size: large
  26. label: PLUGIN_ADMIN.DESCRIPTION
  27. icon:
  28. type: text
  29. size: small
  30. label: PLUGIN_ADMIN.ICON
  31. enabled:
  32. type: toggle
  33. label: PLUGIN_ADMIN.ENABLED
  34. highlight: 1
  35. default: 1
  36. options:
  37. 1: PLUGIN_ADMIN.YES
  38. 0: PLUGIN_ADMIN.NO
  39. validate:
  40. type: bool
  41. access:
  42. type: permissions
  43. check_authorize: false
  44. label: PLUGIN_ADMIN.PERMISSIONS
  45. ignore_empty: true
  46. validate:
  47. type: array
  48. value_type: bool