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:
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user