Edit.html
5.01 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
<%include '../../common/__ui/header'%>
<%include '../../common/__partail/ListHeader'%>
<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">
<input type="hidden" id="module" value="wechat">
<% if data %>
<input type="hidden" id="id" value="<%data.id%>">
<input type="hidden" id="status" value="<%data.status%>">
<%/if%>
<div class="pannel">
<div class="panel-heading">
<h4>公众号基本信息</h4>
</div>
<div class="panel-body">
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">公众号名称1:</label>
<div class="col-sm-3">
<input type="text" id="wechat_name1" placeholder="公众号名称1" class="form-control" required value="<% if data%><% data.contentData[0].wechat_name %><%/if%>">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">公众号名称2:</label>
<div class="col-sm-3">
<input type="text" id="wechat_name2" placeholder="公众号名称2" class="form-control" required value="<% if data%><% data.contentData[1].wechat_name %><%/if%>">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">微信号1:</label>
<div class="col-sm-3">
<input type="text" id="wechat_id1" placeholder="微信号1" class="form-control" required value="<% if data%><% data.contentData[0].wechat_id %><%/if%>">
</div>
<span class="help-inline red">请确保微信号的正确性</span>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">微信号2:</label>
<div class="col-sm-3">
<input type="text" id="wechat_id2" placeholder="微信号2" class="form-control" required value="<% if data%><% data.contentData[1].wechat_id %><%/if%>">
</div>
<span class="help-inline red">请确保微信号的正确性</span>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">图片1</label>
<div class="col-sm-10">
<input type="file" id="wechat1_img" name="wechat1_img" class="required" value="<% if data%><% data.contentData[0].src %><%/if%>">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">图片2</label>
<div class="col-sm-10">
<input type="file" id="wechat2_img" name="wechat2_img" class="required" value="<% if data%><% data.contentData[1].src %><%/if%>">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="position">前端显示页面</label>
<div class="col-sm-3">
<select id="templateKey" name="templateKey" tabindex="-1" value="<%if data%><% data.templateKey %><%/if%>" class="select2-offscreen" style="width: 100%" required="required">
<option value="" selected="">请选择</option>
<option value="guang_detail_wechat">逛页面</option>
<option value="pay_success_wechat">支付完成页</option>
<option value="yoho_sign_wechat">YOHO币页面</option>
</select>
</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>
</div>
</div>
</div>
</form>
</div>