@layout("/common/_container.html"){
|
<div class="ibox float-e-margins">
|
<div class="ibox-content">
|
<div class="form-horizontal" id="formId">
|
<input type="hidden" id="id" name="id" value="${item.id}">
|
<div class="row">
|
<div class="col-sm-10">
|
<#input id="classifyName" name="分类名称" value="${item.classifyName}" required="true"/>
|
<div class="form-group">
|
<label class="col-sm-3 control-label">状态</label>
|
<div class="col-sm-9">
|
<select class="form-control" id="isLock" name="isLock">
|
<option value="0" ${item.isLock==0?'selected="selected"':''}>正常</option>
|
<option value="1" ${item.isLock==1?'selected="selected"':''}>隐藏</option>
|
</select>
|
</div>
|
</div>
|
<!--上传图片标签-begin -->
|
<div class="form-group">
|
<label class="col-sm-3 control-label">分类图片</label>
|
<div class="col-sm-6">
|
<div id="classImagePreId">
|
<img id="classImageView" style="max-height:150px;">
|
<script type="text/javascript">
|
$("#classImageView").attr("src", Feng.getImageUrlFormat('${item.classImage!}'));
|
</script>
|
</div>
|
</div>
|
<div class="col-sm-2">
|
<div class="head-scu-btn upload-btn" id="classImageBtnId">
|
<i class="fa fa-upload"></i> 上传
|
</div>
|
</div>
|
<input type="hidden" id="classImage" value="${item.classImage!}"/>
|
</div>
|
<!--上传图片标签-end -->
|
</div>
|
</div>
|
|
<div class="row btn-group-m-t">
|
<div class="col-sm-10 col-sm-offset-5">
|
<#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="MallClassifyOneInfoDlg.editSubmit()"/>
|
<#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="MallClassifyOneInfoDlg.close()"/>
|
</div>
|
</div>
|
</div>
|
|
</div>
|
</div>
|
<script src="${ctxPath}/static/modular/mall/mallClassifyOne/mallClassifyOne_info.js"></script>
|
<!-- 上传图片 -->
|
<script src="${ctxPath}/static/js/common/web-upload-file.js"></script>
|
<script type="text/javascript">
|
// 初始化图片上传
|
new $WebUploadImage("classImage").init();
|
</script>
|
@}
|