list.pt 1.36 KB
<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},
        '	&nbsp;',
        '</div>',
    ]


</script>
</html>