diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2013-12-11 16:42:34 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-10 15:20:25 +0000 |
commit | 2251426ae420640c082ec0d0109b9be435075411 (patch) | |
tree | 0f58f48d18bbfd9054c928f3ef554365f74d6ed8 /bitbake/lib/toaster/toastergui/templates/basetable_bottom.html | |
parent | c2fc6ca2fa68aca17235cac306b6df4b882fe9ff (diff) | |
download | poky-2251426ae420640c082ec0d0109b9be435075411.tar.gz |
bitbake: toaster: Create the base page navigation structure
Updating the general container pages to use the graphical
design and features from the design phase.
In the process of adapting the Simple UI to the designed
interface, we create all the pages and the navigation
structure for the Toaster GUI.
Views for each page have been added, and the url mapping
has been updated to reflect newly added pages.
The table page has been refactored to be component-oriented
instead of class-oriented in order to facilitate reusage.
Changes are made in different layers of the template
(base, basetable) in order to maximize code reuse among
different pages in the build.
(Bitbake rev: d31f039ae31b77023722c06e66542751536a1362)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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> | ||