36 lines
1.1 KiB
HTML
36 lines
1.1 KiB
HTML
{% extends 'base.html' %}
|
|
|
|
{% block title %}Admin Login - Game Tracker{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="page-header">
|
|
<h1>Admin Login</h1>
|
|
{% if admin_exists %}
|
|
<p class="subtitle">Enter your password to access the admin area</p>
|
|
{% else %}
|
|
<p class="subtitle">First time setup - Create an admin password</p>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<div class="login-container">
|
|
<form class="login-form" method="POST">
|
|
<div class="form-group">
|
|
<label for="password">
|
|
{% if admin_exists %}Password:{% else %}Create Password:{% endif %}
|
|
</label>
|
|
<input type="password" id="password" name="password" required>
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-primary btn-wide">
|
|
{% if admin_exists %}Login{% else %}Create Admin Account{% endif %}
|
|
</button>
|
|
</form>
|
|
|
|
<div class="login-footer">
|
|
<a href="{{ url_for('main.index') }}" class="back-link">
|
|
<i class="fas fa-arrow-left"></i> Back to Game Tracker
|
|
</a>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|