diff --git a/main.go b/main.go index fc38c30..476a20d 100644 --- a/main.go +++ b/main.go @@ -145,7 +145,15 @@ func handleAddSet(w http.ResponseWriter, r *http.Request) { return } - exercise := r.FormValue("exercise") + // NEW: exercise from dropdown + optional custom + selected := r.FormValue("exercise_select") + exerciseCustom := r.FormValue("exercise_custom") + + exercise := selected + if selected == "custom" { + exercise = exerciseCustom + } + repsStr := r.FormValue("reps") weightStr := r.FormValue("weight") @@ -464,11 +472,23 @@ const indexHTML = ` grid-template-columns: 1.1fr 0.9fr; } } + .flex-row { + display:flex; + gap:0.5rem; + align-items:center; + } + .flex-row input[type="text"] { + flex:1; + } + .small { + font-size:0.8rem; + color:#9ca3af; + }
Simple self-hosted Go app – log sets, see rest times and training volume.
+Simple self-hosted Go app – 5×5 friendly: pick standard lifts, track volume and rest.