53 lines
2.7 KiB
HTML
53 lines
2.7 KiB
HTML
{% extends "layouts/base.html" %}
|
|
{% block title %}Create Tryout - TryoutPro{% endblock %}
|
|
{% block page_title %}Create Tryout{% endblock %}
|
|
{% block breadcrumb %}<span class="breadcrumb">Home / <a href="{{ url_for('tryouts.list_tryouts') }}">Tryouts</a> / Create</span>{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<form method="POST" action="{{ url_for('tryouts.create_tryout') }}" class="form">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
|
|
<div class="form-row">
|
|
<div class="form-group col-12">
|
|
<label for="title">Tryout Title</label>
|
|
<input type="text" id="title" name="title" placeholder="e.g., Spring Season Tryouts" required>
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-6">
|
|
<label for="date">Date</label>
|
|
<input type="date" id="date" name="date" required>
|
|
</div>
|
|
<div class="form-group col-6">
|
|
<label for="location">Location</label>
|
|
<input type="text" id="location" name="location" placeholder="e.g., Main Field">
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-6">
|
|
<label for="max_players">Max Players</label>
|
|
<input type="number" id="max_players" name="max_players" placeholder="Leave blank for unlimited" min="1">
|
|
</div>
|
|
<div class="form-group col-6">
|
|
<label for="target_org_team_id">Target Team</label>
|
|
<select id="target_org_team_id" name="target_org_team_id" class="form-select">
|
|
<option value="">-- No target team --</option>
|
|
{% for team in org_teams %}
|
|
<option value="{{ team.id }}">{{ team.name }}{% if team.coach %} (Coach: {{ team.coach.full_name }}){% endif %}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="description">Description</label>
|
|
<textarea id="description" name="description" rows="4" placeholder="Enter any details about the tryout..."></textarea>
|
|
</div>
|
|
<div class="form-actions">
|
|
<a href="{{ url_for('tryouts.list_tryouts') }}" class="btn btn-secondary">Cancel</a>
|
|
<button type="submit" class="btn btn-primary">Create Tryout</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |