Edit.html
2.99 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
<%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-1 control-label">分享名称</label>
<div class="col-sm-9">
<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-1 control-label">分享主标题</label>
<div class="col-sm-9">
<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-1 control-label">分享副标题</label>
<div class="col-sm-9">
<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-1 control-label">分享图片</label>
<div class="col-sm-9">
<input type="file" name="shareImage" data-field="shareImage" value="[[shareImage]]" />
</div>
</div>
<div class="form-group">
<label class="col-sm-1 control-label">跳转链接</label>
<div class="col-sm-9">
<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-1 control-label">状态</label>
<div class="col-sm-9">
<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>
</script>