diff options
author | Ravi Chintakunta <ravi.chintakunta@timesys.com> | 2014-02-05 22:54:46 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-17 15:38:53 +0000 |
commit | 877f87baa0e376ff5bf0c157490020c459b64eb0 (patch) | |
tree | d0f40db61971c9fc650d88aa32f52c5e262ea641 /bitbake/lib/toaster/toastergui/templates | |
parent | f8f448e4e6c6dadd7c13a3a8fff88647ce7b02c5 (diff) | |
download | ast2050-yocto-poky-877f87baa0e376ff5bf0c157490020c459b64eb0.zip ast2050-yocto-poky-877f87baa0e376ff5bf0c157490020c459b64eb0.tar.gz |
bitbake: toaster: Select a radio button by default in Filter Dialog
If none of the filter options in the filter dialog are active,
then select the first radio button.
(Bitbake rev: 8aa63143cc446227c69f64688b314c65b74604d8)
Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/filtersnippet.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/filtersnippet.html b/bitbake/lib/toaster/toastergui/templates/filtersnippet.html index d4a4f32..4626ffe 100644 --- a/bitbake/lib/toaster/toastergui/templates/filtersnippet.html +++ b/bitbake/lib/toaster/toastergui/templates/filtersnippet.html @@ -1,3 +1,4 @@ +{% load projecttags %} <!-- '{{f.class}}' filter --> <form id="filter_{{f.class}}" class="modal hide fade" tabindex="-1" role="dialog" aria-hidden="true"> <input type="hidden" name="search" value="{{request.GET.search}}"/> @@ -8,7 +9,7 @@ <div class="modal-body"> <p>{{f.label}}</p> <label class="radio"> - <input type="radio" name="filter" value=""> All {{objectname}} + <input type="radio" name="filter" {%if request.GET.filter%}{{f.options|check_filter_status:request.GET.filter}} {%else%} checked {%endif%} value=""> All {{objectname}} </label> {% for option in f.options %} <label class="radio"> |