assignto.html.php 940 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * The assignto file of auditplan 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 Yuting Wang<wangyuting@easycorp.ltd>
  8. * @package auditplan
  9. * @link https://www.zentao.net
  10. */
  11. namespace zin;
  12. $isCycle = $auditplan->cycleType != 'noCycle';
  13. $fields = defineFieldList('auditplan');
  14. if(!$isCycle) $fields->field('checkDate')->required(true)->control('date')->width('full');
  15. $fields->field('assignedTo')->control(array('control' => 'picker', 'required' => false))->items($users)->value($auditplan->assignedTo)->width('full')->required($isCycle);
  16. $fields->field('comment')->control('editor')->width('full');
  17. formPanel
  18. (
  19. set::title($title),
  20. set::layout('horz'),
  21. set::fields($fields)
  22. );