diff --git a/app.py b/app.py index 9aa6a12..cdc792d 100644 --- a/app.py +++ b/app.py @@ -67,7 +67,7 @@ def get_workout_start_date_edit_form(person_id, workout_id): Update @@ -75,7 +75,7 @@ def get_workout_start_date_edit_form(person_id, workout_id): + class="text-sm font-medium text-cyan-600 hover:bg-gray-100 rounded-lg inline-flex items-center p-2 cursor-pointer"> Cancel """ @@ -88,7 +88,7 @@ def update_workout_start_date(person_id, workout_id): db.update_workout_start_date(workout_id, new_start_date) return f""" {new_start_date} - Edit @@ -102,7 +102,7 @@ def get_workout_start_date(person_id, workout_id): workout = db.get_workout(person_id, workout_id) return f""" {workout['StartDate']} - Edit @@ -123,11 +123,11 @@ def get_topset(person_id, workout_id, topset_id): { topset['Repetitions'] } x { topset['Weight'] }kg + class="text-sm font-medium text-cyan-600 hover:bg-gray-100 rounded-lg inline-flex items-center p-2 cursor-pointer"> Edit + class="text-sm font-medium text-cyan-600 hover:bg-gray-100 rounded-lg inline-flex items-center p-2 cursor-pointer"> Delete @@ -163,11 +163,11 @@ def create_topset(person_id, workout_id): {repetitions} x {weight}kg + class="text-sm font-medium text-cyan-600 hover:bg-gray-100 rounded-lg inline-flex items-center p-2 cursor-pointer"> Edit + class="text-sm font-medium text-cyan-600 hover:bg-gray-100 rounded-lg inline-flex items-center p-2 cursor-pointer"> Delete @@ -194,11 +194,11 @@ def update_topset(person_id, workout_id, topset_id): {repetitions} x {weight}kg + class="text-sm font-medium text-cyan-600 hover:bg-gray-100 rounded-lg inline-flex items-center p-2 cursor-pointer"> Edit + class="text-sm font-medium text-cyan-600 hover:bg-gray-100 rounded-lg inline-flex items-center p-2 cursor-pointer"> Delete @@ -236,10 +236,10 @@ def create_exercise(): {name} - + Edit - + Remove @@ -256,10 +256,10 @@ def get_exercise(exercise_id): {exercise['Name']} - + Edit - + Remove @@ -276,10 +276,10 @@ def get_exercise_edit_form(exercise_id): - + Update - + Cancel @@ -297,10 +297,10 @@ def update_exercise(exercise_id): {new_name} - + Edit - + Remove diff --git a/templates/partials/topset.html b/templates/partials/topset.html index ebfc0dd..291d8f6 100644 --- a/templates/partials/topset.html +++ b/templates/partials/topset.html @@ -14,19 +14,22 @@
x +

x

+ kg + name="weight" value="{{ topset['Weight'] }}"> +

kg

+ class="text-sm font-medium text-cyan-600 hover:bg-gray-100 rounded-lg inline-flex items-center p-2 cursor-pointer"> Update + class="text-sm font-medium text-cyan-600 hover:bg-gray-100 rounded-lg inline-flex items-center p-2 cursor-pointer"> Cancel diff --git a/templates/person.html b/templates/person.html index ac24fc8..3bc8da2 100644 --- a/templates/person.html +++ b/templates/person.html @@ -63,7 +63,7 @@ + class="text-sm font-medium text-cyan-600 hover:bg-gray-100 rounded-lg inline-flex items-center p-2 cursor-pointer"> Edit @@ -71,7 +71,7 @@ action="{{ url_for('delete_workout', person_id=person['PersonId'], workout_id=w['WorkoutId']) }}" method="delete" class="inline"> diff --git a/templates/workout.html b/templates/workout.html index c574701..e63b73f 100644 --- a/templates/workout.html +++ b/templates/workout.html @@ -11,7 +11,7 @@
@@ -19,7 +19,7 @@
{{ workout['StartDate'] }} - Edit @@ -60,11 +60,11 @@ {{ t['Repetitions'] }} x {{ t['Weight'] }}kg + class="text-sm font-medium text-cyan-600 hover:bg-gray-100 rounded-lg inline-flex items-center p-2 cursor-pointer"> Edit + class="text-sm font-medium text-cyan-600 hover:bg-gray-100 rounded-lg inline-flex items-center p-2 cursor-pointer"> Delete