<% phc_title "Member Listings Manager" %> <% phc_title_tagline "Listings for " + @member_profile.member_profile_first_name + " " + @member_profile.member_profile_last_name %> <% phc_breadcrumb_one link_to "Members List", phcdevworks_members.member_profiles_path %> <% phc_breadcrumb_two link_to @member_profile.member_profile_first_name + " " + @member_profile.member_profile_last_name + " Details", phcdevworks_members.member_profile_path(@member_profile) %> <% phc_breadcrumb_three yield(:phc_title_tagline) %>

<%= yield(:phc_title) %>

<% @member_listings.each do |member_listing| %> <% end %>
Company Name Conact Name City Country Listing Email Listing Website
<%= link_to member_listing.listing_company_name, member_profile_listing_path(member_listing.profile, member_listing) %> <%= link_to member_listing.listing_contact_name, 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_contact_email, 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 "Listing Details", member_profile_listing_path(member_listing.profile, member_listing), class: "btn btn-primary btn-xs" %> <%= link_to "Update Listing", edit_member_profile_listing_path(member_listing.profile, member_listing), class: "btn btn-purple btn-xs" %> <%= link_to "Remove Listing", 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 phcdevworks_members.new_member_profile_listing_path, class: "btn btn-primary btn-sm" do %> <%= "Add a New Listing for " + @member_profile .member_profile_first_name + " " + @member_profile .member_profile_last_name %> <% end %>