m.close.html.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /**
  3. * The close mobil view file of story 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 Yidong Wang <yidong@cnezsoft.com>
  8. * @package story
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <div class='heading divider'>
  14. <span class='title'><strong><?php echo $lang->story->close ?></strong> #<?php echo $story->id ?></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('story', 'close', "id=$story->id")?>' id='closeForm' data-form-refresh='#page'>
  18. <div class='control'>
  19. <label for='reviewedBy'><?php echo $lang->story->closedReason;?></label>
  20. <div class='select'><?php echo html::select('closedReason', $lang->story->reasonList);?></div>
  21. </div>
  22. <div class='control' id='duplicateStoryBox' style='display:none'>
  23. <label for='duplicateStory'><?php echo $lang->story->duplicateStory;?></label>
  24. <?php echo html::input('duplicateStory', '', "class='input'");?>
  25. </div>
  26. <div class='control' id='childStoriesBox' style='display:none'>
  27. <label><?php echo $lang->story->childStories;?></label>
  28. <?php echo html::input('childStories', '', "class='input'");?>
  29. </div>
  30. <div class='control'>
  31. <label for='comment'><?php echo $lang->story->comment;?></label>
  32. <?php echo html::textarea('comment', '', 'rows=2 class="textarea"');?></td>
  33. </div>
  34. </form>
  35. <div class='footer has-padding'>
  36. <button type='button' id='submitButton' class='btn primary'><?php echo $lang->save ?></button>
  37. </div>
  38. <script>
  39. $(function()
  40. {
  41. $('#closedReason').change(function()
  42. {
  43. var reason = $(this).val();
  44. if(reason == 'duplicate')
  45. {
  46. $('#duplicateStoryBox').show();
  47. $('#childStoriesBox').hide();
  48. }
  49. else if(reason == 'subdivided')
  50. {
  51. $('#duplicateStoryBox').hide();
  52. $('#childStoriesBox').show();
  53. }
  54. else
  55. {
  56. $('#duplicateStoryBox').hide();
  57. $('#childStoriesBox').hide();
  58. }
  59. });
  60. $('#submitButton').click(function(){$('#closeForm').submit()});
  61. })
  62. </script>