Edit.html
3.33 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
<%include '../../common/views/__ui/header'%>
<%include '../../common/views/__partail/ListHeader'%>
<div class="contentpanel">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-body nopadding">
<form id="new-class-form" class="form-horizontal form-bordered" method="post" action="<%action%>">
</form>
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-success">保存</button>
<a href="/erpproduct/sort/index" class="btn btn-danger">取消</a>
</div>
</div>
</div>
</div>
</div>
<script type="text/template" id="template">
<div class="form-group">
<label class="col-md-2 control-label">
物理类目<span class="red">*</span>
</label>
<div class="col-md-5">
<input id="sortName" class="form-control" required type="text" value="[[sortName]]" placeholder="品类名称">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">
品类缩写<span class="red">*</span>
</label>
<div class="col-md-5">
<input id="sortInitials" class="form-control" required type="text" value="[[sortInitials]]" placeholder="品类缩写">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">
分类
</label>
<div class="col-md-5">
<div id="sortTree"></div>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">性别
<span class="red">*</span>
</label>
<div class="col-md-5">
<select id="gender" value="[[gender]]" tabindex="3" class="form-control height40" name="gender">
<option value="3">通用</option>
<option value="1">男</option>
<option value="2">女</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">图标
<span class="red"></span>
</label>
<div class="col-md-5">
<input type="file" id="sortIco" name="sortIco" value="[[sortIco]]">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">排序
<span class="red">*</span>
</label>
<div class="col-md-5">
<input id="orderBy" class="form-control" required value="[[orderBy]]" type="number" placeholder="">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">状态</label>
<div class="col-md-5 form-inline">
<div class="radio">
<label><input type="radio" value="1" name="status">开启</label>
</div>
<div class="radio" style="margin-left: 10px">
<label><input type="radio" value="0" name="status">关闭</label>
</div>
<input id="status" type="hidden" value="[[status||'0']]" for="radio">
</div>
</div>
<input id="id" class="form-control" type="hidden" value="[[id]]">
</script>
<%include '../../common/views/__ui/footer'%>