|
|
1
|
+<!-- 添加图标、楼层 -->
|
|
|
2
|
+<script type="text/template" id="icon-template">
|
|
|
3
|
+ <div class="panel-body">
|
|
|
4
|
+ <div>
|
|
|
5
|
+ <table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
6
|
+ <thead>
|
|
|
7
|
+ <tr>
|
|
|
8
|
+ <th>序号</th>
|
|
|
9
|
+ <th>图标</th>
|
|
|
10
|
+ <th>选项</th>
|
|
|
11
|
+ <th>操作</th>
|
|
|
12
|
+ </tr>
|
|
|
13
|
+ </thead>
|
|
|
14
|
+ <tbody>
|
|
|
15
|
+ [[each contentData.data as item index]]
|
|
|
16
|
+ <tr>
|
|
|
17
|
+ <td>
|
|
|
18
|
+ [[index+1]]
|
|
|
19
|
+ <!--<input type="hidden" value="[[index]]" data-field="[[index]].imgId">-->
|
|
|
20
|
+ </td>
|
|
|
21
|
+ <td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="[[index]].src"/>
|
|
|
22
|
+ </td>
|
|
|
23
|
+ <td>
|
|
|
24
|
+ <div class="col-sm-12">
|
|
|
25
|
+ <label class="col-sm-2">跳转目的</label>
|
|
|
26
|
+ <select name="goTo" class="form-control observe" value="[[item.url.action]]"
|
|
|
27
|
+ data-field="[[index]].url.action">
|
|
|
28
|
+ [[layout action_template]]
|
|
|
29
|
+ </select>
|
|
|
30
|
+ </div>
|
|
|
31
|
+ <div class="col-sm-12">
|
|
|
32
|
+ <label class="col-sm-2">图片链接</label>
|
|
|
33
|
+ <input value="[[item.url.url]]" class="form-control observe" required="required"
|
|
|
34
|
+ data-field="[[index]].url.url"/>
|
|
|
35
|
+
|
|
|
36
|
+ <p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
|
|
|
37
|
+ </div>
|
|
|
38
|
+ <div class="col-sm-12">
|
|
|
39
|
+ <label class="col-sm-2">图片描述</label>
|
|
|
40
|
+ <input value="[[item.alt]]" class="form-control observe" required="required"
|
|
|
41
|
+ data-field="[[index]].alt"/>
|
|
|
42
|
+ </div>
|
|
|
43
|
+ [[if contentData.template_name=='addfloor']]
|
|
|
44
|
+ <div class="col-sm-12">
|
|
|
45
|
+ <label class="col-sm-2">英文描述</label>
|
|
|
46
|
+ <input value="[[item.altEn]]" class="form-control observe" required="required"
|
|
|
47
|
+ data-field="list.[[index]].altEn"/>
|
|
|
48
|
+ </div>
|
|
|
49
|
+ [[/if]]
|
|
|
50
|
+ </td>
|
|
|
51
|
+ <td>
|
|
|
52
|
+ <a class="btn btn-danger" id="icon-delOne" data_index="[[index]]">删除</a>
|
|
|
53
|
+ </td>
|
|
|
54
|
+ </tr>
|
|
|
55
|
+ [[/each]]
|
|
|
56
|
+ </tbody>
|
|
|
57
|
+ </table>
|
|
|
58
|
+ </div>
|
|
|
59
|
+ <a href="JavaScript:;" id="icon-addOne" class="btn btn-primary btn-xs">添加一个</a>
|
|
|
60
|
+ </div>
|
|
|
61
|
+</script> |