diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/basetable_bottom.html')
| -rw-r--r-- | bitbake/lib/toaster/toastergui/templates/basetable_bottom.html | 60 |
1 files changed, 60 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..2a6f084929 --- /dev/null +++ b/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html | |||
| @@ -0,0 +1,60 @@ | |||
| 1 | </table> | ||
| 2 | |||
| 3 | <!-- Show pagination controls --> | ||
| 4 | <div class="pagination pagination-centered"> | ||
| 5 | <div class="pull-left"> | ||
| 6 | Showing {{objects.start_index}} to {{objects.end_index}} out of {{objects.paginator.count}} entries. | ||
| 7 | </div> | ||
| 8 | |||
| 9 | <ul class="pagination" style="display: block-inline"> | ||
| 10 | {%if objects.has_previous %} | ||
| 11 | <li><a href="?page={{objects.previous_page_number}}&count={{request.GET.count}}">«</a></li> | ||
| 12 | {%else%} | ||
| 13 | <li class="disabled"><a href="#">«</a></li> | ||
| 14 | {%endif%} | ||
| 15 | {% for i in objects.page_range %} | ||
| 16 | <li{%if i == objects.number %} class="active" {%endif%}><a href="?page={{i}}&count={{request.GET.count}}">{{i}}</a></li> | ||
| 17 | {% endfor %} | ||
| 18 | {%if objects.has_next%} | ||
| 19 | <li><a href="?page={{objects.next_page_number}}&count={{request.GET.count}}">»</a></li> | ||
| 20 | {%else%} | ||
| 21 | <li class="disabled"><a href="#">»</a></li> | ||
| 22 | {%endif%} | ||
| 23 | </ul> | ||
| 24 | <div class="pull-right"> | ||
| 25 | <span class="help-inline" style="padding-top:5px;">Show rows:</span> | ||
| 26 | <select style="margin-top:5px;margin-bottom:0px;" class="pagesize"> | ||
| 27 | {% with "2 5 10 25 50 100" as list%} | ||
| 28 | {% for i in list.split %}<option{%if i == request.GET.count %} selected{%endif%}>{{i}}</option> | ||
| 29 | {% endfor %} | ||
| 30 | {% endwith %} | ||
| 31 | </select> | ||
| 32 | </div> | ||
| 33 | </div> | ||
| 34 | |||
| 35 | <!-- Update page display settings --> | ||
| 36 | |||
| 37 | <script> | ||
| 38 | $(document).ready(function() { | ||
| 39 | |||
| 40 | $('.chbxtoggle').each(function () { | ||
| 41 | showhideTableColumn($(this).attr('id'), $(this).is(':checked')) | ||
| 42 | }); | ||
| 43 | |||
| 44 | //turn edit columns dropdown into a multi-select menu | ||
| 45 | $('.dropdown-menu input, .dropdown-menu label').click(function(e) { | ||
| 46 | e.stopPropagation(); | ||
| 47 | }); | ||
| 48 | |||
| 49 | //show tooltip with applied filter | ||
| 50 | $('#filtered').tooltip({container:'table', placement:'bottom', delay:{hide:1500}, html:true}); | ||
| 51 | |||
| 52 | //progress bar tooltip | ||
| 53 | $('.progress, .lead span').tooltip({container:'table', placement:'top'}); | ||
| 54 | |||
| 55 | $(".pagesize").change(function () { | ||
| 56 | $(".pagesize option:selected").each(function () | ||
| 57 | {reload_params({"count":$(this).text()}); }); | ||
| 58 | }); | ||
| 59 | }); | ||
| 60 | </script> | ||
