diff options
| author | stilbruch <stilbruch@protonmail.com> | 2022-04-06 15:54:13 -0500 |
|---|---|---|
| committer | stilbruch <stilbruch@protonmail.com> | 2022-04-06 15:54:13 -0500 |
| commit | 73b96155fcd54b958fe8c676db028fd4fc4fabe4 (patch) | |
| tree | 463889ee607c060c36404df88a6eca88146c3204 /app/routes.py | |
| parent | a15316714eed4c8051bd84917a126f104e3ed293 (diff) | |
| download | Strengthy-73b96155fcd54b958fe8c676db028fd4fc4fabe4.tar.xz Strengthy-73b96155fcd54b958fe8c676db028fd4fc4fabe4.zip | |
Add confirmation modal for deleting a workout
Diffstat (limited to 'app/routes.py')
| -rw-r--r-- | app/routes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/routes.py b/app/routes.py index 1ff1023..17d8f4e 100644 --- a/app/routes.py +++ b/app/routes.py @@ -78,7 +78,7 @@ def createWorkout(): else: flash("Workout with this name already exists", "danger") - return render_template('workout/create.html', form=form) + return render_template('workout/create.html', form=form, title="Create a Workout") @app.route("/workout/edit", methods=['GET', 'POST']) @login_required @@ -110,4 +110,4 @@ def editWorkout(): for exercise in workout.exercises: form.exercises.append_entry(exercise) - return render_template('workout/create.html', form=form) + return render_template('workout/create.html', form=form, title=f'Edit Workout "{workout.name}"') |
