<% phc_title "Member Listings Manager" %> <% phc_title_tagline "Listings for " + @members_profile_info.member_firstname + " " + @members_profile_info.member_lastname %> <% phc_breadcrumb_one link_to "Dashboard", phcmemberspro.dashboard_path %> <% phc_breadcrumb_two link_to "Members List", phcmemberspro.member_profiles_path %> <% phc_breadcrumb_three yield(:phc_title_tagline) %>

<%= yield(:phc_title) %>

<%= yield(:phc_title_tagline) %>

<% @member_listings.each do |member_listing| %> <% end %>
Company Name Conact Name City Country Listing Phone Listing Email Listing Website
<%= link_to member_listing.listing_companyname, member_profile_listing_path(member_listing.profile, member_listing) %> <%= link_to member_listing.listing_contactname, member_profile_listing_path(member_listing.profile, member_listing) %> <%= link_to member_listing.listing_city, member_profile_listing_path(member_listing.profile, member_listing) %> <%= link_to member_listing.listing_province, member_profile_listing_path(member_listing.profile, member_listing) %> <%= link_to member_listing.listing_phone, member_profile_listing_path(member_listing.profile, member_listing) %> <%= link_to member_listing.listing_contactemail, member_profile_listing_path(member_listing.profile, member_listing) %> <%= link_to member_listing.listing_website, member_profile_listing_path(member_listing.profile, member_listing) %>
<%= link_to 'Update', edit_member_profile_listing_path(member_listing.profile, member_listing), class: "btn btn-purple btn-xs" %> <%= link_to 'Remove', member_profile_listing_path(member_listing.profile, member_listing), class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure? This will remove listing information and cannot be reversed.' } %>
<%= link_to phcmemberspro.new_member_profile_listing_path, class: "btn btn-primary btn-sm" do %> <%= "Add a New Listing for " + @members_profile_info .member_firstname + " " + @members_profile_info .member_lastname %> <% end %>