creategroup.html.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?php
  2. /**
  3. * The creategroup view file of gitlab 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 Zeng Gang<zenggang@easycorp.ltd>
  7. * @package gitlab
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. if(!empty($permissionError))
  12. {
  13. jsCall('alertJump', array($permissionError, $errorJump));
  14. return;
  15. }
  16. $publicTip = "<span id='publicTip' class='text-danger'>" . $lang->gitlab->group->publicTip . '</span>';
  17. jsVar('publicTip', $publicTip);
  18. formPanel
  19. (
  20. set::title($lang->gitlab->group->create),
  21. set::labelWidth($app->clientLang == 'zh-cn' ? '8em' : '13em'),
  22. formGroup
  23. (
  24. set::name('name'),
  25. set::label($lang->gitlab->group->name),
  26. set::placeholder($lang->gitlab->group->name),
  27. set::required(true),
  28. set::width('1/2')
  29. ),
  30. formGroup
  31. (
  32. set::label($lang->gitlab->group->path),
  33. set::width('1/2'),
  34. set::required(true),
  35. inputGroup
  36. (
  37. $gitlab->url . '/',
  38. input
  39. (
  40. set::name('path'),
  41. set::placeholder($lang->gitlab->group->path)
  42. )
  43. )
  44. ),
  45. formGroup
  46. (
  47. set::label($lang->gitlab->group->description),
  48. set::name('description'),
  49. set::placeholder($lang->gitlab->group->description),
  50. set::width('1/2')
  51. ),
  52. formGroup
  53. (
  54. set::label($lang->gitlab->group->visibility),
  55. set::name('visibility'),
  56. set::control('radioList'),
  57. set::items($lang->gitlab->group->visibilityList),
  58. set::value('private'),
  59. on::change('onAclChange')
  60. ),
  61. formGroup
  62. (
  63. set::label($lang->gitlab->group->permission),
  64. set::name('request_access_enabled'),
  65. set::control(array('control' => 'checkbox', 'value' => '1', 'text' => $lang->gitlab->group->requestAccessEnabledTip, 'checked' => true))
  66. ),
  67. formGroup
  68. (
  69. set::label($lang->gitlab->group->lfsEnabled),
  70. set::name('lfs_enabled'),
  71. set::control(array('control' => 'checkbox', 'value' => '1' , 'text' => $lang->gitlab->group->lfsEnabledTip, 'checked' => true))
  72. ),
  73. formGroup
  74. (
  75. set::label($lang->gitlab->group->projectCreationLevel),
  76. set::width('1/2'),
  77. picker
  78. (
  79. set::name('project_creation_level'),
  80. set::items($lang->gitlab->group->projectCreationLevelList),
  81. set::value('developer'),
  82. set::required(true)
  83. )
  84. ),
  85. formGroup
  86. (
  87. set::label($lang->gitlab->group->subgroupCreationLevel),
  88. set::width('1/2'),
  89. picker
  90. (
  91. set::name('subgroup_creation_level'),
  92. set::items($lang->gitlab->group->subgroupCreationLevelList),
  93. set::value('maintainer'),
  94. set::required(true)
  95. )
  96. )
  97. );
  98. render();