summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/detail_search_header.html
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/detail_search_header.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/detail_search_header.html74
1 files changed, 39 insertions, 35 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/detail_search_header.html b/bitbake/lib/toaster/toastergui/templates/detail_search_header.html
index 996b617b76..7a9865908d 100644
--- a/bitbake/lib/toaster/toastergui/templates/detail_search_header.html
+++ b/bitbake/lib/toaster/toastergui/templates/detail_search_header.html
@@ -21,48 +21,52 @@ $(document).ready(function() {
21 21
22{% if objects.paginator.count > 10 or request.GET.search %} 22{% if objects.paginator.count > 10 or request.GET.search %}
23 {% if objects.paginator.count == 0 %} 23 {% if objects.paginator.count == 0 %}
24 <div class="alert"> 24 <div class="alert alert-warning">
25 <h3>No {{search_what}} found</h3> 25 <h4>No {{search_what}} found</h4>
26 <form id="searchform" class="input-append"> 26 <form id="searchform" class="form-inline">
27 {% else %} 27 {% else %}
28 <form id="searchform" class="navbar-search input-append pull-left"> 28 <form id="searchform" class="navbar-form navbar-left detail-page-controls">
29 {% endif %} 29 {% endif %}
30 30
31 <input id="search" class="input-xlarge" type="text" placeholder="Search {{search_what}}" name="search" value="{% if request.GET.search %}{{request.GET.search}}{% endif %}"> 31 <div class="form-group">
32 <input type="hidden" value="name:+" name="orderby"> 32 <div class="btn-group">
33 <input type="hidden" value="l" name="page"> 33 <input id="search" class="form-control" type="text" placeholder="Search {{search_what}}" name="search" value="{% if request.GET.search %}{{request.GET.search}}{% endif %}">
34 {% if request.GET.search %} 34 <input type="hidden" value="name:+" name="orderby">
35 <a class="input-append-addon btn search-clear"> 35 <input type="hidden" value="l" name="page">
36 <i class="glyphicon glyphicon-remove"></i> 36 {% if request.GET.search %}
37 </a> 37 <span class="remove-search-btn-detail-search search-clear glyphicon glyphicon-remove-circle"></span>
38 {% endif %} 38 {% endif %}
39 <button type="submit" class="btn">Search</button> 39 </div>
40 {% if objects.paginator.count == 0 %} 40 </div>
41 <button type="submit" class="btn btn-link search-clear"> 41 <button type="submit" class="btn btn-default">Search</button>
42 Show all {{search_what}} 42 {% if objects.paginator.count == 0 %}
43 </button> 43 <button type="submit" class="btn btn-link search-clear">
44 {% endif %} 44 Show all {{search_what}}
45 </form> 45 </button>
46{% endif %} 46 {% endif %}
47 </form>
48 {% endif %}
47 49
48{% if objects.paginator.count == 0 %} 50 {% if objects.paginator.count == 0 %}
49 </div> {# end alert #} 51 </div> {# end alert #}
50{% else %} 52 {% else %}
51 {% if object_count > 10 %} 53 {% if object_count > 10 %}
52 <div class="pull-right"> 54 <form class="navbar-form navbar-right">
53 <span class="help-inline" style="padding-top:5px;">Show rows:</span> 55 <div class="form-group">
54 <select style="margin-top:5px;margin-bottom:0px;" class="pagesize"> 56 <label>Show rows:</label>
55 {% with "10 25 50 100 150" as list%} 57 <select class="pagesize form-control">
56 {% for i in list.split %} 58 {% with "10 25 50 100 150" as list%}
59 {% for i in list.split %}
57 {% if request.session.limit == i %} 60 {% if request.session.limit == i %}
58 <option value="{{i}}" selected>{{i}}</option> 61 <option value="{{i}}" selected>{{i}}</option>
59 {% else %} 62 {% else %}
60 <option value="{{i}}">{{i}}</option> 63 <option value="{{i}}">{{i}}</option>
61 {% endif %} 64 {% endif %}
62 {% endfor %} 65 {% endfor %}
63 {% endwith %} 66 {% endwith %}
64 </select> 67 </select>
65 </div> 68 </div>
69 </form>
66 {% endif %} 70 {% endif %}
67{% endif %} 71{% endif %}
68 72