Edit.html
4.38 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
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title"><%pageName%></h4>
</div><!-- panel-heading -->
<div class="panel-body">
<div class="row" id="edit-content" data-id="<%id%>" url="<%url%>">
</div><!-- row -->
</div><!-- panel-body -->
<div class="panel-footer">
<div class="row">
<div class="col-sm-9 col-sm-offset-3">
<a id="save_btn" class="btn btn-primary mr5">保存</a>
<a href="/operations/webshare/index" class="btn btn-primary mr5">取消</a>
</div>
</div>
</div><!-- panel-footer -->
</div>
<script type="text/template" id="edit-template">
<div class="form-group">
<label class="col-sm-2 control-label">分享名称</label>
<div class="col-sm-8">
<input maxlength="128" type="text" name="title" class="form-control observe" placeholder="活动分享名称" required="" value="[[title]]" data-field="title">
<p style="color:#999">注:分享名称必填</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">分享主标题</label>
<div class="col-sm-8">
<input maxlength="128" type="text" name="share_title_main" class="form-control observe" placeholder="分享主标题" value="[[shareTitleMain]]" data-field="shareTitleMain">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">分享副标题</label>
<div class="col-sm-8">
<input maxlength="128" type="text" name="share_title_sub" class="form-control observe" placeholder="分享副标题" value="[[shareTitleSub]]" data-field="shareTitleSub">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">分享图片</label>
<div class="col-sm-8">
<input type="file" name="shareImage" data-field="shareImage" value="[[shareImage]]" />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">大图</label>
<div class="col-sm-8">
<input type="file" name="bigImage" data-field="bigImage" value="[[bigImage]]" />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">跳转链接</label>
<div class="col-sm-8">
<input type="text" name="share_url" class="form-control observe" placeholder="跳转链接" required="" value="[[shareUrl]]" data-field="shareUrl">
<p style="color:#999">注:必填,链接中不能有英文单引号</p>
</div>
</div><!-- form-group -->
<div class="form-group" hidden id="choose-status">
<label class="col-sm-2 control-label">状态</label>
<div class="col-sm-8">
<select name="status" id="status" style="width:120px;" tabindex="-1" value="[[status]]" class="form-control observe" data-field="status">
<option value="">选择状态</option>
<option value="0">关闭</option>
<option value="1">开启</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">分享领劵的劵ID</label>
<div class="col-sm-8">
<input maxlength="10" type="text" name="coupon_id" class="form-control observe" placeholder="分享领劵的劵ID" value="[[couponId]]" data-field="couponId">
<p style="color:#999; margin-top: 5px">注:劵ID必须为数字且长度不能超过10位</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">劵生效的起止时间</label>
<div class="col-sm-8">
<div class="col-sm-4">
<input type="text" class="form-control observe" jsaction="time:end:couponEndTime" data-field="couponStartTime" id="couponStartTime"
placeholder="开始时间" value="[[couponStartTime]]" readonly >
</div>
<div class="col-sm-4">
<input type="text" class="form-control observe" jsaction="time:start:couponStartTime" data-field="couponEndTime" id="couponEndTime"
placeholder="结束时间" value="[[couponEndTime]]" readonly >
</div>
</div>
</div>
</script>