product-attr.html
10.5 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
<div class="pageheader">
<div class="media">
<div class="pageicon pull-left">
<i class="fa fa-th-list"></i>
</div>
<div class="media-body">
<ul class="breadcrumb">
<li><a href="#"><i class="glyphicon glyphicon-home"></i></a></li>
<li><a href="#">产品属性管理</a></li>
<li>产品属性列表</li>
</ul>
<h4>产品属性列表</h4>
</div>
</div>
<!-- media -->
</div>
<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">
{{# data}}
<li class="list-group-item level{{sortLevel}} {{# child}}hidden{{/ child}}" data-parent="{{parentId}}" data-val="{{id}}" data-status="close">
<span class="icon expand-icon glyphicon glyphicon-plus"></span>
{{sortName}}
</li>
{{/ data}}
</ul>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div class="panel panel-default">
<div class="panel-heading noborder">
<button class="btn btn-success model-attr-btn" disabled data-toggle="modal" data-target="#addAttr">
<i class="glyphicon-plus"></i>添加属性
</button>
</div>
</div>
<div id="attr-table" class="table-responsive">
<!--<table class="table table-bordered">
<thead>
<tr>
<th width="15%">属性名称</th>
<th width="15%">属性类型</th>
<th width="15%">输入类型</th>
<th width="15%">是否必选</th>
<th width="15%">是否可搜索</th>
<th width="25%">操作</th>
</tr>
</thead>
<tbody></tbody>
</table>-->
</div>
</div>
</div>
</div>
<!--模态框-->
<div class="modal fade" id="addAttr" tabindex="-1" role="dialog" aria-labelledby="addAttr">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
aria-hidden="true">×</span></button>
<h4 class="modal-title" id="addAttrTitle">添加属性</h4>
</div>
<div class="modal-body">
<form id="add-attr-form" class="form-horizontal form-bordered" method="post" action="/product/attr/add">
<div class="form-group">
<label class="col-md-3 control-label">
属性名称<i>*</i>
</label>
<div class="col-md-6">
<input id="attributeName" class="form-control width300" type="text" placeholder="属性名称" required>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">
销售类型<i>*</i>
</label>
<div class="col-md-6">
<select id="saleType" class="attr-select width300" data-placeholder="销售类型" required>
<option value="0">请选择</option>
<option value="1">销售属性</option>
<option value="2">非销售属性</option>
<option value="3">扩展属性</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">
输入类型<i>*</i>
</label>
<div class="col-md-6">
<select id="inputType" class="attr-select width300" data-placeholder="输入类型" required>
<option value="0">请选择</option>
<option value="radio">单选按钮</option>
<option value="checkbox">复选框</option>
<option value="select">下拉列表</option>
<option value="input">单行文本框</option>
<option value="textarea">多行文本框</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">
是否必选
</label>
<div class="col-md-6">
<select id="isMust" class="attr-select width300" data-placeholder="是否必选">
<option value="0">请选择</option>
<option value="Y">是</option>
<option value="N">否</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">
启用搜索
</label>
<div class="col-md-6">
<select id="isSearch" class="attr-select width300" data-placeholder="启用搜索">
<option value="0">请选择</option>
<option value="Y">是</option>
<option value="N">否</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">
最大输入值
</label>
<div class="col-md-6">
<input id="maxValueLen" class="form-control width300" type="text" placeholder="最大输入值">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">
是否允许别名
</label>
<div class="col-md-6">
<select id="isAllowAlias" class="attr-select width300" data-placeholder="是否允许别名">
<option value="0">请选择</option>
<option value="Y">是</option>
<option value="N">否</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">
排序
</label>
<div class="col-md-6">
<input id="orderBy" class="form-control width300" type="text" placeholder="排序">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">
属性值<i>*</i>
</label>
<div class="col-md-6">
<input id="attributeValues" class="form-control width300" type="text" placeholder="属性值" required>
</div>
</div>
<!--新增-->
<div class="form-group">
<label class="col-md-3 control-label">
展示位置
</label>
<div class="col-md-6">
<select id="displayPosition" class="attr-select width300" data-placeholder="展示位置" required>
<option value="0">请选择</option>
<option value="1">基础商品-非销售属性</option>
<option value="2">网售信息-上架后补全信息</option>
<option value="3">网售信息-商品参数</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">
备注
</label>
<div class="col-md-6">
<textarea id="remark" class="form-control width300" rows="2" name="remark"></textarea>
</div>
</div>
<div class="form-group hidden">
<label class="col-md-3 control-label">
ID<i>*</i>
</label>
<div class="col-md-6">
<input id="categoryId" class="form-control width300" value="" type="text" placeholder="ID">
</div>
</div>
<div class="form-group hidden">
<label class="col-md-3 control-label">
attributeId<i>*</i>
</label>
<div class="col-md-6">
<input id="attributeId" class="form-control width300" value="" type="text" placeholder="attributeId">
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default m-t-20 add-attr-btn-close" data-dismiss="modal">关闭</button>
<button type="button" class="add-attr-btn btn btn-primary m-t-20">添加</button>
</div>
</div>
</div>
</div>