Blame view

code/apps/baserule/views/CateSizeAttr.html 3.16 KB
weiqingting authored
1 2 3 4 5 6 7 8
<%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">
lijian authored
9
                        <ul class="list-group" id="cateSizeListUL">
姜敏 authored
10 11 12 13
                            <%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">
weiqingting authored
14 15 16
                                <span class="icon expand-icon glyphicon glyphicon-plus"></span>
                                <%item.sortName%>
                            </li>
姜敏 authored
17 18
                            <%/each%>
                            <%/if%>
weiqingting authored
19 20 21 22 23 24 25 26
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-9">
            <div class="panel panel-default">
                <div class="panel-heading noborder">
lijian authored
27
                    <button id="btn-add" class="btn btn-success model-attr-btn" disabled= "disabled">
28
                        <i class="fa fa-plus"></i> 尺码属性
weiqingting authored
29 30 31
                    </button>
                </div>
            </div>
姜敏 authored
32
            <div id="basicTable" class="table-responsive">
weiqingting authored
33 34 35 36 37 38 39 40 41 42 43 44
            </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">
姜敏 authored
45 46
                <input type="text" value="[[sortName]]" class="form-control observe" required data-field="sortName"
                       readonly/>
weiqingting authored
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
            </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="[[attributeName]]" class="form-control" readonly/>
            </div>
            [[else]]
            <div class="col-sm-6" id="attri-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-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'%>