uploaddocs.doc.html.hook.php 900 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace zin;
  3. global $lang;
  4. $groups = data('groups');
  5. $users = data('users');
  6. $readListBox = formGroup
  7. (
  8. setID('readListBox'),
  9. setClass('hidden'),
  10. set::label($lang->doc->readonly),
  11. div
  12. (
  13. setClass('w-full check-list'),
  14. inputGroup
  15. (
  16. setClass('w-full'),
  17. $lang->doc->groupLabel,
  18. picker
  19. (
  20. set::name('readGroups[]'),
  21. set::items($groups),
  22. set::multiple(true)
  23. )
  24. ),
  25. div
  26. (
  27. setClass('w-full'),
  28. userPicker
  29. (
  30. set::label($lang->doc->userLabel),
  31. set::name('readUsers[]'),
  32. set::items($users)
  33. )
  34. )
  35. )
  36. );
  37. query('#whiteListBox')
  38. ->before($readListBox)
  39. ->find('label.form-label span.text')->text($lang->doc->editable);