Commit 9d5dd4bc authored by Julien Cristau's avatar Julien Cristau
Browse files

[views] Make LogFormView compatible with bootstrap

The bootstrap cube changes the login_form API, so make our subclass
compatible with both the standard one and bootstrap's.  Closes #4451228.

See https://www.cubicweb.org/ticket/3715660
parent 1da874c8dd50
...@@ -23,8 +23,8 @@ _ = unicode ...@@ -23,8 +23,8 @@ _ = unicode
class LogFormView(basetemplates.LogFormView): class LogFormView(basetemplates.LogFormView):
def login_form(self, id): def login_form(self, *args, **kwargs):
super(LogFormView, self).login_form(id) super(LogFormView, self).login_form(*args, **kwargs)
self.w(u'<span class="forgotpwdLink"><a href="%s">%s</a></span>' % ( self.w(u'<span class="forgotpwdLink"><a href="%s">%s</a></span>' % (
xml_escape(self._cw.build_url('forgottenpassword', xml_escape(self._cw.build_url('forgottenpassword',
base_url=self._cw.vreg.config['base-url'])), base_url=self._cw.vreg.config['base-url'])),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment