summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/basetable_bottom.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/basetable_bottom.html95
1 files changed, 95 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..e6b9506281
--- /dev/null
+++ b/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html
@@ -0,0 +1,95 @@
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}}})">&laquo;</a></li>
13{%else%}
14 <li class="disabled"><a href="#">&laquo;</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}}})">&raquo;</a></li>
21{%else%}
22 <li class="disabled"><a href="#">&raquo;</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 %}
30 <option value="{{i}}">{{i}}</option>
31 {% endfor %}
32 {% endwith %}
33 </select>
34 </div>
35</div>
36
37<!-- Update page display settings -->
38
39<script>
40 $(document).ready(function() {
41
42 // we load cookies for the column display
43 save = $.cookie('_displaycols_{{objectname}}');
44 if (save != undefined) {
45 setting = save.split(';');
46 for ( i = 0; i < setting.length; i++) {
47 if (setting[i].length > 0) {
48 splitlist = setting[i].split(':');
49 id = splitlist[0], v = splitlist[1];
50 if (v == 'true') {
51 $('.chbxtoggle#'+id).prop('checked', true);
52 }
53 else {
54 $('.chbxtoggle#'+id).prop('checked', false);
55 }
56 }
57 }
58 }
59
60 // load cookie for number of entries to be displayed on page
61 pagesize = $.cookie('count');
62 if (!pagesize)
63 pagesize = 10;
64 $('.pagesize option').prop('selected', false)
65 .filter('[value="' + pagesize + '"]')
66 .attr('selected', true);
67
68 $('.chbxtoggle').each(function () {
69 showhideTableColumn($(this).attr('id'), $(this).is(':checked'))
70 });
71
72 //turn edit columns dropdown into a multi-select menu
73 $('.dropdown-menu input, .dropdown-menu label').click(function(e) {
74 e.stopPropagation();
75 });
76
77 //show tooltip with applied filter
78 $('#filtered').tooltip({container:'table', placement:'bottom', delay:{hide:1500}, html:true});
79
80 //progress bar tooltip
81 $('.progress, .lead span').tooltip({container:'table', placement:'top'});
82
83 $(".pagesize").change(function () {
84 reload_params({"count":$(this).val()});
85 // save cookie with pagesize
86 $.cookie("count", $(this).val(), { path : $(location).attr('pathname') });
87 });
88});
89</script>
90
91<!-- modal filter boxes -->
92 {% for tc in tablecols %}{% if tc.filter %}{% with objectname=objectname f=tc.filter %}
93 {% include "filtersnippet.html" %}
94 {% endwith %}{% endif %} {% endfor %}
95<!-- end modals -->