From c9b638e58eca44dbaf929257c2eb212744aaedc0 Mon Sep 17 00:00:00 2001 From: Ivan Tyagov <ivan@nexedi.com> Date: Thu, 26 Aug 2010 10:44:23 +0000 Subject: [PATCH] Generate class name based on field_id prefix. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38031 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../page_navigation_render.xml | 26 +++++++++++++------ .../bootstrap/erp5_xhtml_style/bt/revision | 2 +- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/page_navigation_render.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/page_navigation_render.xml index 2f1f54311f..42dcf9e767 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/page_navigation_render.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/page_navigation_render.xml @@ -50,7 +50,8 @@ title="First Page" name="firstPage:method"\n class="listbox_first_page"\n tal:attributes="name string:${field_id}_firstPage:method;\n - src string:${portal_url_string}/images/2leftarrowv.png"\n + src string:${portal_url_string}/images/2leftarrowv.png;\n + class string:${field_id}_first_page;"\n i18n:domain="ui" i18n:attributes="title">\n <span class="image"/>\n </button>\n @@ -58,7 +59,8 @@ title="Previous Page" name="previousPage:method"\n class="listbox_previous_page"\n tal:attributes="name string:${field_id}_previousPage:method;\n - src string:${portal_url_string}/images/1leftarrowv.png"\n + src string:${portal_url_string}/images/1leftarrowv.png;\n + class string:${field_id}_previous_page;"\n i18n:domain="ui" i18n:attributes="title">\n <span class="image"/>\n </button>\n @@ -74,14 +76,16 @@ <button type="image" src="1rightarrowv.png"\n title="Next Page" name="nextPage:method" class="listbox_next_page"\n tal:attributes="name string:${field_id}_nextPage:method;\n - src string:${portal_url_string}/images/1rightarrowv.png"\n + src string:${portal_url_string}/images/1rightarrowv.png;\n + class string:${field_id}_next_page;"\n i18n:domain="ui" i18n:attributes="title">\n <span class="image"/>\n </button>\n <button type="image" src="2rightarrowv.png"\n title="Last Page" name="lastPage:method" class="listbox_last_page"\n tal:attributes="name string:${field_id}_lastPage:method;\n - src string:${portal_url_string}/images/2rightarrowv.png"\n + src string:${portal_url_string}/images/2rightarrowv.png;\n + class string:${field_id}_last_page;"\n i18n:domain="ui" i18n:attributes="title" >\n <span class="image"/>\n </button>\n @@ -102,7 +106,8 @@ class = "listbox_first_page"\n tal:attributes="value string:|<;\n onclick python:\n - real_context.KnowledgePad_generateAjaxCall(context_url+\'/\'+form_id,box,dom_id,params)"\n + real_context.KnowledgePad_generateAjaxCall(context_url+\'/\'+form_id,box,dom_id,params);\n + class string:${field_id}_first_page"\n i18n:domain="ui" i18n:attributes="title">\n <span class="image"/>\n </button>\n @@ -112,7 +117,8 @@ type="button"\n class="listbox_previous_page"\n tal:attributes="value string:<<;\n - onclick python: real_context.KnowledgePad_generateAjaxCall(context_url+\'/\'+form_id,box,dom_id,params)"\n + onclick python: real_context.KnowledgePad_generateAjaxCall(context_url+\'/\'+form_id,box,dom_id,params);\n + class string:${field_id}_previous_page"\n i18n:domain="ui" i18n:attributes="title">\n <span class="image"/>\n </button>\n @@ -128,7 +134,8 @@ name="nextPage"\n type="button"\n class="listbox_next_page"\n - tal:attributes="onclick python: real_context.KnowledgePad_generateAjaxCall(context_url+\'/\'+form_id,box,dom_id,params)"\n + tal:attributes="onclick python: real_context.KnowledgePad_generateAjaxCall(context_url+\'/\'+form_id,box,dom_id,params);\n + class string:${field_id}_next_page"\n i18n:domain="ui" i18n:attributes="title">\n <span class="image"/>\n </button>\n @@ -137,7 +144,8 @@ name="lastPage"\n type="button"\n class="listbox_last_page"\n - tal:attributes="onclick python: real_context.KnowledgePad_generateAjaxCall(context_url+\'/\'+form_id,box,dom_id,params)"\n + tal:attributes="onclick python: real_context.KnowledgePad_generateAjaxCall(context_url+\'/\'+form_id,box,dom_id,params);\n + class string:${field_id}_last_page"\n i18n:domain="ui" i18n:attributes="title">\n <span class="image"/>\n </button>\n @@ -150,6 +158,7 @@ <input class="listbox_set_page" \n name="page_start" onblur="this.value=this.defaultValue"\n tal:attributes="name string:${field_id}_page_start;\n + class string:${field_id}_set_page;\n value python:here.current_page + 1;\n size python:len(str(here.total_pages));\n onkeypress string:submitFormOnEnter(event, this.form, \'${field_id}_setPage\')" />\n @@ -163,6 +172,7 @@ name="page_start" onblur="this.value=this.defaultValue"\n tal:define="params python: {field_id+\'_setPage:method\':\'\',field_id+\'_page_start\':\'this.value\',\'list_style\':list_style}"\n tal:attributes=\'name string:${field_id}_page_start;\n + class string:${field_id}_set_page;\n value python:here.current_page + 1;\n size python:len(str(here.total_pages));\n onkeypress python:"if(event.keyCode==13){" + real_context.KnowledgePad_generateAjaxCall(context_url+"/"+form_id,box,dom_id,params).replace("\\"this.value\\"","this.value")+ "return false;;}"\'/>\n diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision index dca5ef64f9..8745834501 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision +++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision @@ -1 +1 @@ -976 \ No newline at end of file +977 \ No newline at end of file -- 2.30.9