[Erp5-report] r38050 ivan - in /erp5/trunk/bt5/erp5_km: SkinTemplateItem/portal_skins/erp5_...

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Aug 27 10:03:30 CEST 2010


Author: ivan
Date: Fri Aug 27 10:03:26 2010
New Revision: 38050

URL: http://svn.erp5.org?rev=38050&view=rev
Log:
Show linkwith list bactions & number of selected rows (if any).

Added:
    erp5/trunk/bt5/erp5_km/bt/template_catalog_search_key_list
Modified:
    erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/ListBox_asHTML.xml
    erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_css/listbox.css.xml
    erp5/trunk/bt5/erp5_km/bt/revision

Modified: erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/ListBox_asHTML.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/ListBox_asHTML.xml?rev=38050&r1=38049&r2=38050&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/ListBox_asHTML.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/ListBox_asHTML.xml [utf8] Fri Aug 27 10:03:26 2010
@@ -161,14 +161,31 @@
   <div class="listbox-content">\n
 \n
     <div class="listbox-head">\n
-      <div class="listbox-head-title" style="">\n
-        <span tal:replace="here/getTitle" />\n
+      <div class="listbox-head-title"\n
+           tal:define="show_list_action_link python: here.field.get_value(\'list_action\')">\n
+\n
+        <a tal:condition="show_list_action_link"\n
+           tal:attributes="class string:${field_id}_title; \n
+                           href here/getListActionUrl">\n
+           <span i18n:translate="" \n
+                 i18n:domain="ui" tal:content="here/getTitle" />\n
+        </a>\n
+        <tal:block tal:condition="not: show_list_action_link">\n
+          <span i18n:translate="" \n
+                i18n:domain="ui" tal:content="here/getTitle" />\n
+        </tal:block>\n
       </div>\n
 \n
       <!--Show search result -->\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
+        <span tal:content="structure python: real_context.Base_translateString(\' <em>${start} - ${stop}</em> of <em>${total}</em> records\', mapping=dict(start=current_page_start, stop=current_page_stop, total=total_line))"/>\n
+\n
+        <span id="listbox_item_number" class="listbox_item_number"\n
+                    tal:attributes="id string:${field_id}_item_number"\n
+                    tal:condition="show_select_column"\n
+                    i18n:translate="" i18n:domain="ui"> - <tal:block tal:replace="python: len(here.getCheckedUidList())" i18n:name="number">0</tal:block> items selected</span>\n
+\n
       </div>\n
     </div>\n
 \n

Modified: erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_css/listbox.css.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_css/listbox.css.xml?rev=38050&r1=38049&r2=38050&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_css/listbox.css.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_css/listbox.css.xml [utf8] Fri Aug 27 10:03:26 2010
@@ -188,7 +188,9 @@ div.listbox-head{\n
 div.listbox-head div.listbox-head-title{\n
   float:left;\n
   width:auto;\n
- \n
+}\n
+div.listbox-head a, div.listbox-head span{\n
+  font-weight: bold;\n
 }\n
 \n
 div.listbox-head div.listbox-head-results{\n
@@ -198,7 +200,6 @@ div.listbox-head div.listbox-head-result
   text-align:right;\n
 }\n
 \n
-\n
 div.listbox-body{\n
   width:auto;\n
 }\n

Modified: erp5/trunk/bt5/erp5_km/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_km/bt/revision?rev=38050&r1=38049&r2=38050&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_km/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_km/bt/revision [utf8] Fri Aug 27 10:03:26 2010
@@ -1 +1 @@
-1527
\ No newline at end of file
+1528
\ No newline at end of file

Added: erp5/trunk/bt5/erp5_km/bt/template_catalog_search_key_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_km/bt/template_catalog_search_key_list?rev=38050&view=auto
==============================================================================
    (empty)




More information about the Erp5-report mailing list