aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/templates/views
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-12-07 15:54:04 +0300
committerGravatar Vitaly Takmazov2022-12-07 15:54:04 +0300
commit206742aed99a20fea014c83408fb44ff36089351 (patch)
treeddc7858c8b2d9e94787fdd7a7ea3dae05f07c047 /src/main/resources/templates/views
parent360c42ee8a5a4e190195670e1f19c262801eb45f (diff)
Remove login popup
Diffstat (limited to 'src/main/resources/templates/views')
-rw-r--r--src/main/resources/templates/views/login.html57
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 00000000..f61853e8
--- /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 %}