m.activate.html.php 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * The activate mobile view file of testtask 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 testtask
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <div class='heading divider'>
  14. <span class='title'><strong><?php echo $lang->testtask->activate ?></strong> #<?php echo $testtask->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('testtask', 'activate', "id=$testtask->id")?>' id='activateForm' data-form-refresh='#page'>
  20. <div class='control'>
  21. <label for='comment'><?php echo $lang->comment;?></label>
  22. <?php echo html::textarea('comment', '', 'rows=4 class="textarea"');?></td>
  23. </div>
  24. </form>
  25. <div class='footer has-padding'>
  26. <button type='button' id='submitButton' class='btn primary'><?php echo $lang->save ?></button>
  27. </div>
  28. <script>
  29. $(function()
  30. {
  31. $('#submitButton').click(function(){$('#activateForm').submit()});
  32. })
  33. </script>