create.html.php 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. /**
  3. * The create view file of deploy 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 deploy
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <?php include '../../common/view/header.modal.html.php';?>
  14. <?php include $app->getModuleRoot() . 'common/view/datepicker.html.php';?>
  15. <?php include $app->getModuleRoot() . 'common/view/chosen.html.php';?>
  16. <?php include $app->getModuleRoot() . 'common/view/kindeditor.html.php';?>
  17. <div id='mainContent' class='main-content'>
  18. <?php if(!helper::isAjaxRequest()):?>
  19. <div class='main-header'>
  20. <h2><?php echo $lang->deploy->create;?></h2>
  21. </div>
  22. <?php endif;?>
  23. <form class='load-indicator main-form' method='post' target='hiddenwin' action='<?php echo inlink('create', "product=$product")?>'>
  24. <table class='table table-form'>
  25. <tr>
  26. <th><?php echo $lang->deploy->name;?></th>
  27. <td colspan='2'>
  28. <?php echo html::input('name', '', "class='form-control' autocomplete='off'");?>
  29. </td>
  30. </tr>
  31. <tr>
  32. <th><?php echo $lang->deploy->desc;?></th>
  33. <td colspan='2'><?php echo html::textarea('desc', '', "rows='10' class='form-control'");?></td>
  34. </tr>
  35. <tr>
  36. <th class='w-100px'><?php echo $lang->deploy->owner;?></th>
  37. <td class='w-p30'>
  38. <?php echo html::select('owner', $users, '', "class='form-control chosen'");?>
  39. </td><td></td>
  40. </tr>
  41. <tr>
  42. <th><?php echo $lang->deploy->lblBeginEnd;?></th>
  43. <td>
  44. <div class='input-group'>
  45. <?php echo html::input('begin', '', "class='form-control form-datetime' placeholder='{$lang->deploy->begin}' data-picker-position='top-right'");?>
  46. <span class='input-group-addon fix-border'>~</span>
  47. <?php echo html::input('end', '', "class='form-control form-datetime' placeholder='{$lang->deploy->end}' data-picker-position='top-right'");?>
  48. </div>
  49. </td>
  50. </tr>
  51. <tr>
  52. <th><?php echo $lang->deploy->members;?></th>
  53. <td colspan='2'><?php echo html::select('members[]', $users, '', "class='form-control chosen' multiple");?></td>
  54. </tr>
  55. <tr>
  56. <th><?php echo $lang->deploy->lblProduct;?></th>
  57. <td colspan='2'>
  58. <div class='table-row'>
  59. <div class='table-col productCol'>
  60. <div class='input-group'>
  61. <span class='input-group-addon'><?php echo $lang->deploy->product?></span>
  62. <?php echo html::select('product[]', $products, $product, "class='form-control chosen' onchange='loadRelease(this)'");?>
  63. </div>
  64. </div>
  65. <div class='table-col releaseCol'>
  66. <div class='input-group'>
  67. <span class='input-group-addon'><?php echo $lang->deploy->release?></span>
  68. <?php echo html::select('release[]', $releases, '', "class='form-control chosen'");?>
  69. </div>
  70. </div>
  71. <div class='table-col packageCol'>
  72. <div class='input-group w-p100'>
  73. <span class='input-group-addon'><?php echo $lang->deploy->package?></span>
  74. <?php echo html::input('package[]', '', "class='form-control'");?>
  75. </div>
  76. </div>
  77. <div class='table-col actionCol'>
  78. <div class='btn-group'>
  79. <?php echo html::commonButton("<i class='icon icon-plus'></i>", "onclick='addItem(this)'");?>
  80. <?php echo html::commonButton("<i class='icon icon-close'></i>", "onclick='removeItem(this)'");?>
  81. </div>
  82. </div>
  83. </div>
  84. </td>
  85. </tr>
  86. <tr>
  87. <td colspan='3' class='text-center form-actions'>
  88. <?php echo html::submitButton();?>
  89. <?php echo html::backButton();?>
  90. </td>
  91. </tr>
  92. </table>
  93. </form>
  94. </div>
  95. <?php include '../../common/view/footer.modal.html.php';?>