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

- old
+ new

@@ -1,8 +1,8 @@ <!-- Title Variables --> <% phc_title "Member Listings Manager" %> -<% phc_title_tagline "Listings for " + @members_profile_info.mfirstname + " " + @members_profile_info.mlastname %> +<% phc_title_tagline "Listings 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 --> @@ -45,21 +45,31 @@ </tr> </thead> <tbody> <% @member_listings.each do |member_listing| %> <tr> - <td class="highlight"><%= link_to member_listing.mbcompanyname, member_profile_listing_path(member_listing.profile, member_listing) %></td> - <td class="highlight"><%= link_to member_listing.mbcontactname, member_profile_listing_path(member_listing.profile, member_listing) %></td> - <td class="highlight"><%= link_to member_listing.mbcity, member_profile_listing_path(member_listing.profile, member_listing) %></td> - <td class="highlight"><%= link_to member_listing.mbcountry, member_profile_listing_path(member_listing.profile, member_listing) %></td> - <td class="highlight"><%= link_to member_listing.mbphone, member_profile_listing_path(member_listing.profile, member_listing) %></td> - <td class="highlight"><%= link_to member_listing.mbcontactemail, member_profile_listing_path(member_listing.profile, member_listing) %></td> - <td class="highlight"><%= link_to member_listing.mbwebsite, member_profile_listing_path(member_listing.profile, member_listing) %></td> - <td><%= 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 address information and cannot be reversed.' } %></td> + <td class="highlight"><%= link_to member_listing.listing_companyname, member_profile_listing_path(member_listing.profile, member_listing) %></td> + <td class="highlight"><%= link_to member_listing.listing_contactname, member_profile_listing_path(member_listing.profile, member_listing) %></td> + <td class="highlight"><%= link_to member_listing.listing_city, member_profile_listing_path(member_listing.profile, member_listing) %></td> + <td class="highlight"><%= link_to member_listing.listing_province, member_profile_listing_path(member_listing.profile, member_listing) %></td> + <td class="highlight"><%= link_to member_listing.listing_phone, member_profile_listing_path(member_listing.profile, member_listing) %></td> + <td class="highlight"><%= link_to member_listing.listing_contactemail, member_profile_listing_path(member_listing.profile, member_listing) %></td> + <td class="highlight"><%= link_to member_listing.listing_website, member_profile_listing_path(member_listing.profile, member_listing) %></td> + <td> + <div class="btn-group d-flex" role="group"> + <%= link_to 'Details', member_profile_listing_path(member_listing.profile, member_listing), class: "btn btn-primary btn-xs" %> + <%= 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.' } %> + </div> + </td> </tr> <% end %> </tbody> </table> + <%= link_to phcmembers.new_member_profile_listing_path, class: "btn btn-primary btn-sm" do %> + <i class="fas fa-plus-circle"></i> + <%= "Add a New Listing for " + @members_profile_info .member_firstname + " " + @members_profile_info .member_lastname %> + <% end %> </div> <!-- Table - Members Listings --> </div> </div> <!-- Page Content -->