<%= form_for(@user, :url => { :controller => "user_pages", :action => "update_trainer" }, html: { :id => "select-trainer-form" }) do |f| %>
<%= render "shared/errors", object: @user %>
<% @trainers.order(id: :asc).each do |t| %>
-
<%= link_to "#", data: { id: t.safe_url, name: t.short_name, info: t.bio.try(:html_safe), photo: t.avatar.medium.url }, class: "coach-item #{'active' if current_user.coach == t}" do %>
<%= image_tag t.avatar.large.url %>
<%= t.full_name %>
<% end %>
<% end %>
<%= f.hidden_field :coach_id %>
<% end %>
<%= render "user_pages/modals/coaches" %>