renameobject.html.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * The renameobject view file of upgrade module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(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 Yuting Wang <wangyuting@easycorp.ltd>
  7. * @package upgrade
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. set::zui(true);
  12. $items[] = array
  13. (
  14. 'name' => 'id',
  15. 'label' => $lang->$type->id,
  16. 'control' => 'index',
  17. 'width' => '200px'
  18. );
  19. $items[] = array
  20. (
  21. 'name' => 'name',
  22. 'label' => $lang->$type->name,
  23. 'readonly' => 'readonly',
  24. 'width' => '200px'
  25. );
  26. $items[] = array
  27. (
  28. 'name' => 'project',
  29. 'label' => $lang->upgrade->editedName,
  30. 'width' => '200px'
  31. );
  32. div
  33. (
  34. setID('main'),
  35. div
  36. (
  37. setID('mainContent'),
  38. setClass('bg-white'),
  39. set::style(array('margin' => '50px auto 0', 'width' => '1200px')),
  40. formBatchPanel
  41. (
  42. $type == 'project' ? set::title($lang->upgrade->duplicateProject) : null,
  43. set::items($items),
  44. set::data(array_values($objectGroup)),
  45. set::actions(array('submit')),
  46. set::mode('edit'),
  47. set::actionsText(false)
  48. )
  49. )
  50. );
  51. render('pagebase');