fix: refactor code to be testable #181
This commit was merged in pull request #212.
This commit is contained in:
@@ -9,29 +9,13 @@ templ WorkoutComp(currentDate string) {
|
||||
hx-swap="outerHTML"
|
||||
>
|
||||
<h2 class="text-4xl mb-8">Track your workout</h2>
|
||||
<input
|
||||
id="date"
|
||||
type="date"
|
||||
class="input input-bordered"
|
||||
value={ currentDate }
|
||||
name="date"
|
||||
/>
|
||||
<input id="date" type="date" class="input input-bordered" value={ currentDate } name="date"/>
|
||||
<select class="select select-bordered w-full" name="type">
|
||||
<option>Push Ups</option>
|
||||
<option>Pull Ups</option>
|
||||
</select>
|
||||
<input
|
||||
type="number"
|
||||
class="input input-bordered"
|
||||
placeholder="Sets"
|
||||
name="sets"
|
||||
/>
|
||||
<input
|
||||
type="number"
|
||||
class="input input-bordered"
|
||||
placeholder="Reps"
|
||||
name="reps"
|
||||
/>
|
||||
<input type="number" class="input input-bordered" placeholder="Sets" name="sets"/>
|
||||
<input type="number" class="input input-bordered" placeholder="Reps" name="reps"/>
|
||||
<button class="btn btn-primary self-end">Save</button>
|
||||
</form>
|
||||
<div hx-get="/api/workout" hx-trigger="load"></div>
|
||||
|
||||
Reference in New Issue
Block a user