Edit.html
6.81 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
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<style type="text/css" media="all">
.fileinput-button {
width: 284px;
height: 200px;
}
.fileinput-button .fileinput-button-icon {
height: auto;
line-height: auto;
}
input[type=file] {
height: 200px;
width: 284px;
}
</style>
<div class="data.contentDatapanel">
<form id="add-form" class="form-horizontal form-bordered" type="<%type%>" action="<%action%>">
<div class="panel-group">
<div class="panel-group" id="editor-group">
<% if data %>
<input type="hidden" id="id" value="<%data.id%>">
<%/if%>
<div class="pannel">
<div class="panel-body">
<div class="row">
<% if data %>
<div class="form-group">
<label class="col-sm-2 control-label">组合套餐号:</label>
<div class="col-sm-3"> <p class="form-control-static"><% data.id %></p> </div>
</div>
<%/if%>
<div class="form-group">
<label class="col-sm-2 control-label">有效时间:</label>
<div class="col-sm-2">
<input id="beginTimeStr" data-time="" value="<%if data%><% data.beginTimeStr %><%/if%>" type="text" class="form-control" jsaction="time" placeholder="开始时间" readonly required>
</div>
<div class="col-sm-1" style="width: 28px;">~</div>
<div class="col-sm-2">
<input id="endTimeStr" data-time="" value="<%if data%><% data.endTimeStr %><%/if%>" type="text" class="form-control" jsaction="time" placeholder="结束时间" readonly required>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">套餐商品:</label>
<div class="col-sm-4">
<input type="hidden" id="productSkn" value="">
<table class="table table-bordered">
<thead>
<tr>
<th>SKN</th>
<th>排序</th>
</tr>
</thead>
<tbody>
<tr>
<td> <input type="text" name="productSkn" class="form-control" maxlength="10" style="width: 150px;" value="<% if data%><% data.productSkn1 %><%/if%>"> </td>
<td>
<button type="button" class="btn btn-default btn-sm btn-down"><span class="glyphicon glyphicon-chevron-down"></span></button>
</td>
</tr>
<tr>
<td> <input type="text" name="productSkn" class="form-control" maxlength="10" style="width: 150px;" value="<% if data%><% data.productSkn2 %><%/if%>"> </td>
<td>
<div class="btn-group">
<button type="button" class="btn btn-default btn-sm btn-up"><span class="glyphicon glyphicon-chevron-up"></span></button>
<button type="button" class="btn btn-default btn-sm btn-down"><span class="glyphicon glyphicon-chevron-down"></span></button>
</div>
</td>
</tr>
<tr>
<td> <input type="text" name="productSkn" class="form-control" maxlength="10" style="width: 150px;" value="<% if data%><% data.productSkn3 %><%/if%>"> </td>
<td>
<div class="btn-group">
<button type="button" class="btn btn-default btn-sm btn-up"><span class="glyphicon glyphicon-chevron-up"></span></button>
<button type="button" class="btn btn-default btn-sm btn-down"><span class="glyphicon glyphicon-chevron-down"></span></button>
</div>
</td>
</tr>
<tr>
<td> <input type="text" name="productSkn" class="form-control" maxlength="10" style="width: 150px;" value="<% if data%><% data.productSkn4 %><%/if%>"> </td>
<td><button type="button" class="btn btn-default btn-sm btn-up"><span class="glyphicon glyphicon-chevron-up"></span></button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">优惠力度:</label>
<div class="col-sm-3">
<input type="text" id="discount" placeholder="折扣" class="form-control" required maxlength="10" value="<% if data%><% data.discount %><%/if%>">
<span class="help-inline red">支持0.01-1之间的数字</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="pannel">
<div class="col-md-10"></div>
<div class="col-md-2">
<input id="add-btn" class="btn btn-success add-btn" type="button" value="保存"></input>
<a class="btn btn-default btn-sm" href="/product/bundle/index">取消</a>
</div>
</div>
</div>
</form>
</div>