finised app

This commit is contained in:
2025-01-22 11:29:29 +02:00
parent 0f17a68035
commit 060956fe99
8 changed files with 213 additions and 11 deletions

View File

@@ -40,7 +40,7 @@
<strong>{{ player.username }}</strong> ({{ player.ip }})
</div>
<div>
<a href="{{ url_for('player_page', player_id=player.id) }}" class="btn btn-sm btn-secondary">View Schedule</a>
<a href="{{ url_for('player_page', player_id=player.id) }}" class="btn btn-sm btn-secondary">Manage Player</a>
<a href="{{ url_for('player_fullscreen', player_id=player.id) }}" class="btn btn-sm btn-primary">Full Screen</a>
{% if current_user.role == 'admin' %}
<form action="{{ url_for('delete_player', player_id=player.id) }}" method="post" style="display:inline;">
@@ -102,6 +102,18 @@
<a href="{{ url_for('upload_content') }}" class="btn btn-warning btn-lg">Upload Content</a>
</div>
</div>
<!-- Integrate Player Section -->
{% if current_user.role == 'admin' %}
<div class="card mb-4">
<div class="card-header bg-dark text-white">
<h2>Integrate Player</h2>
</div>
<div class="card-body text-center">
<a href="{{ url_for('integrate_player') }}" class="btn btn-dark btn-lg">Integrate Player</a>
</div>
</div>
{% endif %}
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js"></script>