From 8b6b711727a3febe28c6d7f60bbe3d286e8252cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Mon, 18 Jun 2007 12:07:05 +0000 Subject: [PATCH] Remove completly the js to disable the dialog button. Use i18n:attributes to translate attributes. Assign a default tabindex to dialog buttons. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14847 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_xhtml_style/dialog_main.xml | 20 +++++++++---------- .../bootstrap/erp5_xhtml_style/bt/revision | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/dialog_main.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/dialog_main.xml index c6ba6c57c4..2a17093684 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/dialog_main.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/dialog_main.xml @@ -95,16 +95,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n <tal:block metal:define-slot="main" />\n <tal:block metal:define-slot="bottom" />\n </div>\n - <input tal:attributes="value python: here.Base_translateString(\'Cancel Action\')"\n - id="dialog_cancel_button" name="Base_cancel:method" type="submit"\n - onclick="this.onclick=function(event) { return false; };" />\n - <input tal:condition="python: form.update_action!=\'\'"\n - tal:attributes="value python: here.Base_translateString(\'Update\')"\n - id="dialog_update_button" name="Base_showUpdateDialog:method" type="submit" />\n - <input tal:attributes="value python: here.Base_translateString(here.Base_getFormViewDialogActionButtonTitle(form));\n - onclick python: dialog_category == \'object_report\' and \'return 1\' or default;\n - name python: \'%s:method\' % (form_action, )"\n - id="dialog_submit_button" type="submit" />\n + <input i18n:attributes="value" i18n:domain="ui" value="Cancel Action"\n + tabindex="100" id="dialog_cancel_button" name="Base_cancel:method" type="submit" />\n + <input i18n:attributes="value" i18n:domain="ui" value="Update"\n + tal:condition="python: form.update_action!=\'\'"\n + tabindex="101" id="dialog_update_button"\n + name="Base_showUpdateDialog:method" type="submit" />\n + <input tal:attributes="value python: here.Base_getFormViewDialogActionButtonTitle(form);\n + name string:${form_action}:method"\n + i18n:attributes="value" i18n:domain="ui" accesskey="V"\n + tabindex="102" id="dialog_submit_button" type="submit" />\n </tal:block>\n </tal:block>\n </tal:block>\n diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision index 1c3e15e55e..fd098d297e 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision +++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision @@ -1 +1 @@ -371 \ No newline at end of file +374 \ No newline at end of file -- 2.30.9