12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <%@ page language="java" contentType="text/html; charset=UTF-8"
- pageEncoding="UTF-8"%>
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <%@ include file="../../common/head.jsp"%>
- <cs:initFile/>
- </head>
- <body>
- <div class="wrapper wrapper-content">
- <div class="row">
- <div class="col-sm-12">
- <cs:form_validate formId="addMenuForm"/>
- <form class="form-horizontal" action="edit.cs" id="addMenuForm" method="POST">
- <input type="hidden" id="id" name="id" value="${mgmProductCategory.id }"/>
-
- <div class="form-group">
- <label class="col-sm-3 control-label">名称:</label>
- <div class="col-sm-6">
- <input id="gcName" name="gcName" value="${mgmProductCategory.gcName }" class="form-control" validate="{required:true, minlength:1}" validateMessage="{required:'请输入菜单名称,不能重复',minlength:'至少一个字符以上'}" >
- </div>
- </div>
- <c:if test="${mgmProductCategory.type == '1' && mgmProductCategory.num==1}">
-
- <div id="xm" class="form-group" >
- <label class="col-sm-3 control-label">所属项目:</label>
- <div class="col-sm-6">
- <select class="form-control m-b" id="projectId" name="projectId" validate="{required:true}" validateMessage="{required:'请选择所属项目'}" >
- <option value="0">请选择</option>
- <c:forEach items="${project }" var="superMenu">
- <option value="${superMenu.id }" <c:if test="${mgmProductCategory.projectId == superMenu.id}">selected</c:if>>${superMenu.name}</option>
- </c:forEach>
- </select>
- </div>
- </div>
- </c:if>
- <div class="form-group">
- <label class="col-sm-3 control-label">分类图标:</label>
- <div class="col-sm-6">
- <cs:file name="gcIcon" type="100" url="${mgmProductCategory.gcIcon }" num="1"></cs:file>
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-sm-3 control-label">权重:</label>
- <div class="col-sm-6">
- <input id="gcSort" name="gcSort" value="${mgmProductCategory.gcSort }" class="form-control" validate="{required:true, min:0}" validateMessage="{required:'请输入分类关键字',min:'请输入大于零的数字'}" >
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-sm-3 control-label">关键字:</label>
- <div class="col-sm-6">
- <input id="gcKeywords" name="gcKeywords" value="${mgmProductCategory.gcKeywords }" class="form-control" validate="{required:true, minlength:1}" validateMessage="{required:'请输入分类关键字',minlength:'至少一个字符以上'}" >
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-sm-3 control-label">描述:</label>
- <div class="col-sm-6">
- <textarea rows="12" cols="" id="gcDesc" name="gcDesc" class="form-control">${mgmProductCategory.gcDesc }</textarea>
- </div>
- </div>
-
- <div class="form-group">
- <div class="col-sm-4 col-sm-offset-3 pull-left">
- <button class="btn btn-default btn-dlg-close">取消</button>
- <button class="btn btn-primary" type="submit">提交</button>
- </div>
- </div>
-
- </form>
- </div>
- </div>
- </div>
- </body>
- </html>
|