diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/basetable_top.html')
| -rw-r--r-- | bitbake/lib/toaster/toastergui/templates/basetable_top.html | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/basetable_top.html b/bitbake/lib/toaster/toastergui/templates/basetable_top.html index 34e0cd7210..b8d5c382c7 100644 --- a/bitbake/lib/toaster/toastergui/templates/basetable_top.html +++ b/bitbake/lib/toaster/toastergui/templates/basetable_top.html | |||
| @@ -1,8 +1,15 @@ | |||
| 1 | {% load projecttags %} | ||
| 1 | <!-- component to display a generic table --> | 2 | <!-- component to display a generic table --> |
| 2 | <script> | 3 | <script> |
| 3 | function showhideTableColumn(clname, sh) { | 4 | function showhideTableColumn(clname, sh) { |
| 4 | if (sh) $('.' + clname).show(); | 5 | if (sh) $('.' + clname).show(100); |
| 5 | else $('.' + clname).hide(); | 6 | else $('.' + clname).hide(100); |
| 7 | |||
| 8 | // save cookie for all checkboxes | ||
| 9 | save = ''; | ||
| 10 | $('.chbxtoggle').each(function() { if ($(this).attr('id') != undefined) { save += ';' + $(this).attr('id') +':'+ $(this).is(':checked')} }) | ||
| 11 | $.cookie('_displaycols_{{objectname}}', save); | ||
| 12 | save = ''; | ||
| 6 | } | 13 | } |
| 7 | 14 | ||
| 8 | 15 | ||
| @@ -22,8 +29,11 @@ | |||
| 22 | <!-- control header --> | 29 | <!-- control header --> |
| 23 | <div class="navbar"> | 30 | <div class="navbar"> |
| 24 | <div class="navbar-inner"> | 31 | <div class="navbar-inner"> |
| 25 | <form class="navbar-search input-append pull-left" > | 32 | <form class="navbar-search input-append pull-left" id="searchform"> |
| 26 | <input class="input-xxlarge" name="search" type="text" placeholder="Search {{objectname}}" value="{{request.GET.search}}"/> | 33 | <div class="input-append" style="padding-right:1em"> |
| 34 | <input class="input-xxlarge" id="search" name="search" type="text" placeholder="Search {{objectname}}" value="{{request.GET.search}}"/><a href="javascript:$('#search').val('');searchform.submit()" class="add-on"><i class="icon-remove"></i></a> | ||
| 35 | </div> | ||
| 36 | <input type="hidden" name="orderby" value="{{request.GET.orderby}}"> | ||
| 27 | <input class="btn" type="submit" value="Search"/> | 37 | <input class="btn" type="submit" value="Search"/> |
| 28 | </form> | 38 | </form> |
| 29 | <div class="pull-right"> | 39 | <div class="pull-right"> |
| @@ -32,7 +42,10 @@ | |||
| 32 | <button class="btn dropdown-toggle" data-toggle="dropdown">Edit columns | 42 | <button class="btn dropdown-toggle" data-toggle="dropdown">Edit columns |
| 33 | <span class="caret"></span> | 43 | <span class="caret"></span> |
| 34 | </button> | 44 | </button> |
| 35 | <ul class="dropdown-menu">{% for i in tablecols %} | 45 | <!-- |
| 46 | {{tablecols|sortcols}} | ||
| 47 | --> | ||
| 48 | <ul class="dropdown-menu">{% for i in tablecols|sortcols %} | ||
| 36 | <li> | 49 | <li> |
| 37 | <label class="checkbox"> | 50 | <label class="checkbox"> |
| 38 | <input type="checkbox" class="chbxtoggle" {% if i.clclass %}id="{{i.clclass}}" value="ct{{i.name}}" {% if not i.hidden %}checked="checked"{%endif%} onchange="showhideTableColumn($(this).attr('id'), $(this).is(':checked'))" {%else%} checked disabled{% endif %}/> {{i.name}} | 51 | <input type="checkbox" class="chbxtoggle" {% if i.clclass %}id="{{i.clclass}}" value="ct{{i.name}}" {% if not i.hidden %}checked="checked"{%endif%} onchange="showhideTableColumn($(this).attr('id'), $(this).is(':checked'))" {%else%} checked disabled{% endif %}/> {{i.name}} |
