fixfirst.html.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * The fixFirst view file of execution 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 execution
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. to::header(
  12. span
  13. (
  14. set::className('text-md font-bold'),
  15. $lang->execution->fixFirst
  16. ),
  17. span
  18. (
  19. setClass('flex gap-x-2 mr-3'),
  20. $lang->execution->totalEstimate,
  21. span
  22. (
  23. setClass('label secondary-pale rounded-full'),
  24. $execution->totalEstimate . $lang->execution->workHour
  25. )
  26. )
  27. );
  28. formPanel
  29. (
  30. set::submitBtnText($lang->save),
  31. set::formClass('border-0'),
  32. formGroup
  33. (
  34. set::label($execution->begin),
  35. set::placeholder($lang->execution->placeholder->totalLeft),
  36. inputGroup
  37. (
  38. input
  39. (
  40. set::name('estimate'),
  41. set::value(!empty($firstBurn->estimate) ? $firstBurn->estimate : (!empty($firstBurn->left) ? $firstBurn->left : '')),
  42. set::placeholder($lang->execution->placeholder->totalLeft)
  43. ),
  44. checkbox
  45. (
  46. set::name('withLeft'),
  47. set::value(1),
  48. set::checked(true),
  49. set::text($lang->execution->fixFirstWithLeft),
  50. set::rootClass('ml-4 w-1/3 items-center')
  51. )
  52. )
  53. )
  54. );