m.edit.html.php 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. /**
  3. * The edit mobile view file of effort 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 effort
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <div class='heading divider'>
  14. <span class='title'><i class='icon-pencil'></i> <strong><?php echo $lang->effort->edit ?></strong> #<?php echo $effort->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' action='<?php echo $this->createLink('effort', 'edit', "id=$effort->id")?>' id='editForm' data-form-refresh='#page'>
  20. <div class="control">
  21. <label for='date'><?php echo $lang->effort->date;?></label>
  22. <input type='date' name='date' value='<?php echo $effort->date?>' class='input' />
  23. </div>
  24. <div class='row'>
  25. <div class='cell-6'>
  26. <div class="control">
  27. <label for='consumed'><?php echo $lang->effort->consumed;?></label>
  28. <?php echo html::input('consumed', $effort->consumed, "class='input'")?>
  29. </div>
  30. </div>
  31. <div class='cell-6'>
  32. <div class="control">
  33. <label for='left'><?php echo $lang->effort->left;?></label>
  34. <?php echo html::input('left', $effort->left, "class='input'")?>
  35. </div>
  36. </div>
  37. </div>
  38. <div class='row'>
  39. <div class='cell'>
  40. <div class="control">
  41. <label for='objectType'><?php echo $lang->effort->objectType;?></label>
  42. <div class='select'><?php echo html::select('objectType', $lang->effort->objectTypeList, $effort->objectType)?></div>
  43. </div>
  44. </div>
  45. <div class='cell'>
  46. <div class="control">
  47. <label for='objectID'><?php echo $lang->effort->objectID;?></label>
  48. <?php echo html::input('objectID', $effort->objectID, "class='input'")?>
  49. </div>
  50. </div>
  51. </div>
  52. <div class="control">
  53. <label for='work'><?php echo $lang->effort->work;?></label>
  54. <?php echo html::input('work', $effort->work, "class='input'")?>
  55. </div>
  56. </form>
  57. <div class='footer has-padding'>
  58. <button type='button' id='submitButton' class='btn primary'><?php echo $lang->save ?></button>
  59. </div>
  60. <script>
  61. $(function()
  62. {
  63. $('#submitButton').click(function()
  64. {
  65. if(checkTaskLeft("<?php echo $lang->effort->noticeFinish;?>"))
  66. {
  67. $('#editForm').submit()
  68. }
  69. });
  70. });
  71. </script>