m.pause.html.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * The pause 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. <?php if(!empty($task->team) && $task->assignedTo != $this->app->user->account):?>
  14. <div class='heading'>
  15. <div class='title'><strong><?php echo $lang->task->tips;?></strong></div>
  16. <nav class='nav'><a data-dismiss='display'><i class='icon-remove muted'></i></a></nav>
  17. </div>
  18. <div class='content article box'>
  19. <p><?php echo sprintf($lang->task->deniedNotice, '<strong>' . $task->assignedToRealName . '</strong>', $lang->task->pause);?></p>
  20. </div>
  21. <?php else:?>
  22. <div class='heading divider'>
  23. <span class='title'><strong><?php echo $lang->task->pause;?></strong> #<?php echo $task->id . ' ' . $task->name;?></span>
  24. <nav class='nav'><a data-dismiss='display'><i class='icon-remove muted'></i></a></nav>
  25. </div>
  26. <form class='has-padding content' method='post' target='hiddenwin' action='<?php echo $this->createLink('task', 'pause', "id=$task->id")?>' id='closeForm' data-form-refresh='#page'>
  27. <div class='control'>
  28. <label for='comment'><?php echo $lang->comment;?></label>
  29. <?php echo html::textarea('comment', '', 'rows=2 class="textarea"');?></td>
  30. </div>
  31. </form>
  32. <div class='footer has-padding'>
  33. <button type='button' id='submitButton' class='btn primary'><?php echo $lang->save ?></button>
  34. </div>
  35. <script>
  36. $(function()
  37. {
  38. $('#submitButton').click(function(){$('#closeForm').submit()});
  39. })
  40. </script>
  41. <?php endif;?>