create.html.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. /**
  3. * The select template view file of doc module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2026 禅道软件(青岛)有限公司(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 Yue Liu<liuyue@chandao.com>
  7. * @package gapanalysis
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. jsVar('roles', $rolePairs);
  12. formPanel
  13. (
  14. set::title($lang->gapanalysis->create),
  15. formRow
  16. (
  17. formGroup
  18. (
  19. set::width('1/2'),
  20. set::label($lang->gapanalysis->account),
  21. set::required(true),
  22. picker(set::emptyValue(''), set::name('account'), set::items($members), on::change('refreshRole'))
  23. )
  24. ),
  25. formRow
  26. (
  27. formGroup
  28. (
  29. set::width('1/2'),
  30. set::label($lang->gapanalysis->role),
  31. set::disabled(true),
  32. set::name('role')
  33. )
  34. ),
  35. formRow
  36. (
  37. formGroup
  38. (
  39. set::label($lang->gapanalysis->analysis),
  40. editor
  41. (
  42. set::name('analysis'),
  43. set::rows('6')
  44. )
  45. )
  46. ),
  47. formRow
  48. (
  49. formGroup
  50. (
  51. set::width('1/2'),
  52. set::label($lang->gapanalysis->needTrain),
  53. radioList
  54. (
  55. set::name('needTrain'),
  56. set::items($lang->gapanalysis->needTrainList),
  57. set::value('no'),
  58. set::inline(true)
  59. )
  60. )
  61. )
  62. );
  63. render();