CateSize.html 3.04 KB
<%include '../common/__ui/header'%>
<%include '../common/__partail/ListHeader'%>
<div class="contentpanel">
    <div class="row">
        <div class="col-md-3">
            <div class="panel panel-default noborder pattrscroll">
                <div class="panel-body">
                    <div class="pannel-scroll">
                        <ul class="list-group">
                        <%if data%>
                        	<%each data as item%>
                            <li class="list-group-item level<%item.sortLevel%> <%if item.child%>hidden<%/if%>" data-parent="<%item.parentId%>" data-val="<%item.id%>" data-status="close">
                                <span class="icon expand-icon glyphicon glyphicon-plus"></span>
                                <%item.sortName%>
                            </li>
	                            <%/each%>
	                	<%/if%>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-9">
            <div class="panel panel-default">
                <div class="panel-heading noborder">
                    <button id="btn-add" class="btn btn-success model-attr-btn" disabled>
                        <i class="fa fa-plus"></i> 添加尺码
                    </button>
                </div>
            </div>
           <div id="basicTable" class="table-responsive">
            </div>
        </div>
    </div>
</div>

<!--编辑模态-->
<script type="text/template" id="template">
    <div class="rows" id="baseform">
        <div class="form-group">
            <label class="col-sm-2 control-label">当前分类<i class="red">*</i></label>

            <div class="col-sm-6">
                <input type="text" value="[[sortName]]" class="form-control observe" required data-field="sortName" readonly/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">[[name]]<i class="red">*</i></label>
            [[if __state=='update']]
            <div class="col-sm-6">
                <input type="text" value="[[sizeName]]" class="form-control observe" data-field="sizeName" readonly/>
            </div>
            [[else]]
            <div class="col-sm-6" id="sort-content">

            </div>
            [[/if]]
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">排序<i class="red">*</i></label>

            <div class="col-sm-6">
                <input type="text" value="[[orderBy]]" class="form-control observe" data-field="orderBy" match="numbers"
                       required placeholder="排序值" required/>
            </div>
        </div>

    </div>
</script>
<script type="text/template" id="search-sort">
    <select id="choose-sort" title="" class="select2-offscreen form-control" required placehoder="尺码">
        <option value="">选择尺码</option>
        [[each data as item index]]
        <option value="[[item.id]]">[[item.text]]</option>
        [[/each]]
    </select>
</script>
<%include '../common/__ui/footer'%>