2024-01-09 20:54:34 +00:00
|
|
|
{% extends "core/templates/index.jinja" %}
|
|
|
|
{% block content %}
|
2024-01-10 01:08:10 +00:00
|
|
|
{% if arcade is defined %}
|
2024-01-09 20:54:34 +00:00
|
|
|
<h1>{{ arcade.name }}</h1>
|
2024-01-10 01:08:10 +00: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 }} ({{ c.game }})</a> <button class="btn btn-secondary" onclick="prep_edit_form()">Edit</button> <button class="btn-danger btn">Delete</button></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% else %}
|
|
|
|
<h3>Arcade Not Found</h3>
|
|
|
|
{% endif %}
|
2024-01-09 20:54:34 +00:00
|
|
|
{% endblock content %}
|