changeset 9717 | a6834e2dcc1b |
parent 8696 | 0bb18407c053 |
child 10006 | 8391bf718485 |
--- a/web/views/formrenderers.py Fri Apr 11 17:43:26 2014 +0200 +++ b/web/views/formrenderers.py Mon Apr 14 23:00:19 2014 +0200 @@ -202,6 +202,8 @@ attrs.setdefault('class', form.cssclass) if form.cwtarget: attrs.setdefault('cubicweb:target', form.cwtarget) + if not form.autocomplete: + attrs.setdefault('autocomplete', 'off') return '<form %s>' % uilib.sgml_attributes(attrs) def close_form(self, form, values):