newpage.html.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * The editor view file of dir module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license ZPL (http://zpl.pub/page/zplv12.html)
  7. * @author Yidong Wang <yidong@cnezsoft.com>
  8. * @package editor
  9. * @version $Id$
  10. * @link https://www.zentao.net
  11. */
  12. namespace zin;
  13. set::zui(true);
  14. h::css(".panel .panel-heading {justify-content: flex-start;}");
  15. formPanel
  16. (
  17. to::heading
  18. (
  19. icon('plus'),
  20. span(setClass('font-bold'), $lang->editor->newPage)
  21. ),
  22. set::actions(array('submit')),
  23. formGroup
  24. (
  25. set::style(array('align-items' => 'center')),
  26. set::label($lang->editor->filePath),
  27. set::control(false),
  28. h::code($filePath)
  29. ),
  30. formGroup
  31. (
  32. set::label($lang->editor->pageName),
  33. set::control('input'),
  34. set::name('fileName'),
  35. set::placeholder($lang->editor->examplePHP)
  36. )
  37. );
  38. render('pagebase');