Artberry-web/templates/login.html
2025-03-07 01:37:22 +02:00

35 lines
1.1 KiB
HTML

{% extends "auth.html" %}
{% block title %}🫐login - artberry🫐{% endblock %}
{% set action = 'auth.login' %}
{% block content %}
<form method="POST" action="{{ url_for(action) }}">
{{ form.hidden_tag() }}
{% for field, errors in form.errors.items() %}
<ul>
{% for error in errors %}
<li><strong>{{ field.label }}:</strong> {{ error }}</li>
{% endfor %}
</ul>
{% endfor %}
<label for="{{ form.username.id }}">{{ form.username.label.text }}</label>
{{ form.username(class="input-field", placeholder="Enter username") }}<br>
<label for="{{ form.password.id }}">{{ form.password.label.text }}</label>
{{ form.password(class="input-field", placeholder="Enter password") }}<br>
<div class="recaptcha-container">
{{ form.recaptcha.label }}
{{ form.recaptcha() }}<br>
</div>
{{ form.submit(class="login-button button", value="Login") }}
</form>
<div class="link-container">
<span class="link-text">Don't have an account?</span>
<a href="{{ url_for('auth.register') }}" class="button">Register</a>
</div>
{% endblock %}