edit.html.php 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /**
  3. * The edit view of issue 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 Congzhi Chen <congzhi@cnezsoft.com>
  8. * @package issue
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  14. <?php include $app->getModuleRoot() . 'common/view/kindeditor.html.php';?>
  15. <div class="main-content" id="mainContent">
  16. <div class="main-header">
  17. <h2><?php echo $lang->issue->edit;?></h2>
  18. </div>
  19. <form method="post" class="main-form form-ajax" enctype="multipart/form-data" id="issueForm">
  20. <table class="table table-form">
  21. <tbody>
  22. <tr>
  23. <th><?php echo $lang->issue->type;?></th>
  24. <td class="required"><?php echo html::select('type', $lang->issue->typeList, $issue->type, 'class="form-control chosen"');?></td>
  25. </tr>
  26. <tr>
  27. <th><?php echo $lang->issue->title;?></th>
  28. <td class="required"><?php echo html::input('title', $issue->title, 'class="form-control"');?></td>
  29. </tr>
  30. <tr>
  31. <th><?php echo $lang->issue->risk;?></th>
  32. <td class="riskBox"><?php echo html::select('risk', $risks, $issue->risk, 'class="form-control chosen"');?></td>
  33. </tr>
  34. <tr>
  35. <th><?php echo $lang->issue->severity;?></th>
  36. <td class="required"><?php echo html::select('severity', $lang->issue->severityList, $issue->severity, 'class="form-control chosen"');?></td>
  37. </tr>
  38. <tr>
  39. <th><?php echo $lang->issue->project;?></th>
  40. <td><?php echo html::select('project', $projectList, $issue->project, "class='form-control chosen'");?></td>
  41. </tr>
  42. <tr>
  43. <th><?php echo $lang->task->execution;?></th>
  44. <td class='executionBox'><?php echo html::select('execution', $executions, $issue->execution, "class='form-control chosen'");?></td>
  45. </tr>
  46. <tr>
  47. <th><?php echo $lang->issue->pri;?></th>
  48. <td><?php echo html::select('pri', $lang->issue->priList, $issue->pri, 'class="form-control chosen"');?></td>
  49. </tr>
  50. <tr>
  51. <th><?php echo $lang->issue->deadline;?></th>
  52. <td><?php echo html::input('deadline', helper::isZeroDate($issue->deadline) ? '' : $issue->deadline, 'class="form-control form-date"');?></td>
  53. </tr>
  54. <tr>
  55. <th><?php echo $lang->issue->assignedTo;?></th>
  56. <td><?php echo html::select('assignedTo', $teamMembers, $issue->assignedTo, 'class="form-control chosen"');?></td>
  57. </tr>
  58. <tr>
  59. <th><?php echo $lang->issue->owner;?></th>
  60. <td><?php echo html::select('owner', $teamMembers, $issue->owner, 'class="form-control chosen"');?></td>
  61. </tr>
  62. <tr>
  63. <th><?php echo $lang->issue->desc;?></th>
  64. <td colspan='2'><?php echo html::textarea('desc', $issue->desc, 'row="6"');?></td>
  65. </tr>
  66. <tr>
  67. <th><?php echo $lang->files;?></th>
  68. <td><?php echo $this->fetch('file', 'buildoldform');?></td>
  69. </tr>
  70. <tr>
  71. <td colspan='3' class='text-center form-actions'><?php echo html::submitButton() . html::backButton($lang->goback, "data-app='{$app->tab}'");?></td>
  72. </tr>
  73. </tbody>
  74. </table>
  75. </form>
  76. </div>
  77. <?php js::set('projectID', $issue->project);?>
  78. <?php js::set('executionID', $issue->execution);?>
  79. <?php js::set('risk', $issue->risk);?>
  80. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>