edit.html.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * The edit view file of gitlab 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 Ke Zhao<zhaoke@easycorp.ltd>
  8. * @package gitlab
  9. * @link https://www.zentao.net
  10. */
  11. namespace zin;
  12. formPanel
  13. (
  14. set::id('gitlabCreateForm'),
  15. set::title($lang->gitlab->edit),
  16. set::submitBtnText($lang->save),
  17. set::actions(array('submit', array('text' => $lang->cancel, 'data-type' => 'submit', 'data-dismiss' => 'modal'))),
  18. formRow
  19. (
  20. formGroup
  21. (
  22. set::name('name'),
  23. set::label($lang->gitlab->name),
  24. set::value($gitlab->name),
  25. set::placeholder($lang->gitlab->placeholder->name)
  26. )
  27. ),
  28. formRow
  29. (
  30. formGroup
  31. (
  32. set::name('url'),
  33. set::label($lang->gitlab->url),
  34. set::value($gitlab->url),
  35. set::placeholder($lang->gitlab->placeholder->url)
  36. )
  37. ),
  38. formRow
  39. (
  40. formGroup
  41. (
  42. set::name('token'),
  43. set::label($lang->gitlab->token),
  44. set::value($gitlab->token),
  45. set::placeholder($lang->gitlab->placeholder->token),
  46. set::control(array(
  47. 'type' => 'textarea',
  48. 'rows' => 4
  49. ))
  50. )
  51. )
  52. );