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>
|
||||
</div>
|
||||
</div>
|
||||
<button
|
||||
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" onclick="location.href = '{{ url_for('new_workout', user_id=user.id) }}';">New
|
||||
Workout</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 "
|
||||
type="submit" href="{{ url_for('new_workout', user_id=user.id) }}">New
|
||||
Workout</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user