Updated template syntax
authorThierry Florac <thierry.florac@onf.fr>
Thu, 20 Dec 2018 14:15:59 +0100
changeset 499 24e2893a9630
parent 498 7d479c20ee49
child 500 f08f5a2ffaa6
Updated template syntax
src/pyams_skin/viewlet/toolbar/action.pt
--- a/src/pyams_skin/viewlet/toolbar/action.pt	Thu Dec 20 14:13:45 2018 +0100
+++ b/src/pyams_skin/viewlet/toolbar/action.pt	Thu Dec 20 14:15:59 2018 +0100
@@ -1,11 +1,11 @@
 <div class="btn-group"
 	 tal:attributes="class view.group_css_class | default">
-	<div tal:attributes="class view.css_class;
-						 data-toggle 'modal' if view.modal_target else None;
-						 data-ams-url view.get_url();
-						 data-ams-stop-propagation 'true' if view.modal_target else None;
-						 data-ams-data tales:object_data(view);">
-		<i tal:attributes="class view.label_css_class"></i>&nbsp;
-		<tal:var content="view.label" />
+	<div class="${view.css_class}"
+		 data-toggle="${'modal' if view.modal_target else None}"
+		 data-ams-url="${view.get_url()}"
+		 data-ams-stop-propagation="${'true' if view.modal_target else None}"
+		 data-ams-data="${tales:object_data(view)}">
+		<i class="${view.label_css_class}"></i>&nbsp;
+		${view.label}
 	</div>
 </div>