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

<%= yield(:phc_title) %>

<% @member_addresses.each do |member_address| %> <% end %>
Address Line 1 City Country PostalCode Type
<%= link_to member_address.address_line_1, phcdevworks_members.member_profile_address_path(member_address.profile, member_address) %> <%= link_to member_address.address_city, phcdevworks_members.member_profile_address_path(member_address.profile, member_address) %> <%= link_to member_address.address_country, phcdevworks_members.member_profile_address_path(member_address.profile, member_address) %> <%= link_to member_address.address_postal_code, phcdevworks_members.member_profile_address_path(member_address.profile, member_address) %> <%= link_to member_address.address_type, phcdevworks_members.member_profile_address_path(member_address.profile, member_address) %>
<%= link_to "Address Details", member_profile_address_path(member_address.profile, member_address), class: "btn btn-primary btn-xs" %> <%= link_to "Update Address", edit_member_profile_address_path(member_address.profile, member_address), class: "btn btn-purple btn-xs" %> <%= link_to "Remove Address", member_profile_address_path(member_address.profile, member_address), 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_address_path, class: "btn btn-primary btn-sm" do %> <%= "Add a New Address for " + @member_profile.profile_first_name + " " + @member_profile.profile_last_name %> <% end %>