edit.html.php 733 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * The create view file of issue 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 Shujie Tian <tianshujie@easycorp.ltd>
  7. * @package issue
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. $fields = useFields('risk.edit');
  12. formGridPanel
  13. (
  14. on::change('[name="project"]', 'changeProject'),
  15. on::change('[name=impact]', 'computeIndex'),
  16. on::change('[name=probability]', 'computeIndex'),
  17. set::title($lang->risk->edit),
  18. set::modeSwitcher(false),
  19. set::fields($fields)
  20. );