forms: mark forms requiring an authentication with a class (#5700)

This commit is contained in:
Frédéric Péters 2014-11-19 14:45:23 +01:00
parent e535d0a47b
commit 7012efed26
1 changed files with 2 additions and 2 deletions

View File

@ -1014,9 +1014,9 @@ class AlternateRootDirectory(OldRootDirectory):
r += htmltext('</li>\n')
if len(formdefs) < limit:
for formdef in formdefs_advertise[:limit-len(formdefs)]:
r += htmltext('<li>')
r += htmltext('<li class="required-authentication">')
r += htmltext('<a href="%s/%s/">%s</a>') % (category.url_name, formdef.url_name, formdef.name)
r += ' (%s)' % _('authentication required')
r += htmltext('<span> (%s)</span></li>') % _('authentication required')
r += htmltext('</li>\n')
if (len(formdefs)+len(formdefs_advertise)) > limit:
r += htmltext('<li class="all-forms"><a href="%s/" title="%s">%s</a></li>') % (category.url_name,