diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/basetable_top.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/basetable_top.html | 121 |
1 files changed, 68 insertions, 53 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/basetable_top.html b/bitbake/lib/toaster/toastergui/templates/basetable_top.html index 6731ff2b8d..5a9076d2aa 100644 --- a/bitbake/lib/toaster/toastergui/templates/basetable_top.html +++ b/bitbake/lib/toaster/toastergui/templates/basetable_top.html | |||
@@ -159,68 +159,83 @@ | |||
159 | </script> | 159 | </script> |
160 | 160 | ||
161 | <!-- control header --> | 161 | <!-- control header --> |
162 | <div class="navbar"> | 162 | <div class="navbar navbar-default"> |
163 | <div class="navbar-inner"> | 163 | <div class="container-fluid"> |
164 | <form class="navbar-search" id="searchform"> | 164 | <div class="navbar-header"> |
165 | <div class="input-append"> | 165 | <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#table-chrome-collapse-variablehistory" aria-expanded="false"> |
166 | <input id="search" name="search" type="text" placeholder="Search {%if object_search_display %}{{object_search_display}}{%else%}{{objectname}}{%endif%}" value="{%if request.GET.search %}{{request.GET.search}}{% endif %}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-append-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{%endif%} | 166 | <span class="sr-only">Toggle table options</span> |
167 | <input type="hidden" name="orderby" value="{{request.GET.orderby}}"> | 167 | <span class="icon-bar"></span> |
168 | <input type="hidden" name="page" value="1"> | 168 | <span class="icon-bar"></span> |
169 | <button class="btn" id="search-button" type="submit" value="Search">Search</button> | 169 | <span class="icon-bar"></span> |
170 | </button> | ||
171 | </div> | ||
172 | <div class="collapse navbar-collapse" id="table-chrome-collapse-variablehistory"> | ||
173 | <form class="navbar-form navbar-left" id="searchform"> | ||
174 | <div class="form-group"> | ||
175 | <div class="btn-group"> | ||
176 | <input class="form-control" id="search" name="search" type="text" placeholder="Search {%if object_search_display %}{{object_search_display}}{%else%}{{objectname}}{%endif%}" value="{%if request.GET.search %}{{request.GET.search}}{% endif %}"/> | ||
177 | {% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" tabindex="-1"><span class="remove-search-btn-variables glyphicon glyphicon-remove-circle"></span></a>{%endif%} | ||
170 | </div> | 178 | </div> |
171 | </form> | 179 | </div> |
172 | <div class="pull-right"> | 180 | <input type="hidden" name="orderby" value="{{request.GET.orderby}}"> |
173 | {% if tablecols %} | 181 | <input type="hidden" name="page" value="1"> |
174 | <div class="btn-group"> | 182 | <button class="btn btn-default" id="search-button" type="submit" value="Search">Search</button> |
175 | <button id="edit-columns-button" class="btn dropdown-toggle" data-toggle="dropdown">Edit columns | 183 | </form> |
176 | <span class="caret"></span> | 184 | <form class="navbar-form navbar-right"> |
177 | </button> | 185 | <div class="form-group"> |
186 | <label>Show rows:</label> | ||
187 | <select class="pagesize form-control"> | ||
188 | {% with "10 25 50 100 150" as list%} | ||
189 | {% for i in list.split %} | ||
190 | <option value="{{i}}">{{i}}</option> | ||
191 | {% endfor %} | ||
192 | {% endwith %} | ||
193 | </select> | ||
194 | </div> | ||
195 | </form> | ||
196 | |||
197 | <div class="btn-group navbar-right"> | ||
198 | {% if tablecols %} | ||
199 | <button id="edit-columns-button" class="btn btn-default navbar-btn dropdown-toggle" data-toggle="dropdown">Edit columns | ||
200 | <span class="caret"></span> | ||
201 | </button> | ||
178 | <!-- | 202 | <!-- |
179 | {{tablecols|sortcols}} | 203 | {{tablecols|sortcols}} |
180 | --> | 204 | --> |
181 | <ul id='editcol' class="dropdown-menu"> | 205 | <ul id="editcol" class="dropdown-menu editcol"> |
182 | {% for i in tablecols|sortcols %} | 206 | {% for i in tablecols|sortcols %} |
183 | <li> | 207 | <li> |
184 | <label {% if not i.clclass %} class="checkbox muted" {%else%} class="checkbox" {%endif%}> | 208 | <div class="checkbox"> |
185 | <input type="checkbox" class="chbxtoggle" | 209 | <label {% if not i.clclass %} class="muted" {%endif%}> |
186 | {% if i.clclass %} | 210 | <input type="checkbox" class="chbxtoggle" |
211 | {% if i.clclass %} | ||
187 | id="{{i.clclass}}" | 212 | id="{{i.clclass}}" |
188 | value="ct{{i.name}}" | 213 | value="ct{{i.name}}" |
189 | {% if not i.hidden %} | 214 | {% if not i.hidden %} |
190 | checked="checked" | 215 | checked="checked" |
191 | {%endif%} | 216 | {%endif%} |
192 | onclick="showhideTableColumn( | 217 | onclick="showhideTableColumn( |
193 | $(this).attr('id'), | 218 | $(this).attr('id'), |
194 | $(this).is(':checked'), | 219 | $(this).is(':checked'), |
195 | {% if i.ordericon %} | 220 | {% if i.ordericon %} |
196 | '{{i.orderkey}}' | 221 | '{{i.orderkey}}' |
197 | {% else %} | 222 | {% else %} |
198 | undefined | 223 | undefined |
199 | {% endif %} | 224 | {% endif %} |
200 | )" | 225 | )" |
201 | {%else%} | 226 | {%else%} |
202 | checked disabled | 227 | checked disabled |
203 | {% endif %}/> {{i.name}} | 228 | {% endif %}/>{{i.name}} |
204 | </label> | 229 | </label> |
205 | </li> | ||
206 | {% endfor %} | ||
207 | </ul> | ||
208 | </div> | 230 | </div> |
209 | {% endif %} | 231 | </li> |
210 | <div style="display:inline"> | 232 | {% endfor %} |
211 | <span class="divider-vertical"></span> | 233 | </ul> |
212 | <span class="help-inline" style="padding-top:5px;">Show rows:</span> | 234 | {% endif %} |
213 | <select style="margin-top:5px;margin-bottom:0px;" class="pagesize"> | 235 | </div> |
214 | {% with "10 25 50 100 150" as list%} | 236 | </div> <!-- navbar-collapse --> |
215 | {% for i in list.split %} | 237 | </div> <!-- container-fluid --> |
216 | <option value="{{i}}">{{i}}</option> | 238 | </div> <!-- navbar-default --> |
217 | {% endfor %} | ||
218 | {% endwith %} | ||
219 | </select> | ||
220 | </div> | ||
221 | </div> | ||
222 | </div> <!-- navbar-inner --> | ||
223 | </div> | ||
224 | 239 | ||
225 | <!-- the actual rows of the table --> | 240 | <!-- the actual rows of the table --> |
226 | <table class="table table-bordered table-hover tablesorter" id="otable"> | 241 | <table class="table table-bordered table-hover tablesorter" id="otable"> |
@@ -228,11 +243,11 @@ | |||
228 | <!-- Table header row; generated from "tablecols" entry in the context dict --> | 243 | <!-- Table header row; generated from "tablecols" entry in the context dict --> |
229 | <tr> | 244 | <tr> |
230 | {% for tc in tablecols %}<th class="{%if tc.dclass%}{{tc.dclass}}{%endif%} {% if tc.clclass %}{{tc.clclass}}{% endif %}"> | 245 | {% for tc in tablecols %}<th class="{%if tc.dclass%}{{tc.dclass}}{%endif%} {% if tc.clclass %}{{tc.clclass}}{% endif %}"> |
231 | {%if tc.qhelp%}<i class="icon-question-sign get-help" title="{{tc.qhelp}}"></i>{%endif%} | 246 | {%if tc.qhelp%}<span class="glyphicon glyphicon-question-sign get-help" title="{{tc.qhelp}}"></span>{%endif%} |
232 | {%if tc.orderfield%}<a {%if tc.ordericon%} class="sorted" {%endif%}href="javascript:reload_params({'page': 1, 'orderby' : '{{tc.orderfield}}' })">{{tc.name}}</a>{%else%}<span class="muted">{{tc.name}}</span>{%endif%} | 247 | {%if tc.orderfield%}<a {%if tc.ordericon%} class="sorted" {%endif%}href="javascript:reload_params({'page': 1, 'orderby' : '{{tc.orderfield}}' })">{{tc.name}}</a>{%else%}<span class="text-muted">{{tc.name}}</span>{%endif%} |
233 | {%if tc.ordericon%} <i class="icon-caret-{{tc.ordericon}}"></i>{%endif%} | 248 | {%if tc.ordericon%} <i class="icon-caret-{{tc.ordericon}}"></i>{%endif%} |
234 | {%if tc.filter%}<div class="btn-group pull-right"> | 249 | {%if tc.filter%}<div class="btn-group pull-right"> |
235 | <a href="#filter_{{tc.filter.class}}" role="button" class="btn btn-mini {%if request.GET.filter%}{{tc.filter.options|filtered_icon:request.GET.filter}} {%endif%}" {%if request.GET.filter and tc.filter.options|filtered_tooltip:request.GET.filter %} title="<p>{{tc.filter.options|filtered_tooltip:request.GET.filter}}</p><p><a class='btn btn-sm btn-primary' href=javascript:reload_params({'filter':''})>Show all {% if filter_search_display %}{{filter_search_display}}{% else %}{{objectname}}{% endif %}</a></p>" {%endif%} data-toggle="modal"> <i class="glyphicon glyphicon-filter filtered"></i> </a> | 250 | <a href="#filter_{{tc.filter.class}}" role="button" class="btn btn-xs {%if request.GET.filter%}{{tc.filter.options|filtered_icon:request.GET.filter}} {%endif%}" {%if request.GET.filter and tc.filter.options|filtered_tooltip:request.GET.filter %} title="<p>{{tc.filter.options|filtered_tooltip:request.GET.filter}}</p><p><a class='btn btn-sm btn-primary' href=javascript:reload_params({'filter':''})>Show all {% if filter_search_display %}{{filter_search_display}}{% else %}{{objectname}}{% endif %}</a></p>" {%endif%} data-toggle="modal"> <span class="glyphicon glyphicon-filter filtered"></span> </a> |
236 | </div>{%endif%} | 251 | </div>{%endif%} |
237 | </th>{% endfor %} | 252 | </th>{% endfor %} |
238 | </tr> | 253 | </tr> |