list.pt
1.36 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
<html metal:use-macro="load: ./base_list.pt">
<div metal:fill-slot="content">
<div class="jarviswidget jarviswidget-color-blueLight"> <!-- jarviswidget -->
<header role="heading" class="txt-color-grayDark">
<h2>
<i class="fa fa-fw fa-table"></i>
${request.title}
</h2>
</header>
<div role="content">
<div class="widget-body">
<div class="dataTables_wrapper form-inline no-footer">
<table id="table1" class="table table-bordered table-hover table-condensed">
<thead>
<tr>
<th tal:repeat="col cols">${col.title}</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div> <!-- widget-body -->
</div>
</div>
</div>
<!-- metal:content -->
<script metal:fill-slot="scripts">
var mID;
var oTable;
//var oTableUri = "${home}/${url}"
//var oTableUrl = oTableUri + "/grid/act";
var columnDefs =${structure:col_defs};
var columns =${structure:cols};
var tb_array = [
'<div class="btn-group pull-left">',
${structure:buttons},
' ',
'</div>',
]
</script>
</html>