edit.html.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /**
  3. * The edit view file of artifactrepo 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 Zeng Gang<zenggang@easycorp.ltd>
  7. * @package artifactrepo
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. formPanel
  12. (
  13. set::title($lang->artifactrepo->edit),
  14. set::actionsClass('w-2/3'),
  15. formGroup
  16. (
  17. set::width('2/3'),
  18. set::name('name'),
  19. set::required(true),
  20. set::label($lang->artifactrepo->name),
  21. set::value($artifactRepo->name)
  22. ),
  23. formGroup
  24. (
  25. set::width('2/3'),
  26. set::name('products[]'),
  27. set::label($lang->repo->product),
  28. set::control(array('control' => 'picker', 'multiple' => true)),
  29. set::items($products),
  30. set::value($artifactRepo->products)
  31. ),
  32. formGroup
  33. (
  34. set::width('2/3'),
  35. setClass('servers'),
  36. set::label($lang->artifactrepo->serverID),
  37. set::control('static'),
  38. set::value($artifactRepo->serverName)
  39. ),
  40. formGroup
  41. (
  42. set::width('2/3'),
  43. set::label($lang->artifactrepo->repoName),
  44. set::control('static'),
  45. set::value($artifactRepo->repoName)
  46. ),
  47. formGroup
  48. (
  49. set::width('2/3'),
  50. set::label($lang->artifactrepo->type),
  51. set::control('static'),
  52. set::value($artifactRepo->type)
  53. ),
  54. formGroup
  55. (
  56. set::width('2/3'),
  57. set::label($lang->artifactrepo->status),
  58. set::control('static'),
  59. set::value($artifactRepo->status)
  60. ),
  61. formGroup
  62. (
  63. set::width('2/3'),
  64. set::label($lang->artifactrepo->url),
  65. set::control('static'),
  66. set::value($artifactRepo->url)
  67. )
  68. );