Add object data on all buttons
authorThierry Florac <thierry.florac@onf.fr>
Wed, 07 May 2014 11:31:48 +0200
changeset 2 bfd612f2bd21
parent 1 9e384c415962
child 3 8f1aadf54f1b
Add object data on all buttons
src/ztfy/myams/templates/forms/button-input.pt
src/ztfy/myams/templates/forms/close-input.pt
src/ztfy/myams/templates/forms/reset-input.pt
--- a/src/ztfy/myams/templates/forms/button-input.pt	Wed May 07 10:39:45 2014 +0200
+++ b/src/ztfy/myams/templates/forms/button-input.pt	Wed May 07 11:31:48 2014 +0200
@@ -29,5 +29,6 @@
 						alt view/alt;
 						accesskey view/accesskey;
 						onselect view/onselect;
+						data-loading-text string:${view/value/i18n:translate}...;
 						data-ams-data view/myams:data;"
 		tal:content="view/value"></button>
--- a/src/ztfy/myams/templates/forms/close-input.pt	Wed May 07 10:39:45 2014 +0200
+++ b/src/ztfy/myams/templates/forms/close-input.pt	Wed May 07 11:31:48 2014 +0200
@@ -28,6 +28,7 @@
 						readonly view/readonly;
 						alt view/alt;
 						accesskey view/accesskey;
-						onselect view/onselect"
+						onselect view/onselect;
+						data-ams-data view/myams:data;"
 		data-dismiss="modal"
 		tal:content="view/value"></button>
--- a/src/ztfy/myams/templates/forms/reset-input.pt	Wed May 07 10:39:45 2014 +0200
+++ b/src/ztfy/myams/templates/forms/reset-input.pt	Wed May 07 11:31:48 2014 +0200
@@ -28,5 +28,6 @@
 						readonly view/readonly;
 						alt view/alt;
 						accesskey view/accesskey;
-						onselect view/onselect"
+						onselect view/onselect;
+						data-ams-data view/myams:data;"
 		tal:content="view/value"></button>