Index.html
6 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
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<div class="contentpanel">
<div class="panel panel-default" style="margin-bottom:10px;">
<div class="panel-body" style="padding-bottom: 0">
<a class="btn btn-success " id="add-entry"><i class="fa fa-plus"></i> 添加入口信息</a>
</div>
<div class="panel-body">
<div class="row">
<div class="panel-col">
<select id="entrance-status" tabindex="-1" title="" class="select2-offscreen brandBtn-group">
<option value="">请选择状态</option>
<option value="0">关闭</option>
<option value="1">开启</option>
</select>
</div>
<div class="panel-col">
<select id="entrance-platform" title="" class="select2-offscreen brandBtn-group">
<option value="" selected="">请选择类别</option>
<option value="1">手机</option>
<option value="2">ipad</option>
</select>
</div>
<div class="panel-col">
<a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
<a id="filter-all" href="/operations/entrance/index" class="btn btn-info">全部</a>
</div>
</div>
</div>
</div>
<div class="panel">
<div class="panel-body nopadding">
<div id="entrance-list"></div>
</div>
</div>
</div>
<script type="text/template" id="template-add">
<div class="row" id="base-form">
<div class="form-group">
<label class="col-sm-2 control-label">入口名称</label>
<div class="col-sm-8">
<input type="hidden" id="id" value="[[id]]"/>
<input type="text" data-field="entryName" value="[[entryName]]" class="form-control observe"
placeholder="入口名称" required="required">
</div>
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-2 control-label">点击前图片名</label>
<div class="col-sm-8">
<input type="text" value="[[clickBeforeImg]]" data-field="clickBeforeImg" placeholder="点击前的图片名称"
class="form-control observe" required="required"/>
<p style="color:#999">注:图片文件的文件名。如:123.png</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">点击后图片名</label>
<div class="col-sm-8">
<input type="text" value="[[clickAfterImg]]" data-field="clickAfterImg" placeholder="点击后的图片名称"
class="form-control observe" required="required"/>
<p style="color:#999">注:图片文件的文件名。如:123.png</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">上传</label>
<div class="col-sm-8">
<input id="zipUrl" value="[[zipUrl]]" class="form-control" type="text" disabled="disabled"
style="cursor:default">
<div class="col-sm-4" style="position: relative">
<input id="zip" name="zip" extend="zip" type="file" style="position: absolute; top: 0;left: 0;">
<div class="file-name btn btn-default">请选择文件</div>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">url地址</label>
<div class="col-sm-4">
<select id="intent" name="goTo" class="form-control">
[[layout action_template]]
</select>
</div>
<div class="col-sm-4">
<input id="url" value="[[url]]" class="form-control" placeholder="URL地址" required="required"/>
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">类别</label>
<div class="col-sm-8">
<select value="[[platform]]" data-field="platform" id="platform" style="width: 177px" tabindex="-1"
class="observe">
<option value="1">手机</option>
<option value="2">ipad</option>
</select>
</div>
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-2 control-label">排序</label>
<div class="col-sm-4">
<input type="text" value="[[orderBy]]" data-field="orderBy" class="form-control observe number"
placeholder="排序"/>
</div>
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-2 control-label">频道ID</label>
<div class="col-sm-4">
<input data-field="channelId" class="form-control observe number" type="text" placeholder="频道ID"
value="[[channelId]]"/>
</div>
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-2 control-label">性别</label>
<div class="col-sm-4">
<select value="[[gender]]" data-field="gender" style="width: 177px" id="gender" tabindex="-1" title=""
class="select2-offscreen observe">
<option value="1,3">男</option>
<option value="2,3">女</option>
<option value="1,2,3">通用</option>
</select>
</div>
</div><!-- form-group -->
</div>
</script>
<%include '../../../resource/views/__partail/actions'%>