def edit_game(id): teams = team_repo.select_all() game = game_repo.select(id) return render_template('/games/edit.html', game=game, teams=teams)
def new_game(): teams = team_repo.select_all() return render_template("/games/new.html", teams=teams)
def add_players(): teams = team_repo.select_all() return render_template("players/add.html", title="Add Player", teams=teams, editing=True)
def teams(): teams = team_repo.select_all() return render_template("teams/index.html", title="All Teams", teams=teams)
def show_teams_to_change(): teams = team_repo.select_all() return render_template("teams/edit.html", title="Remove a Team", teams=teams, editing=True)
def new_player(): teams = team_repo.select_all() return render_template("/players/new.html", teams=teams)