createbranch.html.php 991 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * The createbranch view file of gitlab 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 Yanyi Cao<caoyanyi@easycorp.ltd>
  8. * @package gitlab
  9. * @link https://www.zentao.net
  10. */
  11. namespace zin;
  12. formPanel
  13. (
  14. set::id('gitlabCreateForm'),
  15. set::title($lang->gitlab->createBranch),
  16. set::actionsClass('w-1/2'),
  17. formGroup
  18. (
  19. set::name('branch'),
  20. set::label($lang->gitlab->branch->name),
  21. set::required(true),
  22. set::width('1/2')
  23. ),
  24. formGroup
  25. (
  26. set::label($lang->gitlab->branch->from),
  27. set::required(true),
  28. set::width('1/2'),
  29. picker
  30. (
  31. set::name('ref'),
  32. set::items($branchPairs),
  33. set::required(true)
  34. )
  35. )
  36. );