CateSizeAttr.html 3.93 KB
<%include '../../common/views/__ui/header'%>
<%include '../../common/views/__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="glyphicon-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>
        [[if name=="尺码"]]
        <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>
        [[/if]]
        [[if name=="尺码属性"]]
        <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="[[attributeName]]" class="form-control" readonly/>
            </div>
            [[else]]
            <div class="col-sm-6" id="attri-content">

            </div>
            [[/if]]
        </div>
        [[/if]]
        <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>
<script type="text/template" id="search-attri">
    <select id="choose-attri" 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/views/__ui/footer'%>