2026-01-13 20:58:05 -05:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en" data-bs-theme="dark">
|
|
|
|
|
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
<meta name="author" content="Disco DeDisco">
|
|
|
|
|
<meta name="robots" content="noindex, nofollow">
|
2026-01-29 15:21:54 -05:00
|
|
|
<title>Earthman RPG | {% block title_text %}{% endblock title_text %}</title>
|
2026-01-13 20:58:05 -05:00
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.8/css/bootstrap.min.css"/>
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
<div class="container">
|
2026-01-30 17:23:07 -05:00
|
|
|
<nav class="navbar">
|
2026-01-29 15:21:54 -05:00
|
|
|
<div class="container-fluid">
|
2026-01-31 15:16:34 -05:00
|
|
|
<a href="/" class="navbar-brand">
|
|
|
|
|
<h1>Welcome, Earthman</h1>
|
|
|
|
|
</a>
|
2026-02-01 16:19:07 -05:00
|
|
|
{% if user.email %}
|
2026-02-07 20:15:27 -05:00
|
|
|
<a class="navbar-link" href="{% url 'my_lists' user.email %}">My lists</a>
|
2026-02-01 16:19:07 -05:00
|
|
|
<span class="navbar-text">Logged in as {{ user.email }}</span>
|
2026-02-01 20:06:01 -05:00
|
|
|
<form method="POST" action="{% url "logout" %}">
|
2026-01-29 15:21:54 -05:00
|
|
|
{% csrf_token %}
|
2026-02-01 16:19:07 -05:00
|
|
|
<button id="id_logout" class="btn btn-outline-secondary" type="submit">
|
|
|
|
|
Log Out
|
|
|
|
|
</button>
|
|
|
|
|
</form>
|
|
|
|
|
{% else %}
|
|
|
|
|
<form method="POST" action="{% url "send_login_email" %}">
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
<label for="id_email_input" class="navbar-text me-2">
|
|
|
|
|
enter email for login:
|
|
|
|
|
</label>
|
|
|
|
|
<input
|
|
|
|
|
id="id_email_input"
|
|
|
|
|
name="email"
|
|
|
|
|
class="form-control"
|
|
|
|
|
placeholder="your@email.here"
|
|
|
|
|
>
|
|
|
|
|
{% csrf_token %}
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
{% endif %}
|
2026-01-29 15:21:54 -05:00
|
|
|
</div>
|
2026-01-30 17:23:07 -05:00
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
{% if messages %}
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
{% for message in messages %}
|
|
|
|
|
{% if message.level_tag == 'success' %}
|
|
|
|
|
<div class="alert alert-success">{{ message }}</div>
|
|
|
|
|
{% else %}
|
|
|
|
|
<div class="alert alert-warning">{{ message }}</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
2026-01-29 15:21:54 -05:00
|
|
|
|
2026-01-13 20:58:05 -05:00
|
|
|
<div class="row justify-content-center p-5 bg-body-tertiary rounded-3">
|
|
|
|
|
<div class="col-lg-6 text-center">
|
2026-01-29 15:21:54 -05:00
|
|
|
<h2 class="display-1 mb-4">{% block header_text %}{% endblock header_text %}</h2>
|
2026-01-13 20:58:05 -05:00
|
|
|
|
|
|
|
|
<form method="POST" action="{% block form_action %}{% endblock form_action %}">
|
|
|
|
|
{% csrf_token %}
|
2026-01-24 13:36:31 -05:00
|
|
|
<input
|
|
|
|
|
id="id_text"
|
|
|
|
|
name="text"
|
|
|
|
|
class="form-control form-control-lg{% if form.errors %} is-invalid{% endif %}"
|
|
|
|
|
placeholder="Enter a to-do item"
|
|
|
|
|
value="{{ form.text.value | default:'' }}"
|
|
|
|
|
aria-describedby="id_text_feedback"
|
|
|
|
|
required
|
|
|
|
|
/>
|
2026-01-20 15:14:05 -05:00
|
|
|
{% if form.errors %}
|
2026-01-24 13:36:31 -05:00
|
|
|
<div id="id_text_feedback" class="invalid-feedback">
|
|
|
|
|
{{ form.errors.text.0 }}
|
|
|
|
|
</div>
|
2026-01-19 16:35:00 -05:00
|
|
|
{% endif %}
|
2026-01-13 20:58:05 -05:00
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="row justify-content-center">
|
|
|
|
|
<div class="col-lg-6">
|
|
|
|
|
{% block table %}
|
|
|
|
|
{% endblock table %}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|
<script
|
|
|
|
|
src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.8/js/bootstrap.min.js"
|
|
|
|
|
></script>
|
|
|
|
|
|
2026-01-27 17:05:47 -05:00
|
|
|
<script src="/static/apps/scripts/dashboard.js"></script>
|
2026-01-25 22:40:57 -05:00
|
|
|
<script>
|
2026-01-27 17:18:59 -05:00
|
|
|
window.onload = () => {
|
|
|
|
|
initialize("#id_text");
|
|
|
|
|
};
|
2026-01-25 22:40:57 -05:00
|
|
|
</script>
|
|
|
|
|
|
2026-01-03 19:20:41 -05:00
|
|
|
</html>
|