1
0
mirror of synced 2024-12-21 09:15:52 +01:00
artemis/core/templates/arcade/index.jinja

19 lines
794 B
Plaintext
Raw Normal View History

{% extends "core/templates/index.jinja" %}
2023-07-24 04:21:49 +02:00
{% block content %}
2024-01-10 02:08:10 +01:00
{% if arcade is defined %}
2023-07-24 04:21:49 +02:00
<h1>{{ arcade.name }}</h1>
2024-01-10 02:08:10 +01:00
<h2>PCBs assigned to this arcade <button class="btn btn-success" id="btn_add_cab" onclick="toggle_add_cab_form()">Add</button></h2>
{% if success is defined and success == 3 %}
<div style="background-color: #00AA00; padding: 20px; margin-bottom: 10px; width: 15%;">
Cab added successfully
</div>
{% endif %}
<ul style="font-size: 20px;">
{% for c in arcade.cabs %}
<li><a href="/cab/{{ c.id }}">{{ c.serial }}</a> ({{ c.game if c.game else "Any" }})&nbsp;<button class="btn btn-secondary" onclick="prep_edit_form()">Edit</button>&nbsp;<button class="btn-danger btn">Delete</button></li>
2024-01-10 02:08:10 +01:00
{% endfor %}
</ul>
{% else %}
<h3>Arcade Not Found</h3>
{% endif %}
2023-07-24 04:21:49 +02:00
{% endblock content %}