close.html.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. /**
  3. * The UI file of story module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
  6. * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author zhouxin <zhouxin@easycorp.ltd>
  8. * @package story
  9. * @link https://www.zentao.net
  10. */
  11. namespace zin;
  12. jsVar('storyType', $story->type);
  13. jsVar('storyID', $story->id);
  14. modalHeader();
  15. formPanel
  16. (
  17. set::submitBtnText($lang->story->closeAction),
  18. formGroup
  19. (
  20. setID('closedReason'),
  21. set::name('closedReason'),
  22. set::label($lang->story->closedReason),
  23. set::width('1/3'),
  24. set::value(''),
  25. set::items($reasonList),
  26. on::change('#closedReason', 'setStory')
  27. ),
  28. formGroup
  29. (
  30. set::hidden(true),
  31. setID('duplicateStoryBox'),
  32. set::required(true),
  33. set::label($lang->story->duplicateStory),
  34. set::width('1/2'),
  35. set::value(''),
  36. picker
  37. (
  38. set::name('duplicateStory'),
  39. set::items(createLink('story', 'ajaxGetDuplicatedStories', "storyID=$story->id&productID=$story->product")),
  40. set::maxItemsCount(100)
  41. )
  42. ),
  43. formGroup
  44. (
  45. set::label($lang->comment),
  46. set::control('editor'),
  47. set::name('comment')
  48. )
  49. );
  50. hr();
  51. history();
  52. render();