change.html.php 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * The change file of demand module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2024 禅道软件(青岛)有限公司(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 Yuting Wang<wangyuting@easycorp.ltd>
  8. * @package demand
  9. * @link https://www.zentao.net
  10. */
  11. namespace zin;
  12. include($this->app->getModuleRoot() . 'ai/ui/inputinject.html.php');
  13. $fields = useFields('demand.change');
  14. jsVar('lastReviewer', explode(',', $lastReviewer));
  15. modalHeader();
  16. formPanel
  17. (
  18. on::change('[name=needNotReview]', 'changeNeedReview'),
  19. set::ajax(array('beforeSubmit' => jsRaw('clickSubmit'))),
  20. set::size('normal'),
  21. set::actions(array
  22. (
  23. array('text' => $lang->save, 'data-status' => 'active', 'class' => 'primary', 'btnType' => 'submit'),
  24. array('text' => $lang->story->doNotSubmit, 'data-status' => 'draft', 'class' => 'secondary', 'btnType' => 'submit'),
  25. array('text' => $lang->goback, 'back' => true)
  26. )),
  27. set::fields($fields)
  28. );