Redirect to new workout page using <a> rather then js onlick handler (Not sure why I did this in the first place)

This commit is contained in:
Peter Stockings
2023-10-20 19:45:00 +11:00
parent f340d1d3a9
commit c7974190ce

View File

@@ -35,10 +35,9 @@
</script> </script>
</div> </div>
</div> </div>
<button <a class="shadow mt-6 bg-purple-500 hover:bg-purple-400 focus:shadow-outline focus:outline-none text-white font-bold py-2 px-4 rounded w-full ml-0 md:ml-4 text-center "
class="shadow mt-6 bg-purple-500 hover:bg-purple-400 focus:shadow-outline focus:outline-none text-white font-bold py-2 px-4 rounded w-full ml-0 md:ml-4" type="submit" href="{{ url_for('new_workout', user_id=user.id) }}">New
type="submit" onclick="location.href = '{{ url_for('new_workout', user_id=user.id) }}';">New Workout</a>
Workout</button>
</div> </div>
</div> </div>