batchclose.html.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. /**
  3. * The batchEdit view file of feedback 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 Yuting Wang <wangyuting@easycorp.ltd>
  7. * @package feedback
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. if(!empty($errorTips)) pageJS("zui.Modal.alert({message: {html: '{$errorTips}'}, icon: 'icon-exclamation-sign', iconClass: 'warning-pale rounded-full icon-2x'});\n");
  12. formBatchPanel
  13. (
  14. set::title($lang->feedback->batchClose),
  15. set::mode('edit'),
  16. set::data(array_values($feedbacks)),
  17. on::change('[data-name="closedReasons"]', 'changeReason'),
  18. formBatchItem
  19. (
  20. set::name('id'),
  21. set::label($lang->idAB),
  22. set::control('index'),
  23. set::width('50px')
  24. ),
  25. formBatchItem
  26. (
  27. set::name('feedbackIdList'),
  28. set::control('hidden'),
  29. set::width('50px')
  30. ),
  31. formBatchItem(set::name('title'), set::label($lang->feedback->title), set::control('input'), set::disabled(true)),
  32. formBatchItem
  33. (
  34. set::name('status'),
  35. set::label($lang->feedback->status),
  36. set::control('picker'),
  37. set::items($lang->feedback->statusList),
  38. set::disabled(true),
  39. set::width('160px')
  40. ),
  41. formBatchItem
  42. (
  43. set::label($lang->feedback->closedReason),
  44. set::control('inputGroup'),
  45. set::width('330px'),
  46. inputGroup
  47. (
  48. picker
  49. (
  50. set::name('closedReasons'),
  51. set::items($reasonList)
  52. ),
  53. picker
  54. (
  55. setClass('duplicate-select hidden'),
  56. set::name('repeatFeedbackIDList'),
  57. set::placeholder($lang->bug->placeholder->duplicate),
  58. set::items($feedbackList)
  59. )
  60. )
  61. ),
  62. formBatchItem
  63. (
  64. set::name('comments'),
  65. set::label($lang->feedback->commentAB),
  66. set::control('input')
  67. )
  68. );
  69. render();