edit.html.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * The edit 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::title(sprintf($lang->branch->edit, $lang->product->branchName[$product->type])),
  15. formGroup
  16. (
  17. set::label(sprintf($lang->branch->name, $lang->product->branchName[$product->type])),
  18. set::required(true),
  19. set::name('name'),
  20. set::value($branch->name),
  21. set::control('input')
  22. ),
  23. formGroup
  24. (
  25. set::label($lang->branch->status),
  26. set::required(true),
  27. set::width('1/2'),
  28. set::name('status'),
  29. set::value($branch->status),
  30. set::items($lang->branch->statusList),
  31. set::control('picker')
  32. ),
  33. formGroup
  34. (
  35. set::label(sprintf($lang->branch->desc, $lang->product->branchName[$product->type])),
  36. textarea
  37. (
  38. set::name('desc'),
  39. set::value($branch->desc),
  40. set::rows('5')
  41. )
  42. )
  43. );