app/views/phcmembers/member/addresses/index.html.erb in phcmembers-7.0.3 vs app/views/phcmembers/member/addresses/index.html.erb in phcmembers-8.0.0

- old
+ new

@@ -25,43 +25,50 @@ <div class="box-header with-border"> <h3 class="box-title"><%= yield(:phc_title) %></h3> </div> <div class="box-body"> - <table class="table table-striped table-bordered table-advance table-hover"> - <thead> - <tr> - <th>Address Line 1</th> - <th>Address Line 2</th> - <th>City</th> - <th>Province</th> - <th>Country</th> - <th>PostalCode</th> - <th>Type</th> - </tr> - </thead> - <tbody> - <% @member_addresses.each do |member_address| %> + <!-- Index Table --> + <div class="table-responsive"> + <table class="table table-bordered table-striped table-hover"> + <thead> <tr> - <td class="highlight"><%= link_to member_address.mcaddressl1, member_profile_address_path(member_address.profile, member_address) %></td> - <td class="highlight"><%= link_to member_address.mcaddressl2, member_profile_address_path(member_address.profile, member_address) %></td> - <td class="highlight"><%= link_to member_address.mccity, member_profile_address_path(member_address.profile, member_address) %></td> - <td class="highlight"><%= link_to member_address.mcprovince, member_profile_address_path(member_address.profile, member_address) %></td> - <td class="highlight"><%= link_to member_address.mccountry, member_profile_address_path(member_address.profile, member_address) %></td> - <td class="highlight"><%= link_to member_address.mcpostalcode, member_profile_address_path(member_address.profile, member_address) %></td> - <td class="highlight"><%= link_to member_address.mctype, member_profile_address_path(member_address.profile, member_address) %></td> + <th>Address Line 1</th> + <th>Address Line 2</th> + <th>City</th> + <th>Province</th> + <th>Country</th> + <th>PostalCode</th> + <th>Type</th> </tr> - <% end %> - </tbody> - </table> - </div> - <div class="box-footer clearfix"> - <%= link_to new_member_profile_address_path, class: "btn btn-primary" do %> - <i class="fa fa-plus"></i> <%= "Add a New Address for " + @members_profile_info.mfirstname + " " + @members_profile_info.mlastname %> - <% end %> - </div> + </thead> + <tbody> + <% @member_addresses.each do |member_address| %> + <tr> + <td class="highlight"><%= link_to member_address.mcaddressl1, member_profile_address_path(member_address.profile, member_address) %></td> + <td class="highlight"><%= link_to member_address.mcaddressl2, member_profile_address_path(member_address.profile, member_address) %></td> + <td class="highlight"><%= link_to member_address.mccity, member_profile_address_path(member_address.profile, member_address) %></td> + <td class="highlight"><%= link_to member_address.mcprovince, member_profile_address_path(member_address.profile, member_address) %></td> + <td class="highlight"><%= link_to member_address.mccountry, member_profile_address_path(member_address.profile, member_address) %></td> + <td class="highlight"><%= link_to member_address.mcpostalcode, member_profile_address_path(member_address.profile, member_address) %></td> + <td class="highlight"><%= link_to member_address.mctype, member_profile_address_path(member_address.profile, member_address) %></td> + </tr> + <% end %> + </tbody> + </table> + </div> + <!-- Index Table --> + <!-- Panel Footer --> + <div class="box-footer clearfix"> + <%= link_to new_member_profile_address_path, class: "btn btn-primary" do %> + <i class="fa fa-plus"></i> <%= "Add a New Address for " + @members_profile_info.mfirstname + " " + @members_profile_info.mlastname %> + <% end %> + </div> + <!-- Panel Footer --> + + </div> </div> </div> </div> </section> -<!-- Main Content --> +<!-- Main Content --> \ No newline at end of file