pesteditModal.html 5.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <!-- Employee Form Modal -->
  2. <form id="gsmmEditForm" role="form" class="form-horizontal col-lg-12" enctype="multipart/form-data">
  3. {% csrf_token %}
  4. <div class="modal fade" id="gsmmEditModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  5. <div class="modal-dialog" role="document">
  6. <div class="modal-content">
  7. <div class="modal-header">
  8. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
  9. style="font-size:28px" aria-hidden="true">&times;</span></button>
  10. <h4 class="modal-title" id="myModalLabel">病虫害采集数据更新</h4>
  11. </div>
  12. <div class="modal-body">
  13. <input type="hidden" id="id" name="id">
  14. <div class="form-group">
  15. <label class="col-lg-2 control-label" for="date">调查日期:</label>
  16. <div class="col-lg-4"><input type="text" class="form-control" id="date" name="date"
  17. placeholder="必填" required></div>
  18. <label class="col-lg-2 control-label" for="adressid">区域编号:</label>
  19. <div class="col-lg-4"><input type="text" class="form-control" id="adressid" name="adressid"
  20. placeholder="必填" required></div>
  21. </div>
  22. <div class="form-group">
  23. <label class="col-lg-2 control-label" for="pestname">虫种:</label>
  24. <div class="col-lg-4">
  25. <select id="pestname" name="pestname" class="form-control">
  26. <option value=0>-请选择-</option>
  27. </select>
  28. </div>
  29. <label class="col-lg-2 control-label" for="pestfirstgrade">害虫时期:</label>
  30. <div class="col-lg-4">
  31. <select id="pestfirstgrade" name="pestfirstgrade" class="form-control">
  32. <option value=0>-请选择-</option>
  33. </select>
  34. <select id="pestsecondgrade" name="pestsecondgrade" class="form-control">
  35. <option value=0>-请选择-</option>
  36. </select>
  37. </div>
  38. </div>
  39. <div class="form-group">
  40. <label class="col-lg-2 control-label" for="longitude">经度:</label>
  41. <div class="col-lg-4"><input type="text" class="form-control" id="longitude"
  42. name="longitude" placeholder="必填" required></div>
  43. <label class="col-lg-2 control-label" for="latitude">纬度:</label>
  44. <div class="col-lg-4"><input type="text" class="form-control" id="latitude" name="latitude"
  45. placeholder="必填" required></div>
  46. </div>
  47. <div class="form-group">
  48. <label class="col-lg-2 control-label" for="researchperson">调查者:</label>
  49. <div class="col-lg-4">
  50. <select id="researchperson" name="researchperson" class="form-control">
  51. <option value=0>-请选择-</option>
  52. </select>
  53. </div>
  54. </div>
  55. <div class="form-group">
  56. <label class="col-lg-2 control-label" for="remark">备注:</label>
  57. <div class="col-lg-10"><textarea type="text" class="form-control" id="remark"
  58. name="remark"></textarea></div>
  59. </div>
  60. <div class="form-group">
  61. <label class="col-lg-2 control-label">害虫图片:</label>
  62. <div class="col-lg-5">
  63. <input type="file" id="file" name="file"/>
  64. </div>
  65. <div class="col-lg-5">
  66. <input type="button" id="picupload1" value="上传图片1"/>
  67. <input type="button" id="picupload2" value="上传图片2"/>
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="col-lg-2 control-label" for="pestpicurl1">图片1:</label>
  72. <div class="col-lg-10"><input type="text" class="form-control" id="pestpicurl1"
  73. name="pestpicurl1" placeholder="上传图片外链"></div>
  74. </div>
  75. <div class="form-group">
  76. <label class="col-lg-2 control-label" for="pestpicurl2">图片2:</label>
  77. <div class="col-lg-10"><input type="text" class="form-control" id="pestpicurl2"
  78. name="pestpicurl2" placeholder="上传图片外链"></div>
  79. </div>
  80. <div class="form-group">
  81. <label class="col-lg-2 control-label">图片预览:</label>
  82. <div class="col-lg-10">
  83. <img id="pestpic1" src="" style="width:220px;height:150px"/>
  84. <img id="pestpic2" src="" style="width:220px;height:150px"/>
  85. </div>
  86. </div>
  87. </div>
  88. <div class="modal-footer">
  89. <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  90. <button id="submit" type="submit" class="btn btn-primary">Save</button>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. </form>