batchclose.html.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?php
  2. /**
  3. * The batchclose view file of ticket module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2025 禅道软件(青岛)有限公司(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 Shujie Tian <tianshujie@chandao.com>
  7. * @package ticket
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. jsVar('batchCloseTip', $batchCloseTip);
  12. formBatchPanel
  13. (
  14. set::title($lang->ticket->batchClose),
  15. set::mode('edit'),
  16. set::data(array_values($tickets)),
  17. set::onRenderRow(jsRaw('renderRowData')),
  18. on::change('[data-name="closedReason"]', 'closedReasonChange'),
  19. /* Field of id. */
  20. formBatchItem
  21. (
  22. set::label($lang->idAB),
  23. set::name('id'),
  24. set::control('hidden'),
  25. set::hidden(true)
  26. ),
  27. /* Field of id index. */
  28. formBatchItem
  29. (
  30. set::label($lang->idAB),
  31. set::width('50px'),
  32. set::name('id'),
  33. set::control('index')
  34. ),
  35. /* Field of title. */
  36. formBatchItem
  37. (
  38. set::width('200px'),
  39. set::name('title'),
  40. set::control('static'),
  41. set::label($lang->ticket->title)
  42. ),
  43. /* Field of status. */
  44. formBatchItem
  45. (
  46. set::label($lang->ticket->status),
  47. set::width('120px'),
  48. set::name('statusText'),
  49. set::control('static')
  50. ),
  51. /* Field of closedReason. */
  52. formBatchItem
  53. (
  54. set::label($lang->ticket->closedReason),
  55. set::labelClass('required'),
  56. set::width('200px'),
  57. set::name('closedReasonBox'),
  58. set::control('inputGroup'),
  59. inputGroup
  60. (
  61. picker
  62. (
  63. set::name('closedReason'),
  64. set::items($lang->ticket->closedReasonList),
  65. set::required(false)
  66. ),
  67. picker
  68. (
  69. setClass('duplicate-select hidden'),
  70. set::name('repeatTicket'),
  71. set::items(array()),
  72. set::required(true)
  73. )
  74. )
  75. ),
  76. /* Field of resolution. */
  77. formBatchItem
  78. (
  79. set::label($lang->ticket->resolution),
  80. set::width('200px'),
  81. set::name('resolution'),
  82. set::control('input'),
  83. set::disabled(true),
  84. set::hidden(!$showResolution)
  85. ),
  86. /* Field of comment. */
  87. formBatchItem
  88. (
  89. set::label($lang->comment),
  90. set::width('200px'),
  91. set::name('comment'),
  92. set::control('input')
  93. )
  94. );