diff --git a/src/home/gym/index.php b/src/home/gym/index.php index f19bad3c47ce7e832b40c66eb6d2b468dc0afdf1..138051b877aade0ade915b32a82a7090aae820b9 100644 --- a/src/home/gym/index.php +++ b/src/home/gym/index.php @@ -208,7 +208,7 @@ $gym = GymService::getInstance()->getById($gym_id); <script src="/public/javascript/gym/trainer.js"></script> <script> - getGymTrainers(); + getTrainersByGymId(<?php echo $gym_id ?>); </script> <script> diff --git a/src/home/gym/trainer/index.php b/src/home/gym/trainer/index.php index b93db2a3f7ebb53beb7d9087db04d28424054778..71e51decf16d64cd385108cae78b6886fb3741e5 100644 --- a/src/home/gym/trainer/index.php +++ b/src/home/gym/trainer/index.php @@ -42,8 +42,7 @@ AuthMiddleware::getInstance()->secureRoute(); <script src="/public/javascript/gym/trainer_card.js"></script> <script src="/public/javascript/gym/trainer.js"></script> <script> - showTrainerInformation(trainerData[0]); // Temporary example - showTrainerSkill(trainerData[0]); + getTrainerInformation(gymId, username); </script> </body>