m.edit.html.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. /**
  3. * The feedback edit mobile view file of feedback module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2016 禅道软件(青岛)有限公司(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 Fei Chen <chenfei@cnezsoft.com>
  8. * @package feedback
  9. * @version $Id
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <div class='heading divider'>
  14. <div class='title'><i class='icon-plus muted'></i> <strong><?php echo $lang->feedback->edit;?></strong></div>
  15. <nav class='nav'><a data-dismiss='display'><i class='icon icon-remove muted'></i></a></nav>
  16. </div>
  17. <form class='content box' data-form-refresh='#page' method='post' id='createForm' action='<?php echo $this->createLink('feedback', 'edit', "feedbackID=$feedback->id");?>' target='hiddenwin' enctype='multipart/form-data'>
  18. <div class="control">
  19. <label for='module'><?php echo $lang->feedback->product;?></label>
  20. <div class='select'><?php echo html::select('product', $products, $feedback->product);?></div>
  21. </div>
  22. <div class='control'>
  23. <label for='name'><?php echo $lang->feedback->title;?></label>
  24. <?php echo html::input('title', $feedback->title, "class='input' placeholder='{$lang->required}'");?>
  25. </div>
  26. <div class='control'>
  27. <div class='checkbox'>
  28. <input type='checkbox' id='public' name='public' value='1' <?php if($feedback->public) echo 'checked'?>>
  29. <label for='public'> <?php echo $lang->feedback->public;?></label>
  30. </div>
  31. </div>
  32. <div class='control'>
  33. <label for='desc'><?php echo $lang->feedback->desc;?></label>
  34. <?php echo html::textarea('desc', $feedback->desc, "rews='5' class='textarea'");?>
  35. </div>
  36. <div class='control'>
  37. <?php echo $this->fetch('file', 'buildForm', 'fileCount=1');?>
  38. </div>
  39. <div class='control'>
  40. <div class='checkbox'>
  41. <input type='checkbox' id='notify' name='notify' value='1' <?php if($feedback->notify) echo 'checked'?>>
  42. <label for='notify'> <?php echo $lang->feedback->mailNotify;?></label>
  43. </div>
  44. </div>
  45. </form>
  46. <div class='footer has-padding'>
  47. <button type='button' id='submitButton' class='btn primary'><?php echo $lang->save;?></button>
  48. </div>
  49. <script>
  50. $(function()
  51. {
  52. $('#submitButton').click(function(){$('#createForm').submit()});
  53. });
  54. </script>