create.html.php 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?php
  2. /**
  3. * The create view of release module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(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 Chunsheng Wang <chunsheng@cnezsoft.com>
  8. * @package release
  9. * @version $Id: create.html.php 4728 2013-05-03 06:14:34Z chencongzhi520@gmail.com $
  10. * @link https://www.zentao.net
  11. */
  12. ?>
  13. <?php include '../../common/view/header.html.php';?>
  14. <?php include '../../common/view/kindeditor.html.php';?>
  15. <?php js::set('projectID', $projectID);?>
  16. <div id='mainContent' class='main-content'>
  17. <div class='center-block'>
  18. <div class='main-header'>
  19. <h2><?php echo $lang->release->create;?></h2>
  20. </div>
  21. <form class='load-indicator main-form form-ajax' id='dataform' method='post' enctype='multipart/form-data'>
  22. <table class='table table-form'>
  23. <tbody>
  24. <tr>
  25. <th class='w-120px'><?php echo $lang->release->name;?></th>
  26. <td><?php echo html::input('name', '', "class='form-control' required");?></td>
  27. <td>
  28. <?php if(!$product->shadow):?>
  29. <div id='markerBox' class='checkbox-primary'>
  30. <input id='marker' name='marker' value='1' type='checkbox' />
  31. <label for='marker'><?php echo $lang->release->marker;?></label>
  32. </div>
  33. <?php endif;?>
  34. <?php if($lastRelease) echo '(' . $lang->release->last . ': ' . $lastRelease->name . ')';?>
  35. </td>
  36. </tr>
  37. <?php if($product->shadow):?>
  38. <?php echo html::hidden('product', $product->id);?>
  39. <?php else:?>
  40. <tr>
  41. <th><?php echo $lang->release->product;?></th>
  42. <td><?php echo html::select('product', $products, $product->id, "onchange='loadBuilds()' class='form-control chosen'");?></td>
  43. <td></td>
  44. </tr>
  45. <?php endif;?>
  46. <tr>
  47. <th><?php echo $lang->release->includedBuild;?></th>
  48. <td id='buildBox'><?php echo html::select('build[]', $builds, '', "class='form-control picker-select' multiple data-placeholder='{$lang->build->placeholder->multipleSelect}'");?></td>
  49. <td>
  50. <div class="checkbox-primary">
  51. <input type="checkbox" name="sync" value="1" id="sync" checked>
  52. <label for="sync"><?php echo $lang->release->syncFromBuilds?></label>
  53. </div>
  54. </td>
  55. </tr>
  56. <tr>
  57. <th><?php echo $lang->release->date;?></th>
  58. <td><?php echo html::input('date', helper::today(), "class='form-control form-date' required");?></td><td></td>
  59. </tr>
  60. <tr class='hide'>
  61. <th><?php echo $lang->release->status;?></th>
  62. <td><?php echo html::hidden('status', 'normal', "disabled");?></td>
  63. <td></td>
  64. </tr>
  65. <?php $this->printExtendFields('', 'table');?>
  66. <tr>
  67. <th><?php echo $lang->release->desc;?></th>
  68. <td colspan='2'><?php echo html::textarea('desc', '', "rows='10' class='form-control kindeditor' hidefocus='true'");?></td>
  69. </tr>
  70. <tr>
  71. <th><?php echo $lang->release->mailto;?></th>
  72. <td colspan='2'>
  73. <div class="input-group">
  74. <?php echo html::select('mailto[]', $users, '', "class='form-control picker-select' data-placeholder='{$lang->chooseUsersToMail}' multiple");?>
  75. </div>
  76. </td>
  77. </tr>
  78. <tr>
  79. <th><?php echo $lang->files;?></th>
  80. <td colspan='2'><?php echo $this->fetch('file', 'buildform');?></td>
  81. </tr>
  82. <tr>
  83. <td colspan='3' class='text-center form-actions'>
  84. <?php echo html::submitButton();?>
  85. <?php echo html::backButton();?>
  86. </td>
  87. </tr>
  88. </tbody>
  89. </table>
  90. </form>
  91. </div>
  92. </div>
  93. <?php js::set('multipleSelect', $lang->build->placeholder->multipleSelect);?>
  94. <?php include '../../common/view/footer.html.php';?>