edit.jsp 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <meta charset="utf-8">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <%@ include file="../../../common/head.jsp"%>
  9. </head>
  10. <body>
  11. <div class="wrapper wrapper-content">
  12. <div class="row">
  13. <div class="col-sm-12">
  14. <cs:form_validate formId="editVersionForm" />
  15. <form class="form-horizontal" id="editVersionForm" action="edit.cs"
  16. method="POST" enctype="multipart/form-data">
  17. <div class="form-group">
  18. <label class="col-sm-3 control-label">平台:</label>
  19. <div class="col-sm-6">
  20. <input id="id" name="id" value="${v.id}" class="form-control"
  21. type="hidden"> <select class="form-control" name="plat">
  22. <option value="android"
  23. <c:if test="${v.plat eq 'android'}">selected</c:if>>Android</option>
  24. <option value="ios"
  25. <c:if test="${v.plat eq 'ios'}">selected</c:if>>IOS</option>
  26. </select>
  27. </div>
  28. </div>
  29. <div class="form-group">
  30. <label class="col-sm-3 control-label">版本号:</label>
  31. <div class="col-sm-6">
  32. <input id="version" name="version" value="${v.version}"
  33. class="form-control" validate="{required:true, minlength:3}"
  34. validateMessage="{required:'请输入版本号',minlength:'至少三个字符以上'}">
  35. </div>
  36. </div>
  37. <div class="form-group">
  38. <label class="col-sm-3 control-label">强制更新:</label>
  39. <div class="col-sm-6">
  40. <select class="form-control" name="compel">
  41. <option value="1" <c:if test="${v.compel}">selected</c:if>>启用</option>
  42. <option value="0" <c:if test="${!v.compel}">selected</c:if>>禁用</option>
  43. </select>
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="col-sm-3 control-label">上传版本:</label>
  48. <div class="col-sm-6">
  49. <input type="file" name="app" class="form-control">
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="col-sm-3 control-label">版本更新内容:</label>
  54. <div class="col-sm-6">
  55. <textarea class="form-control" name="remark" rows="4" cols="">${v.remark}</textarea>
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <div class="col-sm-4 col-sm-offset-3 pull-left">
  60. <button class="btn btn-default btn-dlg-close">取消</button>
  61. <button class="btn btn-primary" type="submit">提交</button>
  62. </div>
  63. </div>
  64. </form>
  65. </div>
  66. </div>
  67. </div>
  68. </body>
  69. </html>