m.restart.html.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * The restart mobile 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->restart;?></strong> #<?php echo $task->id . ' ' . $task->name;?></span>
  15. <nav class='nav'>
  16. <a data-dismiss='display'><i class='icon-remove muted'></i></a>
  17. </nav>
  18. </div>
  19. <form class='has-padding content' method='post' target='hiddenwin' action='<?php echo $this->createLink('task', 'restart', "taskID=$task->id")?>' id='restartForm' data-form-refresh='#page'>
  20. <div class='control'>
  21. <label for='realStarted'><?php echo $lang->task->realStarted;?></label>
  22. <input type='date' class='input' id='realStarted' name='realStarted' value='<?php echo $task->realStarted?>'>
  23. </div>
  24. <div class='control'>
  25. <label for='consumed'><?php echo $lang->task->consumed;?></label>
  26. <?php echo html::input('consumed', $task->consumed, "class='input'");?></div>
  27. </div>
  28. <div class='control'>
  29. <label for='left'><?php echo $lang->task->left;?></label>
  30. <?php echo html::input('left', $task->left, "class='input'");?></div>
  31. </div>
  32. <div class='control'>
  33. <label for='comment'><?php echo $lang->comment;?></label>
  34. <?php echo html::textarea('comment', '', 'rows=2 class="textarea"');?></td>
  35. </div>
  36. </form>
  37. <div class='footer has-padding'>
  38. <button type='button' id='submitButton' class='btn primary'><?php echo $lang->save ?></button>
  39. </div>
  40. <script>
  41. $(function()
  42. {
  43. $('#submitButton').click(function(){$('#restartForm').submit()});
  44. })
  45. </script>