editrelation.html.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * The editrelation view file of custom module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2024 禅道软件(青岛)有限公司(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 Qiyu Xie<xieqiyu@chandao.com>
  7. * @package custom
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. jsVar('allRelationName', $allRelationName);
  12. jsVar('hasRelationTip', $lang->custom->hasRelationTip);
  13. formBatchPanel
  14. (
  15. set::mode('edit'),
  16. set::formID('relationForm'),
  17. set::data(array($relation)),
  18. set::title($lang->custom->editRelation),
  19. set::ajax(array('beforeSubmit' => jsRaw("clickSubmit"))),
  20. formBatchItem
  21. (
  22. set::width('1/2'),
  23. set::name('relation'),
  24. set::label($lang->custom->relation),
  25. set::required(true)
  26. ),
  27. formBatchItem
  28. (
  29. set::width('1/2'),
  30. set::name('relativeRelation'),
  31. set::label($lang->custom->relativeRelation),
  32. set::required(true)
  33. )
  34. );