bannerEdit.html
7.91 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
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<div class="contentpanel">
<div class="row">
<div class="col-md-12">
<form id="basicForm" role="form" class="form-horizontal form-bordered" method="post" action="<%action%>" novalidate="novalidate">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">添加模块</h4>
</div>
<div class="panel-body">
<div class="row">
<div class="form-group">
<label class="col-sm-1 control-label">名称</label>
<div class="col-sm-8">
<input type="text" id="caption" name="caption" class="form-control" placeholder="名称" value="<%data.caption%>" maxlength="200"/>
<input type="hidden" id="id" name="id" value="<%data.id%>"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-1 control-label">位置</label>
<div class="col-sm-4">
<select id="postionId" class="form-control" required placeholder="位置">
<option value="[[postionId||'-1']]"><%data.positionName%></option>
</select>
</div>
<label class="col-sm-1 control-label">样式</label>
<div class="col-sm-2">
<select id="templetId" class="form-control" required placeholder="样式">
<option value="[[templetId||'-1']]"><%data.templetName%></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-1 control-label">分类</label>
<div class="col-sm-4">
<div id="sortTree" style="width: 100%"></div>
</div>
<label class="col-sm-1 control-label">性别</label>
<div class="col-sm-2">
<label class="radio-inline">
<input type="radio" name="gender" value="1">男</label>
<label class="radio-inline">
<input type="radio" name="gender" value="2">女</label>
<label class="radio-inline">
<input type="radio" name="gender" value="3">通用</label>
<input type="hidden" id="gender" name="gender" value="<%data.gender%>" for="radio" required />
</div>
</div>
<div class="form-group">
<label class="col-sm-1 control-label">标题</label>
<div class="col-sm-8">
<input type="text" id="caption" name="caption" class="form-control" placeholder="标题" value="" maxlength="200"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-1 control-label">副标题</label>
<div class="col-sm-8">
<input type="text" id="caption" name="caption" class="form-control" placeholder="副标题" value="" maxlength="200"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-1 control-label">内容</label>
<div class="col-sm-8">
<script id="banner" type="text/plain" style="width:100%;height:300px;"></script>
<input type="hidden" id="searchBanner" name="banner" value="<%data.data%>">
</div>
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">搜索参数</h4>
</div>
<div class="panel-body">
<div class="row">
<div class="form-group">
<label class="col-sm-1 control-label">价格</label>
<div class="col-sm-4">
<input type="text" id="caption" name="caption" class="form-control" placeholder="价格" value="<%data.price%>" maxlength="10"/>
</div>
<label class="col-sm-1 control-label">尺码</label>
<div class="col-sm-4">
<select id="sizeId" class="form-control" required placeholder="尺码">
<option value="[[sizeId||'-1']]"><%data.colorName%></option>
</select>
</div>
</div>
<div class="form-group" id="styleDiv">
</div>
<div class="form-group" id="colorDiv">
</div>
<div class="form-group">
<label class="col-sm-1 control-label">品牌</label>
<div class="col-sm-11">
<input type="text" id="caption" name="caption" class="form-control" placeholder="价格" value="<%data.price%>" maxlength="200"/>
</div>
</div>
</div>
</div>
<div class="panel-footer">
<div class="row">
<div class="col-sm-8 col-sm-offset-2">
<a href="javascript:;" onclick="history.go(-1);" class="btn btn-default">取消</a>
<button id="save_banner" type="submit" data-loading-text="保存中..." class="btn delay-btn btn-success">保存</button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<script type="text/template" id="templateStyle">
<label class="col-sm-1 control-label">风格</label>
<div class="col-sm-11">
[[each data as item index ]]
<label class="radio-inline">
<input type="checkbox" name="style" data-index=[[__index]] class="attr_checkobx_class" value="[[item.id]]">[[item.text]]</label>
[[/each]]
<input type="hidden" id="style" value="[[selectStyle||'']]" for="checkbox"/>
</div>
</script>
<script type="text/template" id="templateColor">
<label class="col-sm-1 control-label">颜色</label>
<div class="col-sm-11">
[[each list as item index ]]
<label class="radio-inline">
<input type="radio" name="color" data-index=[[__index]] class="attr_radio_class" value="[[item.id]]">[[item.colorName]]</label>
[[/each]]
<input type="hidden" id="color" value="[[selectColor||'']]" for="radio"/>
</div>
</script>
<%include '../../../common/views/__ui/footer'%>