m.review.html.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * The review mobile view file of testcase 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 testcase
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <div class='heading divider'>
  14. <div class='title'><i class='icon-plus muted'></i> <strong><?php echo $lang->testcase->review; ?></strong></div>
  15. <nav class='nav'><a data-dismiss='display'><i class='icon icon-remove muted'></i></a></nav>
  16. </div>
  17. <form class='has-padding content' method='post' action='<?php echo $this->createLink('testcase', 'review', http_build_query($this->app->getParams()))?>' id='reviewForm' data-form-refresh='#page' target='hiddenwin'>
  18. <div class="control">
  19. <label for='reviewedDate'><?php echo $lang->testcase->reviewedDate;?></label>
  20. <?php echo html::input('reviewedDate', helper::today(), "class='input'");?>
  21. </div>
  22. <div class="control">
  23. <label for='result'><?php echo $lang->testcase->reviewResult;?></label>
  24. <div class='select'><?php echo html::select('result', $lang->testcase->reviewResultList, '');?></div>
  25. </div>
  26. <div class="control">
  27. <label for='reviewedBy'><?php echo $lang->testcase->reviewedBy;?></label>
  28. <div class='select'><?php echo html::select('reviewedBy[]', $users, $this->app->user->account, 'multiple');?></div>
  29. </div>
  30. <div class="control">
  31. <label for='comment'><?php echo $lang->comment;?></label>
  32. <?php echo html::textarea('comment', '', "rows='1' class='textarea' data-default-val");?>
  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. $('#submitButton').click(function(){ $('#reviewForm').submit() });
  42. })
  43. </script>