ajaxsavetemplate.html.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * The ajax save template view file of user module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2024 禅道软件(青岛)有限公司(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 Gang Liu <liugang@easycorp.ltd>
  7. * @package user
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. modalHeader(set::title($title));
  12. form
  13. (
  14. setID('saveTemplate'),
  15. formGroup
  16. (
  17. set::label($lang->usertpl->title),
  18. set::name('title'),
  19. set::required(true)
  20. ),
  21. hasPriv('user', 'setPublicTemplate') ? formGroup
  22. (
  23. set::label(''),
  24. set::width('1/1'),
  25. checkbox
  26. (
  27. set::id('templatePublic'),
  28. set::name('public'),
  29. set::value(1),
  30. set::text($lang->user->setPublicTemplate)
  31. )
  32. ) : null,
  33. formHidden('editor', $editor),
  34. formHidden('type', $type),
  35. formHidden('content', '')
  36. );