allow for giving submit button a name defined by the view

This commit is contained in:
Helmut Merz 2013-08-08 17:17:28 +02:00
parent 21b3795227
commit 2c474bf3a6

View file

@ -313,7 +313,8 @@
<metal:buttons define-slot="buttons">
<input value="Save" type="submit"
i18n:attributes="value"
tal:attributes="onClick python: view.closeAction(True) or
tal:attributes="value view/label_submit | string:Save;
onClick python: view.closeAction(True) or
'submit();; return false'">
<input type="button" value="Cancel" onClick="dlg.hide();"
i18n:attributes="value"