<% phc_title "Member Address Manager" %> <% phc_title_tagline "Address Index for " + @members_profile_info.mfirstname + " " + @members_profile_info.mlastname %>

<%= yield(:phc_title) %>

<%= link_to phcmemberspro.new_member_profile_address_path, class: "btn btn-primary" do %> Creat a New Address for <%= @members_profile_info.mfirstname + ' ' + @members_profile_info.mlastname %> <% end %>
<%= yield(:phc_title_tagline) %>
<% @member_addresses.each do |member_address| %> <% end %>
Address Line 1 Address Line 2 City Province Country PostalCode Type
<%= link_to member_address.mcaddressl1, phcmemberspro.member_profile_address_path(member_address.profile, member_address) %> <%= link_to member_address.mcaddressl2, phcmemberspro.member_profile_address_path(member_address.profile, member_address) %> <%= link_to member_address.mccity, phcmemberspro.member_profile_address_path(member_address.profile, member_address) %> <%= link_to member_address.mcprovince, phcmemberspro.member_profile_address_path(member_address.profile, member_address) %> <%= link_to member_address.mccountry, phcmemberspro.member_profile_address_path(member_address.profile, member_address) %> <%= link_to member_address.mcpostalcode, phcmemberspro.member_profile_address_path(member_address.profile, member_address) %> <%= link_to member_address.mctype, phcmemberspro.member_profile_address_path(member_address.profile, member_address) %> <%= link_to 'Remove', 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.' } %>