editcomment.html.php 917 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * The comment view file of action 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 Hao Sun <sunhao@easycorp.ltd>
  7. * @package action
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. $actions = array();
  12. $actions[] = 'submit';
  13. $actions[] = isInModal() ? array('data-dismiss' => 'modal', 'text' => $lang->close) : 'cancel';
  14. set::title($title);
  15. form
  16. (
  17. set::url('action', 'editComment', "actionID=$actionID"),
  18. setClass('comment-form is-edit'),
  19. editor
  20. (
  21. set::name('lastComment'),
  22. html(html_entity_decode($comment))
  23. ),
  24. $objectType != 'story' ? fileSelector(set::defaultFiles(array_values($files))) : null,
  25. set::actions($actions)
  26. );