From 1b636173ca88e5ccca1992f9a12367a1189fa674 Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Tue, 7 Jan 2014 13:10:42 +0000 Subject: bitbake: toaster: Toaster GUI, generic search, filter and order This patch implements table searching, filtering and ordering, in a generic mode reusable for all tables. The search operates list of fields defined in the corresponding class for each model, search_allowed_fields. The search expression and filters are sent through GET requests using a QuerySet-like input. The inputs are filtered and validated before usage to prevent inadvertent or malicious use. Filters and table headers are defined in the views for each table, and rendered by generic code which is easily modified for various tables. The Build table and Configuration table are implemented using this framework as an example of how it should be used. [YOCTO #4249] [YOCTO #4254] [YOCTO #4255] [YOCTO #4256] [YOCTO #4257] [YOCTO #4259] [YOCTO #4260] (Bitbake rev: 2ca15117e4bbda38cda07511d0ff317273f91528) Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- .../toastergui/templates/basetable_top.html | 79 ++++++++++++---------- 1 file changed, 43 insertions(+), 36 deletions(-) (limited to 'bitbake/lib/toaster/toastergui/templates/basetable_top.html') diff --git a/bitbake/lib/toaster/toastergui/templates/basetable_top.html b/bitbake/lib/toaster/toastergui/templates/basetable_top.html index b9277b4a3d..34e0cd7210 100644 --- a/bitbake/lib/toaster/toastergui/templates/basetable_top.html +++ b/bitbake/lib/toaster/toastergui/templates/basetable_top.html @@ -21,46 +21,53 @@ + + + + + + {% for tc in tablecols %}{% endfor %} + + + -- cgit v1.2.3-54-g00ecf
+ {%if tc.qhelp%}{%endif%} + {{tc.name}} + {%if tc.filter%}
+ +
{%endif%} +