CateSizeAttr.html
3.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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
<%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" id="cateSizeListUL">
<%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= "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="[[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'%>