Added condition on form fields portlet renderer
authorThierry Florac <tflorac@ulthar.net>
Wed, 16 Oct 2019 13:53:12 +0200
changeset 487 33f8291a8050
parent 486 dc796efc203c
child 488 61fdcc1d5511
Added condition on form fields portlet renderer
src/pyams_default_theme/shared/form/templates/form-fields.pt
--- a/src/pyams_default_theme/shared/form/templates/form-fields.pt	Wed Oct 09 11:35:15 2019 +0200
+++ b/src/pyams_default_theme/shared/form/templates/form-fields.pt	Wed Oct 16 13:53:12 2019 +0200
@@ -1,2 +1,3 @@
-<h2>${view.title}</h2>
+<h2 tal:define="title view.title"
+	tal:condition="title">${title}</h2>
 <div>${structure:view.input_form.render()}</div>
\ No newline at end of file