Edit.html 3.32 KB
<%include '../../common/__ui/header'%>
<%include '../../common/__partail/ListHeader'%>
<form id="materialForm" role="form" class="form-horizontal form-bordered" method="post" action="<%action%>">
    <input type="hidden" id="id" value="<%material.id%>">
    <div class="contentpanel">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title"><%title%></h3>
            </div>
            <div class="panel-body">
                <div class="row">
                    <div class="form-group">
                        <div class="col-sm-1 control-label">
                            <label>分类: </label>
                        </div>
                        <div class="col-sm-9">
                            <select name="productSortSelect" id="maxSortId" value="<%material.maxSortId%>" class="form-control" required></select>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-1 control-label">
                            <label>材质名称: </label>
                        </div>
                        <div class="col-sm-9">
                            <input form="materialForm" type="text" id="caption" value="<%material.caption%>" class="form-control" maxlength="20" required>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-1 control-label">
                            <label>英文名称: </label>
                        </div>
                        <div class="col-sm-9">
                            <input form="materialForm" type="text" id="encaption" value="<%material.encaption%>" class="form-control" maxlength="100" required>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-1 control-label">
                            <label>图片: </label>
                        </div>
                        <div class="col-sm-9">
                            <input type="file" name="materialPic" value="<%material.imageUrl%>" id="imageUrl" required>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-1 control-label">
                            <label>备注: </label>
                        </div>
                        <div class="col-sm-9">
                            <textarea form="materialForm" name="materialRemark" id="remark" rows="6" maxlength="474" class="form-control" required><%material.remark%></textarea>
                        </div>
                    </div>
                    <div style="text-align: center;">
                        <a href="javascript:;" class="btn btn-success submit-btn">提交</a>
                        <a href="/goods/material/index" class="btn btn-danger cancel-btn">取消</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>

<!-- 一级商品分类列表 -->
<script type="text/template" id="max-sort-template">
    <option value="">请选择分类</option>
    <%each maxSortIds as sort index%>
        <option value="<%sort.id%>"><%sort.sortName%></option>
    <%/each%>
</script>
<%include '../../common/__ui/footer'%>