Files
Reklamator/app/templates/auth/login.html
T
gurixandClaude bbeacb0748 Fix remaining url_for('index') references
Fixed the remaining url_for('index') calls that were causing test failures:
- app/routes/auth.py: Updated logout redirect to use landing.index
- app/templates/auth/login.html: Updated "Return to home" link to use landing.index
- app/templates/base.html: Removed administrator placeholder text (cleaned up)

All url_for('index') references have been replaced with url_for('landing.index').

Test results: 57 passed, 1 skipped, 4 errors (pre-existing fixture issues in performance tests)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-17 15:26:54 +02:00

28 lines
701 B
HTML

{% extends "base.html" %}
{% block title %}Login - Reklamator{% endblock %}
{% block content %}
<h1>Login</h1>
<form method="POST">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
<div class="form-group">
<label for="username">Username</label>
<input type="text" id="username" name="username" required autofocus>
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" id="password" name="password" required>
</div>
<button type="submit">Login</button>
</form>
<p style="margin-top: 20px;">
<a href="{{ url_for('landing.index') }}">Return to home page</a>
</p>
{% endblock %}