comment.html.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * The comment view file of feedback module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2024 禅道软件(青岛)有限公司(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@chandao.com>
  7. * @package feedback
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. modalHeader();
  12. formPanel
  13. (
  14. set::submitBtnText($title),
  15. $type == 'replied' ? formGroup
  16. (
  17. set::label($lang->feedback->faq),
  18. set::width('1/2'),
  19. picker
  20. (
  21. set::name('faq'),
  22. set::items($faqs),
  23. on::change('faqChange')
  24. )
  25. ) : null,
  26. formGroup
  27. (
  28. set::label($title),
  29. set::name('comment'),
  30. set::required(true),
  31. set::control('editor'),
  32. set::rows(6)
  33. ),
  34. $type == 'asked' ? formGroup
  35. (
  36. set::label($lang->feedback->files),
  37. fileSelector()
  38. ) : null,
  39. formHidden('status', $type)
  40. );