diff options
Diffstat (limited to 'src/main/resources/templates/views')
-rw-r--r-- | src/main/resources/templates/views/login.html | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/main/resources/templates/views/login.html b/src/main/resources/templates/views/login.html new file mode 100644 index 000000000..f61853e83 --- /dev/null +++ b/src/main/resources/templates/views/login.html @@ -0,0 +1,57 @@ +{% extends "layouts/default" %} +{% block content %} + <script> + function showLoginForm() { + var form = document.getElementById('signinform'); + form.style.display = 'block'; + var nick = document.getElementById('nickinput'); + nick.focus(); + return false; + } + function ready(fn) { + if (document.readyState != 'loading') { + fn(); + } else { + document.addEventListener('DOMContentLoaded', fn); + } + } + ready(function() { + var params = new URLSearchParams(window.location.search); + if (params.has('error')) { + showLoginForm(); + } + }); + </script> + <div id="signup"> + {{ i18n("messages","label.register") }}: + <div id="facebook"><a href="/_fblogin" rel="nofollow">Facebook</a></div> + <div id="vk"><a href="/_vklogin" rel="nofollow">ВКонтакте</a></div> + <div id="tg"> + <script async src="https://telegram.org/js/telegram-widget.js?3" data-telegram-login="Juick_bot" + data-size="medium" data-radius="0" data-auth-url="https://juick.com/_tglogin" + data-request-access="write"></script> + </div> + <div id="apple"> + <a href="/_apple" rel="nofollow"><img src="https://appleid.cdn-apple.com/appleid/button" /></a> + </div> + </div> + <div id="signin"> + <a href="#" onclick="return showLoginForm();"> + {{ i18n("messages","question.areRegistered") }} + </a> + <div id="signinform"> + <form action="/login" method="POST"> + <p class="err">{{ authErrorMessage | default('') }}</p> + <input type="hidden" name="{{_csrf.parameterName}}" value="{{_csrf.token}}" /> + <input class="txt" type="text" name="username" placeholder='{{ i18n("messages","label.username") }}' + id="nickinput" autocomplete="username" /> + <input class="txt" type="password" name="password" + placeholder='{{ i18n("messages","label.password") }}' autocomplete="current-password" /> + <input class="submit" type="submit" value="OK" /> + </form> + </div> + </div> +{% endblock %} +{% block "column" %} +{% include "views/partial/homecolumn" %} +{% endblock %} |