m.change.html.php 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. /**
  3. * The change mobile 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->change ?></strong> #<?php echo $story->id ?></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('story', 'change', "id=$story->id")?>' id='changeForm' data-form-refresh='#page' enctype='multipart/form-data'>
  20. <div class='row'>
  21. <div class='cell'>
  22. <div class='control'>
  23. <label for='reviewedBy'><?php echo $lang->story->reviewedBy;?></label>
  24. <div class='select'><?php echo html::select('assignedTo', $users, $story->assignedTo);?></div>
  25. </div>
  26. <?php if(!$this->story->checkForceReview()):?>
  27. <div class='cell-2'>
  28. <div class='control' style='padding-top:30px; padding-left:5px;width:100px;'>
  29. <div class='checkbox'><?php echo html::checkbox('needNotReview', $lang->story->needNotReview, '', "id='needNotReview' {$needReview}");?></div>
  30. </div>
  31. </div>
  32. <?php endif;?>
  33. </div>
  34. </div>
  35. <div class="control">
  36. <label for='title'><?php echo $lang->story->title;?></label>
  37. <?php echo html::input('title', $story->title, "class='input' placeholder='{$lang->required}'");?>
  38. </div>
  39. <div class="control">
  40. <label for='desc'><?php echo $lang->story->spec;?></label>
  41. <?php echo html::textarea('spec', $story->spec, "rows=4 class='textarea' placeholder='" . htmlspecialchars($lang->story->specTemplate) . "'");?>
  42. </div>
  43. <div class="control">
  44. <label for='verify'><?php echo $lang->story->verify;?></label>
  45. <?php echo html::textarea('verify', $story->verify, "rows=2 class='textarea'");?>
  46. </div>
  47. <div class='control'>
  48. <label for='comment'><?php echo $lang->story->comment;?></label>
  49. <?php echo html::textarea('comment', '', 'rows=2 class="textarea"');?></td>
  50. </div>
  51. <div class='control'>
  52. <?php echo $this->fetch('file', 'buildForm', 'fileCount=1');?>
  53. </div>
  54. </form>
  55. <div class='footer has-padding'>
  56. <button type='button' id='submitButton' class='btn primary'><?php echo $lang->save ?></button>
  57. </div>
  58. <script>
  59. $(function()
  60. {
  61. if($('#needNotReview').prop('checked'))
  62. {
  63. $('#assignedTo').attr('disabled', 'disabled');
  64. }
  65. else
  66. {
  67. $('#assignedTo').removeAttr('disabled');
  68. }
  69. $('#needNotReview').change(function()
  70. {
  71. if($('#needNotReview').prop('checked'))
  72. {
  73. $('#assignedTo').attr('disabled', 'disabled');
  74. }
  75. else
  76. {
  77. $('#assignedTo').removeAttr('disabled');
  78. }
  79. });
  80. $('#submitButton').click(function(){$('#changeForm').submit()});
  81. })
  82. </script>