# HG changeset patch # User Thierry Florac # Date 1505129748 -7200 # Node ID 6302819f15bee9ee50eb82f50d9b62febeecbda6 # Parent cb847dfb3e112fb89919497d3f3c5726f43ee0c1 Added 'id' attribute for inner forms diff -r cb847dfb3e11 -r 6302819f15be src/pyams_form/templates/inner-form.pt --- a/src/pyams_form/templates/inner-form.pt Mon Sep 11 13:34:18 2017 +0200 +++ b/src/pyams_form/templates/inner-form.pt Mon Sep 11 13:35:48 2017 +0200 @@ -1,5 +1,8 @@
+ tal:define="content_name getattr(view.getContent(), '__name__', 'noname'); + content_name content_name.replace('++', '');" + tal:attributes="class string:${view.css_class} ${view.padding_class | default}; + id string:${context.__class__.__name__}_${content_name}_${view.id};">
Form prefix
- + Legend Action -
Form prefix
+
Form suffix