Fix redirect to new workout page

This commit is contained in:
Peter Stockings
2023-03-30 20:42:14 +11:00
parent 114b501adf
commit 5baa91df82
4 changed files with 18 additions and 16 deletions

View File

@@ -4,6 +4,14 @@
{% endwith %}
{% endfor %}
<script>
document.querySelectorAll('.accordion-button').forEach(header => {
header.addEventListener('click', () => {
header.parentElement.parentElement.querySelector('div.collapse').classList.toggle('hidden');
});
});
</script>
{% with users=users, bikes=bikes %}
{% include 'users.html' %}
{% endwith %}