app/views/phcmembers/member/addresses/index.html.erb in phcmembers-61.5.0 vs app/views/phcmembers/member/addresses/index.html.erb in phcmembers-62.0.0

- old
+ new

@@ -1,8 +1,8 @@ <!-- Title Variables --> <% phc_title "Member Address Manager" %> -<% phc_title_tagline "Addresses for " + @members_profile_info.mfirstname + " " + @members_profile_info.mlastname %> +<% phc_title_tagline "Addresses for " + @members_profile_info.member_firstname + " " + @members_profile_info.member_lastname %> <% phc_breadcrumb_one link_to "Dashboard", phcmembers.dashboard_path %> <% phc_breadcrumb_two link_to "Members List", phcmembers.member_profiles_path %> <% phc_breadcrumb_three yield(:phc_title_tagline) %> <!-- Title System --> @@ -43,19 +43,29 @@ </tr> </thead> <tbody> <% @member_addresses.each do |member_address| %> <tr> - <td><%= link_to member_address.mcaddressl1, phcmembers.member_profile_address_path(member_address.profile, member_address) %></td> - <td><%= link_to member_address.mccity, phcmembers.member_profile_address_path(member_address.profile, member_address) %></td> - <td><%= link_to member_address.mccountry, phcmembers.member_profile_address_path(member_address.profile, member_address) %></td> - <td><%= link_to member_address.mcpostalcode, phcmembers.member_profile_address_path(member_address.profile, member_address) %></td> - <td><%= link_to member_address.mctype, phcmembers.member_profile_address_path(member_address.profile, member_address) %></td> - <td><%= 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.' } %></td> + <td><%= link_to member_address.address_addressl1, phcmembers.member_profile_address_path(member_address.profile, member_address) %></td> + <td><%= link_to member_address.address_city, phcmembers.member_profile_address_path(member_address.profile, member_address) %></td> + <td><%= link_to member_address.address_country, phcmembers.member_profile_address_path(member_address.profile, member_address) %></td> + <td><%= link_to member_address.address_postalcode, phcmembers.member_profile_address_path(member_address.profile, member_address) %></td> + <td><%= link_to member_address.address_type, phcmembers.member_profile_address_path(member_address.profile, member_address) %></td> + <td> + <div class="btn-group d-flex" role="group"> + <%= link_to 'Details', member_profile_address_path(member_address.profile, member_address), class: "btn btn-primary btn-xs" %> + <%= link_to 'Update', edit_member_profile_address_path(member_address.profile, member_address), class: "btn btn-purple btn-xs" %> + <%= 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.' } %> + </div> + </td> </tr> <% end %> </tbody> </table> + <%= link_to phcmembers.new_member_profile_address_path, class: "btn btn-primary btn-sm" do %> + <i class="fas fa-plus-circle"></i> + <%= "Add a New Address for " + @members_profile_info.member_firstname + " " + @members_profile_info.member_lastname %> + <% end %> </div> <!-- Table - Members Address --> </div> </div> <!-- Page Content -->