summaryrefslogtreecommitdiff
path: root/app/templates/home.html
diff options
context:
space:
mode:
authorstilbruch <stilbruch@protonmail.com>2022-04-06 15:02:25 -0500
committerstilbruch <stilbruch@protonmail.com>2022-04-06 15:02:25 -0500
commitcafd3f6151a6c673163755400b40597b6d3476bc (patch)
treeac0f613ca4500e7d489ef8a5b119cf1572cd66cb /app/templates/home.html
parented1823168fb6f3256bcd7397b4d4de462a3f1781 (diff)
downloadStrengthy-cafd3f6151a6c673163755400b40597b6d3476bc.tar.xz
Strengthy-cafd3f6151a6c673163755400b40597b6d3476bc.zip
Workouts names can be edited
Diffstat (limited to 'app/templates/home.html')
-rw-r--r--app/templates/home.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/app/templates/home.html b/app/templates/home.html
index 693e03b..11179cd 100644
--- a/app/templates/home.html
+++ b/app/templates/home.html
@@ -60,13 +60,21 @@
<tr>
<td>{{ workout.name }}</td>
<td>{{ workout.exercises.count() }} exercises</td>
- <td class="level-right"><a class="button is-small is-primary" href="#">Edit</a></td>
+ <td class="level-right">
+ <p class="buttons">
+ <a class="button is-small is-primary" href="/workout/edit?id={{ workout.id }}">Edit</a>
+ <a class="button is-small is-danger" href="#">Delete</a>
+ </p>
+ </td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
+ <footer class="card-footer">
+ <a href="/workout/create" class="card-footer-item">Create New</a>
+ </footer>
</div>
</div>
<div class="column is-6">