2023-02-21 02:55:12 +00:00
|
|
|
{% extends "core/frontend/index.jinja" %}
|
2023-02-19 20:40:25 +00:00
|
|
|
{% block content %}
|
2023-05-20 19:32:02 +00:00
|
|
|
<h1>Management for {{ username }}</h1>
|
|
|
|
<h2>Cards <button class="btn btn-success" data-bs-toggle="modal" data-bs-target="#card_add">Add</button></h2>
|
2023-07-24 02:21:49 +00:00
|
|
|
<ul style="font-size: 20px;">
|
2023-05-20 19:32:02 +00:00
|
|
|
{% for c in cards %}
|
2023-07-24 02:21:49 +00:00
|
|
|
<li>{{ c.access_code }}: {{ c.status }} {% if c.status == 'Active'%}<button class="btn-warning btn">Lock</button>{% elif c.status == 'Locked' %}<button class="btn-warning btn">Unlock</button>{% endif %} <button class="btn-danger btn">Delete</button></li>
|
2023-05-20 19:32:02 +00:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2023-07-24 02:21:49 +00:00
|
|
|
|
|
|
|
{% if arcades is defined %}
|
|
|
|
<h2>Arcades</h2>
|
|
|
|
<ul style="font-size: 20px;">
|
|
|
|
{% for a in arcades %}
|
|
|
|
<li><a href=/arcade/{{ a.id }}>{{ a.name }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
|
2023-05-20 19:32:02 +00:00
|
|
|
<div class="modal fade" id="card_add" tabindex="-1" aria-labelledby="card_add_label" aria-hidden="true">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h1 class="modal-title fs-5" id="card_add_label">Add Card</h1>
|
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
HOW TO:<br>
|
|
|
|
Scan your card on any networked game and press the "View Access Code" button (varies by game) and enter the 20 digit code below.<br>
|
|
|
|
!!FOR AMUSEIC CARDS: DO NOT ENTER THE CODE SHOWN ON THE BACK OF THE CARD ITSELF OR IT WILL NOT WORK!!
|
|
|
|
<p /><label for="card_add_frm_access_code">Access Code: </label><input id="card_add_frm_access_code" maxlength="20" type="text" required>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-primary">Add</button>
|
|
|
|
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-02-19 20:40:25 +00:00
|
|
|
{% endblock content %}
|