<title py:if="not hasattr(value, 'display_name')" py:content="'Change %s' % model" /> <style type="text/css"> tr[id="_password.container"], tr[id="history.container"]{ display: none; } .labelcol { width: 100px; } form table { width: 100%; } </style> </head> <body> <div id="content" style="margin-left: 20px;"> <h2 py:if="hasattr(value, 'display_name')" py:content="'%s (%s)' % (value.display_name, value.name)" /> <h2 py:if="not hasattr(value, 'display_name')" py:content="'Change %s' % model" /> ${XML(tmpl_context.widget(value=value, action='./'))} </div> </body> </html>