activate.html.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. /**
  3. * The activate view file of execution 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 Shujie Tian<tianshujie@easycorp.ltd>
  7. * @package execution
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. $space = common::checkNotCN() ? ' ' : '';
  12. modalHeader(set::title($lang->execution->activate . $space . $lang->executionCommon));
  13. formPanel
  14. (
  15. set::submitBtnText($lang->execution->activate . $space . $lang->executionCommon),
  16. formRow
  17. (
  18. formGroup
  19. (
  20. set::width('1/2'),
  21. set::label($lang->execution->beginAndEnd),
  22. inputGroup
  23. (
  24. datePicker
  25. (
  26. set::name('begin'),
  27. set::value($newBegin),
  28. set::disabled(!empty($execution->frozen))
  29. ),
  30. $lang->execution->to,
  31. datePicker
  32. (
  33. set::name('end'),
  34. set::value($newEnd),
  35. set::disabled(!empty($execution->frozen))
  36. )
  37. )
  38. ),
  39. formGroup
  40. (
  41. set::width('1/2'),
  42. setClass('items-center'),
  43. checkbox(
  44. set::name('readjustTask'),
  45. set::text($lang->execution->readjustTask),
  46. set::value(1),
  47. set::rootClass('ml-4')
  48. )
  49. )
  50. ),
  51. formGroup
  52. (
  53. set::label($lang->comment),
  54. editor
  55. (
  56. set::name('comment'),
  57. set::rows('6')
  58. )
  59. )
  60. );
  61. hr();
  62. history();
  63. /* ====== Render page ====== */
  64. render();