{% import 'ruby/pages/partials/components.html' as components %}
{% set locations = hubdb_table_rows(components.tables.locations, components.open_club_query ~ '&orderBy=name') %} {{ components.responsive_background('#trainer-hero', module.trainer_index.backgrounds.desktop_image.src, module.trainer_index.backgrounds.tablet_image.src, module.trainer_index.backgrounds.mobile_image.src) }}

Meet
the Trainers

Edge Fitness Trainers
    {% for location in locations %} {% unless location.state.name in printed %}
  • {% endunless %} {% set printedAdd = printed.append(location.state.name) %} {% endfor %}
    {% for location in locations %}
  • {% endfor %}
{% for location in locations %} {% set trainers = all_trainers|selectattr('locations', 'containing', location) %} {% set trainers = [] %} {% for trainer in all_trainers %} {% for trainer_location in trainer.locations %} {% if not (trainers is containing trainer) and trainer_location.hs_id == location.hs_id %} {% do trainers.append(trainer) %} {% endif %} {% endfor %} {% endfor %} {% if trainers|count > 0 %}

{{ location.name }}

{% for trainer in trainers %}

{{ trainer.name }}

{% endfor %}
{% endif %} {% endfor %}
Join Now