scrumtestblock.html.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * The scrumtest block view file of block 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 Yuting Wang <wangyuting@easycorp.ltd>
  7. * @package block
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. if(!$longBlock)
  12. {
  13. unset($config->block->testtask->dtable->fieldList['id']);
  14. unset($config->block->testtask->dtable->fieldList['product']);
  15. unset($config->block->testtask->dtable->fieldList['build']);
  16. }
  17. panel
  18. (
  19. setClass('p-0 scrumlist-block list-block ' . ($longBlock ? 'block-long' : 'block-sm')),
  20. set::title($block->title),
  21. set::headingClass('border-b'),
  22. to::headingActions
  23. (
  24. a
  25. (
  26. set('class', 'text-gray'),
  27. set('href', $block->moreLink),
  28. $lang->more,
  29. icon('caret-right')
  30. )
  31. ),
  32. dtable
  33. (
  34. set::height(318),
  35. set::horzScrollbarPos('inside'),
  36. set::fixedLeftWidth($longBlock ? '0.33' : '0.5'),
  37. set::cols(array_values($config->block->testtask->dtable->fieldList)),
  38. set::data(array_values($testtasks))
  39. )
  40. );
  41. render();