Régler problèmes d'affichage des matchs récents:

Ajout des match qui arrivent pour les coach, president et manager
Légèrement alléger la quantité de pages (merge certaines ensembles)
This commit is contained in:
cedrick2711
2026-07-23 18:37:06 -04:00
parent f75c43ce1c
commit bf4c0ce4b1
22 changed files with 579 additions and 1287 deletions
+9 -6
View File
@@ -1433,12 +1433,13 @@ def add_personal_note():
flash('Personal note added successfully!', 'success')
return redirect(url_for('users.notes_dashboard'))
return render_template('pages/add_personal_note.html',
return render_template('pages/add_note.html',
players=players,
matches=matches,
tryouts=tryouts,
teams=teams,
org_team=org_team)
org_team=org_team,
context_type='general')
@users_bp.route('/match/<int:match_id>/add-note', methods=['GET', 'POST'])
@@ -1509,11 +1510,12 @@ def add_note_from_match(match_id):
flash('Personal note added successfully!', 'success')
return redirect(url_for('tryouts.view_tryout', tryout_id=tryout.id))
return render_template('pages/add_note_from_match.html',
return render_template('pages/add_note.html',
match=match,
tryout=tryout,
players=players,
team_notes=team_notes)
team_notes=team_notes,
context_type='match')
@users_bp.route('/tryout/<int:tryout_id>/add-note', methods=['GET', 'POST'])
@@ -1583,8 +1585,9 @@ def add_note_from_tryout(tryout_id):
# Allow pre-selecting a player via query parameter
preselected_player_id = request.args.get('player_id', type=int)
return render_template('pages/add_note_from_tryout.html',
return render_template('pages/add_note.html',
tryout=tryout,
players=players,
team_notes=team_notes,
preselected_player_id=preselected_player_id)
preselected_player_id=preselected_player_id,
context_type='tryout')