Files
openvk4webtv/templates/index.html
2025-07-26 15:23:11 +03:00

49 lines
1.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>OpenVK4WebTV</TITLE>
<STYLE>
Body { font-family: Arial; background: #EEE; }
.container { width: 300px; margin: 50px auto; padding: 20px; background: white; }
.field { margin: 10px 0; }
INPUT { width: 100%; padding: 2px; }
</STYLE>
</HEAD>
<BODY>
<DIV CLASS="container">
<H3>OpenVK4WebTV</H3>
{% if request.query_params.get('error') %}
<DIV STYLE="color: red; margin: 10px 0;">
{% if request.query_params.get('error') == '1' %}
All fields are required!
{% elif request.query_params.get('error') == '2' %}
Authentication failed!
{% elif request.query_params.get('error') == '3' %}
Profile loading error!
{% elif request.query_params.get('error') == '4' %}
Feed loading error!
{% elif request.query_params.get('error') == '5' %}
Users info loading error!
{% endif %}
</DIV>
{% endif %}
<FORM METHOD="POST" ACTION="/auth">
<DIV CLASS="field">
Instance URL:<BR>
<INPUT TYPE="text" NAME="instance">
</DIV>
<DIV CLASS="field">
Email:<BR>
<INPUT TYPE="text" NAME="username">
</DIV>
<DIV CLASS="field">
Password:<BR>
<INPUT TYPE="password" NAME="password">
</DIV>
<INPUT TYPE="submit" VALUE="Login" STYLE="width: auto; padding: 3px 10px;">
<P><A HREF="/profile">Profile (if already logged in)</A></P>
<P><A HREF="/about">About</A></P>
</FORM>
</DIV>
</BODY>
</HTML>