forked from indymedia/epicyon
Line endings
parent
6c7210527e
commit
da2025a140
|
@ -1642,35 +1642,35 @@ def htmlLogin(translate: {}, baseDir: str, autocomplete=True) -> str:
|
||||||
|
|
||||||
loginForm = htmlHeader(cssFilename, loginCSS)
|
loginForm = htmlHeader(cssFilename, loginCSS)
|
||||||
loginForm += '<br>\n'
|
loginForm += '<br>\n'
|
||||||
loginForm += '<form method="POST" action="/login">'
|
loginForm += '<form method="POST" action="/login">\n'
|
||||||
loginForm += ' <div class="imgcontainer">'
|
loginForm += ' <div class="imgcontainer">\n'
|
||||||
loginForm += \
|
loginForm += \
|
||||||
' <img loading="lazy" src="' + loginImage + \
|
' <img loading="lazy" src="' + loginImage + \
|
||||||
'" alt="login image" class="loginimage">'
|
'" alt="login image" class="loginimage">\n'
|
||||||
loginForm += loginText + TOSstr
|
loginForm += loginText + TOSstr + '\n'
|
||||||
loginForm += ' </div>'
|
loginForm += ' </div>\n'
|
||||||
loginForm += ''
|
loginForm += '\n'
|
||||||
loginForm += ' <div class="container">'
|
loginForm += ' <div class="container">\n'
|
||||||
loginForm += ' <label for="nickname"><b>' + \
|
loginForm += ' <label for="nickname"><b>' + \
|
||||||
translate['Nickname'] + '</b></label>'
|
translate['Nickname'] + '</b></label>\n'
|
||||||
loginForm += \
|
loginForm += \
|
||||||
' <input type="text" ' + autocompleteStr + ' placeholder="' + \
|
' <input type="text" ' + autocompleteStr + ' placeholder="' + \
|
||||||
translate['Enter Nickname'] + '" name="username" required autofocus>'
|
translate['Enter Nickname'] + '" name="username" required autofocus>\n'
|
||||||
loginForm += ''
|
loginForm += '\n'
|
||||||
loginForm += ' <label for="password"><b>' + \
|
loginForm += ' <label for="password"><b>' + \
|
||||||
translate['Password'] + '</b></label>'
|
translate['Password'] + '</b></label>\n'
|
||||||
loginForm += \
|
loginForm += \
|
||||||
' <input type="password" ' + autocompleteStr + \
|
' <input type="password" ' + autocompleteStr + \
|
||||||
' placeholder="' + translate['Enter Password'] + \
|
' placeholder="' + translate['Enter Password'] + \
|
||||||
'" name="password" required>'
|
'" name="password" required>\n'
|
||||||
loginForm += loginButtonStr + registerButtonStr
|
loginForm += loginButtonStr + registerButtonStr + '\n'
|
||||||
loginForm += ' </div>'
|
loginForm += ' </div>\n'
|
||||||
loginForm += '</form>'
|
loginForm += '</form>\n'
|
||||||
loginForm += \
|
loginForm += \
|
||||||
'<a href="https://gitlab.com/bashrc2/epicyon">' + \
|
'<a href="https://gitlab.com/bashrc2/epicyon">' + \
|
||||||
'<img loading="lazy" class="license" title="' + \
|
'<img loading="lazy" class="license" title="' + \
|
||||||
translate['Get the source code'] + '" alt="' + \
|
translate['Get the source code'] + '" alt="' + \
|
||||||
translate['Get the source code'] + '" src="/icons/agpl.png" /></a>'
|
translate['Get the source code'] + '" src="/icons/agpl.png" /></a>\n'
|
||||||
loginForm += htmlFooter()
|
loginForm += htmlFooter()
|
||||||
return loginForm
|
return loginForm
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue