create.html.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * The create view file of branch 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 branch
  9. * @link https://www.zentao.net
  10. */
  11. namespace zin;
  12. formPanel
  13. (
  14. set::id('createBranchForm'),
  15. set::title(sprintf($lang->branch->create, $lang->product->branchName[$product->type])),
  16. set::shadow(!isInModal()),
  17. formGroup
  18. (
  19. set::label(sprintf($lang->branch->name, $lang->product->branchName[$product->type])),
  20. set::required(true),
  21. set::name('name'),
  22. set::control('input')
  23. ),
  24. formGroup
  25. (
  26. set::label(sprintf($lang->branch->desc, $lang->product->branchName[$product->type])),
  27. textarea
  28. (
  29. set::name('desc'),
  30. set::rows('5')
  31. )
  32. )
  33. );
  34. render();