diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/layers.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/layers.html b/bitbake/lib/toaster/toastergui/templates/layers.html index 2bca84b503..e9f910fa5a 100644 --- a/bitbake/lib/toaster/toastergui/templates/layers.html +++ b/bitbake/lib/toaster/toastergui/templates/layers.html | |||
@@ -23,6 +23,18 @@ | |||
23 | <div id="zone1alerts"> | 23 | <div id="zone1alerts"> |
24 | </div> | 24 | </div> |
25 | 25 | ||
26 | {% if objects.paginator.count == 0 %} | ||
27 | <div class="row-fluid"> | ||
28 | <div class="alert"> | ||
29 | <form class="no-results input-append" id="searchform"> | ||
30 | <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="add-on btn" tabindex="-1"><i class="icon-remove"></i></a>{% endif %} | ||
31 | <button class="btn" type="submit" value="Search">Search</button> | ||
32 | <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all layers</button> | ||
33 | </form> | ||
34 | </div> | ||
35 | </div> | ||
36 | |||
37 | {% else %} | ||
26 | 38 | ||
27 | {% include "basetable_top_layers.html" %} | 39 | {% include "basetable_top_layers.html" %} |
28 | {% for o in objects %} | 40 | {% for o in objects %} |
@@ -264,4 +276,6 @@ $(document).ready(function (){ | |||
264 | </script> | 276 | </script> |
265 | {%endif%} | 277 | {%endif%} |
266 | 278 | ||
279 | {%endif%} | ||
280 | |||
267 | {% endblock %} | 281 | {% endblock %} |