edit.html.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * The edit file of activity 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 Yuting Wang<wangyuting@easycorp.ltd>
  8. * @package activity
  9. * @link https://www.zentao.net
  10. */
  11. namespace zin;
  12. jsVar('editConfirm', $lang->activity->editConfirm);
  13. formPanel
  14. (
  15. $needConfirm ? set::ajax(array('beforeSubmit' => jsRaw("clickSubmit"))) : null,
  16. set::layout('horz'),
  17. entityLabel(to::prefix($lang->activity->edit), set(array('entityID' => $activity->id, 'level' => 1, 'text' => $activity->name))),
  18. formGroup
  19. (
  20. set::label($lang->activity->process),
  21. set::width('1/2'),
  22. set::name('process'),
  23. set::items($process),
  24. set::value($activity->process)
  25. ),
  26. formGroup
  27. (
  28. set::label($lang->activity->name),
  29. set::width('1/2'),
  30. set::name('name'),
  31. set::value($activity->name)
  32. ),
  33. formGroup
  34. (
  35. set::label($lang->activity->optional),
  36. set::width('1/2'),
  37. radioList
  38. (
  39. on::change('changeOptional'),
  40. set::inline(true),
  41. set::name('optional'),
  42. set::items(array_filter($lang->activity->optionalList)),
  43. set::value($activity->optional)
  44. )
  45. ),
  46. formGroup
  47. (
  48. set::label($lang->activity->tailorNorm),
  49. set::width('1/2'),
  50. set::name('tailorNorm'),
  51. set::value($activity->tailorNorm),
  52. set::disabled($activity->optional == 'no')
  53. ),
  54. formGroup
  55. (
  56. set::label($lang->activity->content),
  57. editor
  58. (
  59. set::name('content'),
  60. html($activity->content)
  61. )
  62. )
  63. );