Refactored tables attributes management
authorThierry Florac <thierry.florac@onf.fr>
Tue, 10 Apr 2018 15:25:52 +0200
changeset 306 0a7df4cf44bf
parent 305 1235a0c99263
child 307 30d4c6636163
Refactored tables attributes management
src/pyams_skin/templates/table.pt
--- a/src/pyams_skin/templates/table.pt	Tue Apr 10 15:24:06 2018 +0200
+++ b/src/pyams_skin/templates/table.pt	Tue Apr 10 15:25:52 2018 +0200
@@ -13,7 +13,7 @@
 	</header>
 	<div class="widget-body no-padding"
 		 tal:define="hide_toolbar getattr(view, 'hide_body_toolbar', False)"
-		 tal:attributes="id view.id;
+		 tal:attributes="id string:${view.id}_body;
 						 class python:'widget-body no-padding {0}'.format('no-widget-toolbar' if hide_toolbar else '');">
 		<div class="widget-body-toolbar"></div>
 		<tal:var content="structure view.renderTable()" />