Commit 8b6b7117 authored by Jérome Perrin's avatar Jérome Perrin

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
parent 93186e93
...@@ -95,16 +95,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -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="main" />\n
<tal:block metal:define-slot="bottom" />\n <tal:block metal:define-slot="bottom" />\n
</div>\n </div>\n
<input tal:attributes="value python: here.Base_translateString(\'Cancel Action\')"\n <input i18n:attributes="value" i18n:domain="ui" value="Cancel Action"\n
id="dialog_cancel_button" name="Base_cancel:method" type="submit"\n tabindex="100" id="dialog_cancel_button" name="Base_cancel:method" type="submit" />\n
onclick="this.onclick=function(event) { return false; };" />\n <input i18n:attributes="value" i18n:domain="ui" value="Update"\n
<input tal:condition="python: form.update_action!=\'\'"\n tal:condition="python: form.update_action!=\'\'"\n
tal:attributes="value python: here.Base_translateString(\'Update\')"\n tabindex="101" id="dialog_update_button"\n
id="dialog_update_button" name="Base_showUpdateDialog:method" type="submit" />\n name="Base_showUpdateDialog:method" type="submit" />\n
<input tal:attributes="value python: here.Base_translateString(here.Base_getFormViewDialogActionButtonTitle(form));\n <input tal:attributes="value python: here.Base_getFormViewDialogActionButtonTitle(form);\n
onclick python: dialog_category == \'object_report\' and \'return 1\' or default;\n name string:${form_action}:method"\n
name python: \'%s:method\' % (form_action, )"\n i18n:attributes="value" i18n:domain="ui" accesskey="V"\n
id="dialog_submit_button" type="submit" />\n tabindex="102" id="dialog_submit_button" type="submit" />\n
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
......
371 374
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment