From d826a505c1451b9831a103cea04df9ba6a6a99a8 Mon Sep 17 00:00:00 2001
From: Ivan Tyagov <ivan@nexedi.com>
Date: Wed, 25 Aug 2010 14:07:18 +0000
Subject: [PATCH] Place listbox results in top, right corner.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38013 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/erp5_km_theme/ListBox_asHTML.xml | 12 ++++++++----
 .../erp5_km_theme/km_css/listbox.css.xml          | 15 ++++++++++++++-
 bt5/erp5_km/bt/revision                           |  2 +-
 3 files changed, 23 insertions(+), 6 deletions(-)

diff --git a/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/ListBox_asHTML.xml b/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/ListBox_asHTML.xml
index 6463812417..3b73df43d7 100644
--- a/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/ListBox_asHTML.xml
+++ b/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/ListBox_asHTML.xml
@@ -161,11 +161,15 @@
   <div class="listbox-content">\n
 \n
     <div class="listbox-head">\n
-      <span tal:content="here/getTitle"/>\n
-      <span tal:condition="python: here.getTitle() and total_line>0"> - </span>\n
+      <div class="listbox-head-title" style="">\n
+        <span tal:replace="here/getTitle" />\n
+      </div>\n
+\n
       <!--Show search result -->\n
-      <span tal:condition="python: total_line > 0"\n
-        tal:replace="structure python: real_context.Base_translateString(\'Results <em>${start} - ${stop}</em> of <em>${total}</em>.\', mapping=dict(start=current_page_start, stop=current_page_stop, total=total_line))"/>\n
+      <div tal:condition="python: total_line > 0" \n
+           class="listbox-head-results">\n
+        <span tal:replace="structure python: real_context.Base_translateString(\'Results <em>${start} - ${stop}</em> of <em>${total}</em>.\', mapping=dict(start=current_page_start, stop=current_page_stop, total=total_line))"/>\n
+      </div>\n
     </div>\n
 \n
     <div class="listbox-body">\n
diff --git a/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_css/listbox.css.xml b/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_css/listbox.css.xml
index 82abd731b4..1889857f73 100644
--- a/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_css/listbox.css.xml
+++ b/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_css/listbox.css.xml
@@ -183,8 +183,22 @@ div.listbox-head{\n
   color:#9D968D;\n
   font-weight:bold;\n
   margin-bottom: 10px;\n
+  min-height:20px;\n
+}\n
+div.listbox-head div.listbox-head-title{\n
+  float:left;\n
+  width:auto;\n
+ \n
 }\n
 \n
+div.listbox-head div.listbox-head-results{\n
+  float: right; \n
+  width: auto; \n
+  clear: right;\n
+  text-align:right;\n
+}\n
+\n
+\n
 div.listbox-body{\n
   width:auto;\n
 }\n
@@ -209,7 +223,6 @@ div.listbox-footer{\n
  margin-bottom:0.3em;\n
  margin-top:0.3em;\n
  padding-left:0.2em;\n
- \n
 }\n
 \n
 /* Listbox Footer in gadget mode */\n
diff --git a/bt5/erp5_km/bt/revision b/bt5/erp5_km/bt/revision
index 1f900278dc..9221efbef0 100644
--- a/bt5/erp5_km/bt/revision
+++ b/bt5/erp5_km/bt/revision
@@ -1 +1 @@
-1522
\ No newline at end of file
+1523
\ No newline at end of file
-- 
2.30.9