create.html.php 1017 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * The create view file of group 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 group
  9. * @link https://www.zentao.net
  10. */
  11. namespace zin;
  12. modalHeader(set::title($lang->group->create));
  13. formPanel
  14. (
  15. formGroup
  16. (
  17. set::label($lang->group->name),
  18. set::required(true),
  19. input(set::name('name'))
  20. ),
  21. formGroup
  22. (
  23. set::label($lang->group->desc),
  24. textarea
  25. (
  26. set::name('desc'),
  27. set::rows('5')
  28. )
  29. ),
  30. $app->tab != 'project' ? formGroup
  31. (
  32. set::label($lang->group->limited),
  33. setClass('items-center'),
  34. checkbox
  35. (
  36. set::name('limited'),
  37. set::value(1)
  38. )
  39. ) : null
  40. );