approval.html.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * The approval view file of mr 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 Zeng Gang<zenggang@easycorp.ltd>
  7. * @package mr
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. $app->loadLang('compile');
  12. modalHeader
  13. (
  14. set::title(''),
  15. set::entityText($MR->title . ' - ' . zget($lang->mr->approvalResultList, $action)),
  16. set::entityID($MR->id)
  17. );
  18. formPanel
  19. (
  20. ($MR->needCI && $showCompileResult) ? formGroup
  21. (
  22. set::label($lang->compile->result),
  23. a
  24. (
  25. setClass('self-center'),
  26. set::href($compileUrl),
  27. set::target('_blank'),
  28. $lang->compile->statusList[$MR->compileStatus]
  29. )
  30. ) : null,
  31. formGroup
  32. (
  33. set::width('1/2'),
  34. set::label($lang->mr->assignee),
  35. set::name('assignedTo'),
  36. set::items($users),
  37. set::value($MR->createdBy)
  38. ),
  39. formGroup
  40. (
  41. set::label($lang->comment),
  42. set::name('comment'),
  43. set::control('textarea'),
  44. set::rows('6')
  45. )
  46. );
  47. history(set::objectID($MR->id));