edit.jsp 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
  2. <%@ page isELIgnored="false" %>
  3. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
  4. <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
  5. <%
  6. String basePath = request.getContextPath();
  7. %>
  8. <jsp:include page="../../../common/admin/modal_content_pre.jsp"><jsp:param name="modal_title" value="编辑"/></jsp:include>
  9. <form id="formEdit" action="<%=basePath%>/admin/refund/doEdit.action" method="post" role="form">
  10. <input type="hidden" name="id" value="${busiModel.id}" />
  11. <div class="form-group">
  12. <label for="orderNumber">订单编号</label>
  13. <input id="orderNumber" name="orderNumber" <c:if test="${not empty busiModel.orderNumber}">disabled</c:if> value="${busiModel.orderNumber}" class="form-control" rows="3" cols="20"></input>
  14. <span class="help-block"></span>
  15. </div>
  16. <div class="form-group">
  17. <label for="username">用户名</label>
  18. <input type="text" id="username" name="username" value="${busiModel.username}" class="form-control" />
  19. <span class="help-block"></span>
  20. </div>
  21. <div class="form-group">
  22. <label for="refundAmount">退款金额</label>
  23. <input type="number" id="refundAmount" name="refundAmount" value="${busiModel.refundAmount}" οninput="value=value.replace(/[^\d]/g,'')" class="form-control" />
  24. <span class="help-block"></span>
  25. </div>
  26. <div class="form-group">
  27. <label for="operatorName">退款操作人姓名</label>
  28. <input type="text" id="operatorName" name="operatorName" value="${busiModel.operatorName}" class="form-control" />
  29. <span class="help-block"></span>
  30. </div>
  31. <%--<div class="form-group">
  32. <label for="createdAt">注册日期</label>
  33. <div class="input-group date">
  34. <input type="text" id="createdAt" readonly name="createdAt" value="<fmt:formatDate value='${busiModel.createdAt}' type='date' pattern="yyyy-MM-dd"/>" class="form-control" />
  35. <span class="input-group-addon">
  36. <span class="glyphicon glyphicon-calendar"></span>
  37. </span>
  38. </div>
  39. <span class="field-validation-valid help-block"></span>
  40. </div>--%>
  41. <div class="form-group">
  42. <label for="description">描述</label>
  43. <textarea id="description" name="description" class="form-control" rows="3" cols="20">
  44. ${busiModel.description}
  45. </textarea>
  46. <span class="field-validation-valid help-block"></span>
  47. </div>
  48. </form>
  49. <jsp:include page="../../../common/admin/modal_content_post.jsp"></jsp:include>
  50. <jsp:include page="../../../common/admin/modal_footer_pre.jsp"></jsp:include>
  51. <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-close"></i>取消</button>
  52. <button type="button" id="btnSave" class="btn btn-primary"><i class="fa fa-check"></i>保存</button>
  53. <script type="text/javascript">
  54. $("#btnSave").click(function() {
  55. $('#formEdit').ajaxSubmitCloseRefresh();
  56. });
  57. $(".input-group.date").datetimepicker({
  58. format: "YYYY-MM-DD",
  59. locale: "zh-cn"
  60. });
  61. </script>
  62. <jsp:include page="../../../common/admin/modal_footer_post.jsp"></jsp:include>