edit.html.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. /**
  3. * The edit 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: edit.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. <div id='mainContent' class='main-content'>
  16. <div class='center-block'>
  17. <div class='main-header'>
  18. <h2>
  19. <span class='prefix'><?php echo html::icon($lang->icons['release']);?> <strong><?php echo $release->id;?></strong></span>
  20. <strong><?php echo html::a(inlink('view', "release=$release->id"), $release->name);?></strong>
  21. <small><?php echo $lang->arrow . ' ' . $lang->release->edit;?></small>
  22. </h2>
  23. </div>
  24. <form class='load-indicator main-form form-ajax' method='post' target='hiddenwin' id='dataform' enctype='multipart/form-data'>
  25. <table class='table table-form'>
  26. <tbody>
  27. <tr>
  28. <th class='w-120px'><?php echo $lang->release->name;?></th>
  29. <td><?php echo html::input('name', $release->name, "class='form-control' required");?></td>
  30. <?php if(!$product->shadow):?>
  31. <td>
  32. <?php $checked = !empty($release->marker) ? "checked='checked'" : '';?>
  33. <div id='markerBox' class='checkbox-primary'>
  34. <input id='marker' name='marker' value='1' type='checkbox' <?php echo $checked;?> />
  35. <label for='marker'><?php echo $lang->release->marker;?></label>
  36. </div>
  37. </td>
  38. <?php endif;?>
  39. </tr>
  40. <tr>
  41. <th><?php echo $lang->release->includedBuild;?></th>
  42. <td><?php echo html::select('build[]', $builds, $release->build, "class='form-control chosen' multiple data-placeholder='{$lang->build->placeholder->multipleSelect}'"); ?></td><td></td>
  43. </tr>
  44. <tr>
  45. <th><?php echo $lang->release->date;?></th>
  46. <td><?php echo html::input('date', $release->date, "class='form-control form-date' required");?></td><td></td>
  47. </tr>
  48. <tr>
  49. <th><?php echo $lang->release->status;?></th>
  50. <td><?php echo html::select('status', $lang->release->statusList, $release->status, "class='form-control'");?></td><td></td>
  51. </tr>
  52. <?php $this->printExtendFields($release, 'table');?>
  53. <tr>
  54. <th><?php echo $lang->release->desc;?></th>
  55. <td colspan='2'><?php echo html::textarea('desc', htmlSpecialString($release->desc), "rows=10 class='form-control kindeditor' hidefocus='true'");?></td>
  56. </tr>
  57. <tr>
  58. <th><?php echo $lang->release->mailto;?></th>
  59. <td colspan='2'>
  60. <div class="input-group">
  61. <?php echo html::select('mailto[]', $users, $release->mailto, "class='form-control picker-select' data-placeholder='{$lang->chooseUsersToMail}' multiple");?>
  62. </div>
  63. </td>
  64. </tr>
  65. <tr>
  66. <th><?php echo $lang->files;?></th>
  67. <td colspan='2'><?php echo $this->fetch('file', 'buildform');?></td>
  68. </tr>
  69. <tr>
  70. <td colspan='3' class='text-center form-actions'>
  71. <?php echo html::submitButton();?>
  72. <?php echo html::backButton();?>
  73. <?php echo html::hidden('product', $release->product);?>
  74. </td>
  75. </tr>
  76. </tbody>
  77. </table>
  78. </form>
  79. </div>
  80. </div>
  81. <?php include '../../common/view/footer.html.php';?>