m.close.html.php 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * The close mobil view file of task module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2015 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Fei Chen <chenfei@cnezsoft.com>
  8. * @package task
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <div class='heading divider'>
  14. <span class='title'><strong><?php echo $lang->task->close;?></strong> #<?php echo $task->id . ' ' . $task->name;?></span>
  15. <nav class='nav'><a data-dismiss='display'><i class='icon-remove muted'></i></a></nav>
  16. </div>
  17. <form class='has-padding content' method='post' target='hiddenwin' action='<?php echo $this->createLink('task', 'close', "id=$task->id")?>' id='closeForm' data-form-refresh='#page'>
  18. <div class='control'>
  19. <label for='comment'><?php echo $lang->comment;?></label>
  20. <?php echo html::textarea('comment', '', 'rows=2 class="textarea"');?></td>
  21. </div>
  22. </form>
  23. <div class='footer has-padding'>
  24. <button type='button' id='submitButton' class='btn primary'><?php echo $lang->save ?></button>
  25. </div>
  26. <script>
  27. $(function()
  28. {
  29. $('#submitButton').click(function(){$('#closeForm').submit()});
  30. })
  31. </script>