diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/basetable_bottom.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/basetable_bottom.html | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html b/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html new file mode 100644 index 0000000000..ac14363798 --- /dev/null +++ b/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html | |||
@@ -0,0 +1,85 @@ | |||
1 | </tbody> | ||
2 | </table> | ||
3 | |||
4 | <!-- Show pagination controls --> | ||
5 | <div class="pagination pagination-centered"> | ||
6 | <div class="pull-left"> | ||
7 | Showing {{objects.start_index}} to {{objects.end_index}} out of {{objects.paginator.count}} entries. | ||
8 | </div> | ||
9 | |||
10 | <ul class="pagination" style="display: block-inline"> | ||
11 | {%if objects.has_previous %} | ||
12 | <li><a href="javascript:reload_params({'page':{{objects.previous_page_number}}})">«</a></li> | ||
13 | {%else%} | ||
14 | <li class="disabled"><a href="#">«</a></li> | ||
15 | {%endif%} | ||
16 | {% for i in objects.page_range %} | ||
17 | <li{%if i == objects.number %} class="active" {%endif%}><a href="javascript:reload_params({'page':{{i}}})">{{i}}</a></li> | ||
18 | {% endfor %} | ||
19 | {%if objects.has_next%} | ||
20 | <li><a href="javascript:reload_params({'page':{{objects.next_page_number}}})">»</a></li> | ||
21 | {%else%} | ||
22 | <li class="disabled"><a href="#">»</a></li> | ||
23 | {%endif%} | ||
24 | </ul> | ||
25 | <div class="pull-right"> | ||
26 | <span class="help-inline" style="padding-top:5px;">Show rows:</span> | ||
27 | <select style="margin-top:5px;margin-bottom:0px;" class="pagesize"> | ||
28 | {% with "2 5 10 25 50 100" as list%} | ||
29 | {% for i in list.split %}<option{%if i == request.GET.count %} selected{%endif%}>{{i}}</option> | ||
30 | {% endfor %} | ||
31 | {% endwith %} | ||
32 | </select> | ||
33 | </div> | ||
34 | </div> | ||
35 | |||
36 | <!-- Update page display settings --> | ||
37 | |||
38 | <script> | ||
39 | $(document).ready(function() { | ||
40 | |||
41 | // we load cookies for the column display | ||
42 | save = $.cookie('_displaycols_{{objectname}}'); | ||
43 | if (save != undefined) { | ||
44 | setting = save.split(';'); | ||
45 | for ( i = 0; i < setting.length; i++) { | ||
46 | if (setting[i].length > 0) { | ||
47 | splitlist = setting[i].split(':'); | ||
48 | id = splitlist[0], v = splitlist[1]; | ||
49 | if (v == 'true') { | ||
50 | $('.chbxtoggle#'+id).prop('checked', true); | ||
51 | } | ||
52 | else { | ||
53 | $('.chbxtoggle#'+id).prop('checked', false); | ||
54 | } | ||
55 | } | ||
56 | } | ||
57 | } | ||
58 | |||
59 | $('.chbxtoggle').each(function () { | ||
60 | showhideTableColumn($(this).attr('id'), $(this).is(':checked')) | ||
61 | }); | ||
62 | |||
63 | //turn edit columns dropdown into a multi-select menu | ||
64 | $('.dropdown-menu input, .dropdown-menu label').click(function(e) { | ||
65 | e.stopPropagation(); | ||
66 | }); | ||
67 | |||
68 | //show tooltip with applied filter | ||
69 | $('#filtered').tooltip({container:'table', placement:'bottom', delay:{hide:1500}, html:true}); | ||
70 | |||
71 | //progress bar tooltip | ||
72 | $('.progress, .lead span').tooltip({container:'table', placement:'top'}); | ||
73 | |||
74 | $(".pagesize").change(function () { | ||
75 | console.log("page size change"); | ||
76 | reload_params({"count":$(this).val()}); ; | ||
77 | }); | ||
78 | }); | ||
79 | </script> | ||
80 | |||
81 | <!-- modal filter boxes --> | ||
82 | {% for tc in tablecols %}{% if tc.filter %}{% with objectname=objectname f=tc.filter %} | ||
83 | {% include "filtersnippet.html" %} | ||
84 | {% endwith %}{% endif %} {% endfor %} | ||
85 | <!-- end modals --> | ||