Edit.html 2.58 KB
<%include '../../common/views/__ui/header'%>
<%include '../../common/views/__partail/ListHeader'%>
<div class="contentpanel">
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default">

                <div class="panel-body nopadding">

                    <form id="new-class-form" class="form-horizontal form-bordered" method="post" action="<%action%>">
                        
                    </form>
                </div>

                <div class="panel-footer">
                    <button type="submit" class="btn btn-success">保存</button>
                    <a href="/erpproduct/sort/index" class="btn btn-danger">取消</a>
                </div>
            </div>
        </div>

    </div>
</div>

<script type="text/template" id="template">
    <div class="form-group">
        <label class="col-md-2 control-label">
            物理类目<span class="red">*</span>
        </label>

        <div class="col-md-5">
            <input id="sortName" class="form-control" required type="text" value="[[sortName]]" placeholder="品类名称">
        </div>
    </div>

    <div class="form-group">
        <label class="col-md-2 control-label">
            品类缩写<span class="red">*</span>
        </label>

        <div class="col-md-5">
            <input id="sortInitials" class="form-control" required type="text" value="[[sortInitials]]" placeholder="品类缩写">
        </div>
    </div>

    <div class="form-group">
        <label class="col-md-2 control-label">
            分类
        </label>

        <div class="col-md-5">
            <div id="sortTree"></div>
        </div>
    </div>


    <div class="form-group">
        <label class="col-md-2 control-label">排序
            <span class="red">*</span>
        </label>

        <div class="col-md-5">
            <input id="orderBy" class="form-control" required value="[[orderBy]]" type="number" placeholder="">
        </div>
    </div>

    <div class="form-group">
        <label class="col-md-2 control-label">状态</label>
        <div class="col-md-5 form-inline">
            <div class="radio">
                <label><input type="radio" value="1" name="status">开启</label>
            </div>
            <div class="radio" style="margin-left: 10px">
                <label><input type="radio" value="0" name="status">关闭</label>
            </div>
            <input id="status" type="hidden" value="[[status||'0']]" for="radio">
        </div>
    </div>
    <input id="id" class="form-control" type="hidden" value="[[id]]">
</script>
<%include '../../common/views/__ui/footer'%>