first commit

This commit is contained in:
cedrick2711
2026-07-14 09:50:45 -04:00
commit 4fd27bacfd
43 changed files with 4427 additions and 0 deletions
+75
View File
@@ -0,0 +1,75 @@
{% extends "layouts/base.html" %}
{% block title %}Tryouts - TryoutPro{% endblock %}
{% block page_title %}Tryouts{% endblock %}
{% block breadcrumb %}<span class="breadcrumb">Home / Tryouts</span>{% endblock %}
{% block header_actions %}
{% if current_user.can_manage_tryouts() %}
<a href="{{ url_for('tryouts.create_tryout') }}" class="btn btn-primary">
<i class="fas fa-plus"></i> New Tryout
</a>
{% endif %}
{% endblock %}
{% block content %}
<div class="card">
<div class="card-body">
<div class="table-container">
<table class="table">
<thead>
<tr>
<th>Title</th>
<th>Target Team</th>
<th>Date</th>
<th>Location</th>
<th>Status</th>
<th>Players</th>
<th>Evaluations</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for tryout in tryouts %}
<tr>
<td class="cell-title">{{ tryout.title }}</td>
<td>{{ tryout.target_org_team.name if tryout.target_org_team else '-' }}</td>
<td>{{ tryout.date.strftime('%b %d, %Y') }}</td>
<td>{{ tryout.location or 'TBD' }}</td>
<td>
<span class="badge badge-{{ tryout.status }}">
{{ tryout.status | replace('_', ' ') | title }}
</span>
</td>
<td>{{ tryout.registrations.count() }}</td>
<td>{{ tryout.evaluations.count() }}</td>
<td>
<a href="{{ url_for('tryouts.view_tryout', tryout_id=tryout.id) }}" class="btn btn-sm btn-outline">
<i class="fas fa-eye"></i> View
</a>
{% if current_user.can_evaluate() %}
<a href="{{ url_for('evaluations.players_to_evaluate', tryout_id=tryout.id) }}" class="btn btn-sm btn-primary">
<i class="fas fa-clipboard-check"></i> Evaluate
</a>
{% endif %}
</td>
</tr>
{% else %}
<tr>
<td colspan="8" class="text-center">
<div class="empty-state">
<i class="fas fa-calendar-times"></i>
<h3>No tryouts found</h3>
{% if current_user.can_manage_tryouts() %}
<p>Get started by creating a new tryout.</p>
<a href="{{ url_for('tryouts.create_tryout') }}" class="btn btn-primary">Create Tryout</a>
{% endif %}
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endblock %}