edit.html.php 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  2. <?php include $app->getModuleRoot() . 'common/view/kindeditor.html.php';?>
  3. <div id="mainContent" class="main-content fade">
  4. <div class="center-block">
  5. <div class="main-header">
  6. <h2><?php echo $lang->review->edit;?></h2>
  7. </div>
  8. <form class="load-indicator main-form form-ajax" method='post' enctype='multipart/form-data' id='dataform'>
  9. <table class="table table-form">
  10. <tbody>
  11. <?php if($this->session->hasProduct and $project->model != 'ipd'):?>
  12. <tr>
  13. <th><?php echo $lang->review->product;?></th>
  14. <td><?php echo html::select('product', $products, $review->product, "class='form-control chosen'");?></td>
  15. </tr>
  16. <?php else:?>
  17. <?php echo html::hidden('product', $review->product);?>
  18. <?php endif;?>
  19. <tr>
  20. <th class='w-120px'><?php echo $lang->review->object;?></th>
  21. <td><?php echo html::select('object', $lang->baseline->objectList, $review->category, "class='form-control chosen' disabled");?></td>
  22. <td></td>
  23. </tr>
  24. <tr>
  25. <th><?php echo $lang->review->title;?></th>
  26. <td><?php echo html::input('title', $review->title, "class='form-control'");?></td>
  27. </tr>
  28. <tr>
  29. <th><?php echo $lang->review->deadline;?></th>
  30. <td><?php echo html::input('deadline', helper::isZeroDate($review->deadline) ? '' : $review->deadline, "class='form-date form-control'");?></td>
  31. </tr>
  32. <tr>
  33. <th><?php echo $lang->review->comment;?></th>
  34. <td colspan='2'><?php echo html::textarea('comment', '', "class='form-control'");?></td>
  35. </tr>
  36. <tr>
  37. <th><?php echo $lang->files;?></th>
  38. <td colspan='2'>
  39. <?php echo $this->fetch('file', 'printFiles', array('files' => $review->files, 'fieldset' => 'false', 'object' => $review, 'method' => 'edit'));?>
  40. <?php echo $this->fetch('file', 'buildoldform');?>
  41. </td>
  42. </tr>
  43. <tr>
  44. <td colspan='3' class='form-actions text-center'><?php echo html::submitButton() . html::backButton();?></td>
  45. </tr>
  46. </tbody>
  47. </table>
  48. </form>
  49. </div>
  50. </div>
  51. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>
  52. <?php js::set('stageEndDate', $stageEndDate);?>
  53. <?php js::set('stageBeginDate', $stageBeginDate);?>
  54. <script>
  55. $(function()
  56. {
  57. $('#deadline').datetimepicker('setStartDate', stageBeginDate);
  58. $('#deadline').datetimepicker('setEndDate', stageEndDate);
  59. });
  60. </script>