assignto.html.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * The assignTo view file of bug module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
  5. * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  6. * @author Mengyi Liu <liumengyi@easycorp.ltd>
  7. * @package bug
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. jsVar('page', 'assignedto');
  12. modalHeader
  13. (
  14. set::title($lang->bug->assignTo)
  15. );
  16. /* zin: Define the form in main content. */
  17. formPanel
  18. (
  19. set::submitBtnText($lang->bug->assignTo),
  20. formGroup
  21. (
  22. set::width('1/3'),
  23. set::name('assignedTo'),
  24. set::label($lang->bug->assignedTo),
  25. set::value($bug->assignedTo),
  26. set::items($users)
  27. ),
  28. formGroup
  29. (
  30. set::label($lang->bug->mailto),
  31. mailto(set::items($users), set::value($bug->mailto))
  32. ),
  33. formGroup
  34. (
  35. set::label($lang->comment),
  36. set::name('comment'),
  37. set::control('editor'),
  38. set::rows(6)
  39. )
  40. );
  41. hr();
  42. history(set::objectID($bug->id));
  43. render();