Edit.html
3.37 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
<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>
</div>
<div class="contentpanel">
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">销售类目编辑</h2>
</div>
<div class="panel-body">
<form id="basicForm" role="form" action="{{action}}" class="form-horizontal form-bordered">
{{# data}}
{{#unless addRootCategory}}
<div class="form-group">
<label class="col-sm-2 control-label">父分类</label>
<div class="col-sm-8 height40">{{# parentSC}}{{categoryName}}{{# items}}-{{categoryName}}{{/ items}}{{/ parentSC}}</div>
</div>
{{/unless}}
<div class="form-group">
<label class="col-sm-2 control-label">分类名称</label>
<div class="col-sm-8"><input type="text" id="categoryName" name="categoryName" class="form-control" placeholder="分类名称" value="{{categoryName}}"></div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">分类图标</label>
<div class="col-sm-8"><input type="file" id="icon" name="icon" value="{{icon}}" placeholder="分别图标"></div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">物理类目关联</label>
<div class="col-sm-8 sort-wrap">
<div class="row">
<div class="col-sm-4">
<div class="sortTree"></div>
</div>
<div class="col-sm-2 height40">
<a class="btn btn-danger btn-xs del-sort-btn" style="display: none;" href="javascript:;">-</a>
<a class="btn btn-info btn-xs add-sort-btn" href="javascript:;">+</a>
</div>
</div>
</div>
</div>
<input id="parentId" type="hidden" value="{{parentId}}">
{{/ data}}
</form>
</div>
<div class="panel-footer">
<div class="col-sm-8 col-sm-offset-2">
<a id="save_brand" data-loading-text="保存中..." class="btn btn-primary" href="javascript:;">保存</a>
<a href="javascript:;" onclick="history.go(-1);" class="btn btn-danger">取消</a>
</div>
</div>
</div>
</div>
<script type="text/template" id="sortWrap">
<div class="row">
<div class="col-sm-6">
<div class="sortTree"></div>
</div>
<div class="col-sm-2 height40">
<a class="btn btn-danger btn-xs del-sort-btn" href="javascript:;">-</a>
<a class="btn btn-info btn-xs add-sort-btn" href="javascript:;">+</a>
</div>
</div>
</script>