create.html.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * The create file of cm 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 cm
  9. * @link https://www.zentao.net
  10. */
  11. namespace zin;
  12. formPanel
  13. (
  14. set::submitBtnText($lang->cm->submit),
  15. set::title($title),
  16. set::layout('horz'),
  17. formGroup
  18. (
  19. set::label($lang->cm->title),
  20. set::width('1/2'),
  21. set::required(true),
  22. set::name('title')
  23. ),
  24. formGroup
  25. (
  26. set::label($lang->cm->version),
  27. set::width('1/2'),
  28. set::required(true),
  29. set::name('version')
  30. ),
  31. formGroup
  32. (
  33. set::label($lang->cm->object),
  34. set::width('1/2'),
  35. set::name('category[]'),
  36. set::required(true),
  37. set::multiple(true),
  38. set::control(array('control' => 'picker', 'menu' => array('checkbox' => true), 'toolbar' => true, 'items' => $categories))
  39. ),
  40. formGroup
  41. (
  42. set::label($lang->cm->end),
  43. set::width('1/2'),
  44. set::name('end'),
  45. set::control('date')
  46. ),
  47. formGroup
  48. (
  49. set::label($lang->cm->comment),
  50. set::name('comment'),
  51. set::control('editor')
  52. )
  53. );