summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@intel.com>2016-02-22 09:08:39 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-26 17:20:24 +0000
commit25b179d5c31ad12971aa2ff31ab72b6eae757a16 (patch)
tree6102ab5223da5d1545da1e2182fde11421264ec1 /bitbake
parenta97081ba5555691014312082037b8372ecd1e1e6 (diff)
downloadpoky-25b179d5c31ad12971aa2ff31ab72b6eae757a16.tar.gz
bitbake: toaster: adjust the search field width
The search field at the top of our tables was using one of the Bootstrap classes for text field sizing. Those classes are a bit rigid, resulting in text fields too wide that made other table controls wrap. Setting a maximum width to the search form using one of the span classes, combined with a % width css declaration, make for text fields that adapt a bit better to the horizontal space available in each table. (Bitbake rev: 7833fab2e03f2d9a01ab9ad0a13c190382098b5e) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/toastergui/static/css/default.css1
-rw-r--r--bitbake/lib/toaster/toastergui/templates/basetable_top.html4
-rw-r--r--bitbake/lib/toaster/toastergui/templates/toastertable.html4
3 files changed, 5 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/css/default.css b/bitbake/lib/toaster/toastergui/static/css/default.css
index ae9fa06071..b024d962aa 100644
--- a/bitbake/lib/toaster/toastergui/static/css/default.css
+++ b/bitbake/lib/toaster/toastergui/static/css/default.css
@@ -114,6 +114,7 @@ th > a, th > span { font-weight: normal; }
114/* Styles for the navbar actions */ 114/* Styles for the navbar actions */
115.btn-group + .btn-group { margin-right: 10px; } 115.btn-group + .btn-group { margin-right: 10px; }
116.navbar-inner > .btn-group { margin-top: 6px; } 116.navbar-inner > .btn-group { margin-top: 6px; }
117[id^="search-input-"], #search { width: 80%; }
117 118
118/* Styles for the parent item in the left navigation */ 119/* Styles for the parent item in the left navigation */
119 120
diff --git a/bitbake/lib/toaster/toastergui/templates/basetable_top.html b/bitbake/lib/toaster/toastergui/templates/basetable_top.html
index 33ede66872..0ddd749046 100644
--- a/bitbake/lib/toaster/toastergui/templates/basetable_top.html
+++ b/bitbake/lib/toaster/toastergui/templates/basetable_top.html
@@ -161,8 +161,8 @@
161<!-- control header --> 161<!-- control header -->
162<div class="navbar"> 162<div class="navbar">
163 <div class="navbar-inner"> 163 <div class="navbar-inner">
164 <form class="navbar-search input-append pull-left" id="searchform"> 164 <form class="navbar-search input-append pull-left span6" id="searchform">
165 <input class="input-xxlarge" 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="add-on btn" tabindex="-1"><i class="icon-remove"></i></a>{%endif%} 165 <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="add-on btn" tabindex="-1"><i class="icon-remove"></i></a>{%endif%}
166 <input type="hidden" name="orderby" value="{{request.GET.orderby}}"> 166 <input type="hidden" name="orderby" value="{{request.GET.orderby}}">
167 <input type="hidden" name="page" value="1"> 167 <input type="hidden" name="page" value="1">
168 <button class="btn" id="search-button" type="submit" value="Search">Search</button> 168 <button class="btn" id="search-button" type="submit" value="Search">Search</button>
diff --git a/bitbake/lib/toaster/toastergui/templates/toastertable.html b/bitbake/lib/toaster/toastergui/templates/toastertable.html
index 4cd1b4263a..21c3d36c72 100644
--- a/bitbake/lib/toaster/toastergui/templates/toastertable.html
+++ b/bitbake/lib/toaster/toastergui/templates/toastertable.html
@@ -46,9 +46,9 @@
46 <!-- control header --> 46 <!-- control header -->
47 <div class="navbar" id="table-chrome-{{table_name}}"> 47 <div class="navbar" id="table-chrome-{{table_name}}">
48 <div class="navbar-inner"> 48 <div class="navbar-inner">
49 <div class="navbar-search input-append pull-left"> 49 <div class="navbar-search input-append pull-left span6">
50 50
51 <input class="input-xxlarge" id="search-input-{{table_name}}" name="search" type="text" placeholder="Search {{title|lower}}" value="{%if request.GET.search%}{{request.GET.search}}{%endif%}"/> 51 <input id="search-input-{{table_name}}" name="search" type="text" placeholder="Search {{title|lower}}" value="{%if request.GET.search%}{{request.GET.search}}{%endif%}"/>
52 <a href="#" style="display:none" class="add-on btn remove-search-btn-{{table_name}}" tabindex="-1"> 52 <a href="#" style="display:none" class="add-on btn remove-search-btn-{{table_name}}" tabindex="-1">
53 <i class="icon-remove"></i> 53 <i class="icon-remove"></i>
54 </a> 54 </a>