edit.jsp 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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="addDicForm"/>
  15. <form class="form-horizontal" action="edit.cs" id="addDicForm" method="POST">
  16. <div class="form-group">
  17. <label class="col-sm-3 control-label">类型:</label>
  18. <div class="col-sm-6">
  19. <input id="id" name="id" value="${dic.id }" class="form-control" type="hidden" >
  20. <input id="type" name="type" value="${dic.type }" class="form-control" validate="{required:true}" validateMessage="{required:'请输入类型'}" >
  21. </div>
  22. </div>
  23. <div class="form-group">
  24. <label class="col-sm-3 control-label">代码:</label>
  25. <div class="col-sm-6">
  26. <input id="code" name="code" value="${dic.code }" class="form-control" validate="{required:true}" validateMessage="{required:'请输入code,不能重复'}" >
  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="name" name="name" value="${dic.name }" class="form-control" validate="{required:true}" validateMessage="{required:'请输入名称'}" >
  33. </div>
  34. </div>
  35. <div class="form-group">
  36. <label class="col-sm-3 control-label">值:</label>
  37. <div class="col-sm-6">
  38. <input id="val" name="value" value="${dic.value }" class="form-control" validate="{required:true}" validateMessage="{required:'请输入字典值'}" >
  39. </div>
  40. </div>
  41. <div class="form-group">
  42. <label class="col-sm-3 control-label">描述:</label>
  43. <div class="col-sm-6">
  44. <input id="note" name="note" value="${dic.note }" class="form-control" >
  45. </div>
  46. </div>
  47. <!-- <div class="form-group"> -->
  48. <!-- <label class="col-sm-3 control-label">:</label> -->
  49. <!-- <div class="col-sm-6"> -->
  50. <!-- <input id="weight" name="weight" class="form-control" > -->
  51. <!-- </div> -->
  52. <!-- </div> -->
  53. <div class="form-group">
  54. <div class="col-sm-4 col-sm-offset-3 pull-left">
  55. <button class="btn btn-default btn-dlg-close">取消</button>
  56. <button class="btn btn-primary" type="submit">提交</button>
  57. </div>
  58. </div>
  59. </form>
  60. </div>
  61. </div>
  62. </div>
  63. </body>
  64. </html>