create.html.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <?php
  2. /**
  3. * The create 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" <?php if(isonlybody()) echo 'style="margin-top: 40px;"';?>>
  16. <div class="center-block">
  17. <div class="main-header">
  18. <h2><?php echo $lang->issue->create;?></h2>
  19. </div>
  20. <form method="post" class="main-form form-ajax" enctype="multipart/form-data" id="issueForm">
  21. <table class="table table-form">
  22. <tbody>
  23. <tr>
  24. <th><?php echo $lang->issue->type;?></th>
  25. <td class="required"><?php echo html::select('type', $lang->issue->typeList, '', 'class="form-control chosen"');?></td>
  26. <td></td>
  27. <td></td>
  28. </tr>
  29. <tr>
  30. <th><?php echo $lang->issue->title;?></th>
  31. <td class="required"><?php echo html::input('title', '', 'class="form-control"');?></td>
  32. <td></td>
  33. <td></td>
  34. </tr>
  35. <tr>
  36. <th><?php echo $lang->issue->risk;?></th>
  37. <td class="riskBox"><?php echo html::select('risk', $risks, '', 'class="form-control chosen"');?></td>
  38. </tr>
  39. <tr>
  40. <th><?php echo $lang->issue->severity;?></th>
  41. <td class="required"><?php echo html::select('severity', $lang->issue->severityList, '', 'class="form-control chosen"');?></td>
  42. <td></td>
  43. <td></td>
  44. </tr>
  45. <tr>
  46. <th><?php echo $lang->task->execution;?></th>
  47. <td><?php echo html::select('execution', $executions, isset($executionID) ? $executionID : '', "class='form-control chosen'");?></td>
  48. <td></td>
  49. <td></td>
  50. </tr>
  51. <tr>
  52. <th><?php echo $lang->issue->pri;?></th>
  53. <td><?php echo html::select('pri', $lang->issue->priList, '3', 'class="form-control chosen"');?></td>
  54. <td></td>
  55. <td></td>
  56. </tr>
  57. <tr>
  58. <th><?php echo $lang->issue->assignedTo;?></th>
  59. <td><?php echo html::select('assignedTo', $teamMembers, '', 'class="form-control chosen"');?></td>
  60. <td></td>
  61. <td></td>
  62. </tr>
  63. <tr>
  64. <th><?php echo $lang->issue->owner;?></th>
  65. <td><?php echo html::select('owner', $teamMembers, $app->user->account, 'class="form-control chosen"');?></td>
  66. <td></td>
  67. <td></td>
  68. </tr>
  69. <tr>
  70. <th><?php echo $lang->issue->deadline;?></th>
  71. <td><?php echo html::input('deadline', '', 'class="form-control form-date"');?></td>
  72. <td></td>
  73. <td></td>
  74. </tr>
  75. <?php if($from == 'stakeholder'):?>
  76. <tr>
  77. <th><?php echo $lang->issue->owner;?></th>
  78. <td><?php echo html::select('owner', $owners, $owner, 'class="form-control chosen"');?></td>
  79. <td></td>
  80. <td></td>
  81. </tr>
  82. <?php endif;?>
  83. <tr>
  84. <th><?php echo $lang->issue->desc;?></th>
  85. <td colspan="3"><?php echo html::textarea('desc', '', 'row="6"');?></td>
  86. </tr>
  87. <tr>
  88. <th><?php echo $lang->files;?></th>
  89. <td><?php echo $this->fetch('file', 'buildoldform');?></td>
  90. </tr>
  91. <tr>
  92. <td colspan='4' class='text-center form-actions'><?php echo html::submitButton() . html::backButton($lang->goback, "data-app='{$app->tab}'");?></td>
  93. </tr>
  94. </tbody>
  95. </table>
  96. </form>
  97. </div>
  98. </div>
  99. <?php js::set('projectID', $projectID)?>
  100. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>