app/views/phcmemberspro/members/mains/index.html.erb in phcmemberspro-2.2.7 vs app/views/phcmemberspro/members/mains/index.html.erb in phcmemberspro-2.2.8

- old
+ new

@@ -21,43 +21,45 @@ <%= render 'layouts/components/panel_options' %> </ul> </div> <div class="panel-body"> <%= render 'layouts/phcnotifi/components/notifications' %> - <table class="table table-bordered table-striped table-hover"> - <thead> - <tr> - <th>First Name</th> - <th>Last Name</th> - <th>Email</th> - <th>Phone</th> - <th colspan="2"></th> - </tr> - </thead> - <tbody> - <% @members_mains.each do |members_main| %> + + <table class="table table-hover table-striped nomargin> + <thead> <tr> - <td><%= members_main.mfirstname %></td> - <td><%= members_main.mlastname %></td> - <td><%= members_main.memail %></td> - <td><%= members_main.mphone %></td> - <td> - <div class="btn-group" role="group" aria-label="Member Main Group"> - <%= link_to 'Profile', members_main, class: "btn btn-primary" %> - <%= link_to 'Edit', edit_members_main_path(members_main), class: "btn btn-primary" %> - <%= link_to 'Delete', members_main, method: :delete, data: { confirm: 'Are you sure? Removing a member will delete all records including all listing information from the directory.' }, class: "btn btn-danger" %> - </div> - </td> - <td> - <div class="btn-group" role="group" aria-label="Member Main Listings Address Group"> - <%= link_to 'Private Address', members_main_contacts_path(members_main), class: "btn btn-warning" %> - <%= link_to 'Public Listings', members_main_listings_path(members_main), class: "btn btn-primary" %> - </div> - </td> + <th>First Name</th> + <th>Last Name</th> + <th>Email</th> + <th>Phone</th> + <th colspan="2"></th> </tr> - <% end %> - </tbody> - </table> + </thead> + <tbody> + <% @members_mains.each do |members_main| %> + <tr> + <td><%= members_main.mfirstname %></td> + <td><%= members_main.mlastname %></td> + <td><%= members_main.memail %></td> + <td><%= members_main.mphone %></td> + <td> + <div class="btn-group" role="group" aria-label="Member Main Group"> + <%= link_to 'Profile', members_main, class: "btn btn-primary" %> + <%= link_to 'Edit', edit_members_main_path(members_main), class: "btn btn-primary" %> + <%= link_to 'Delete', members_main, method: :delete, data: { confirm: 'Are you sure? Removing a member will delete all records including all listing information from the directory.' }, class: "btn btn-danger" %> + </div> + </td> + <td> + <div class="btn-group" role="group" aria-label="Member Main Listings Address Group"> + <%= link_to 'Private Address', members_main_contacts_path(members_main), class: "btn btn-warning" %> + <%= link_to 'Public Listings', members_main_listings_path(members_main), class: "btn btn-primary" %> + </div> + </td> + </tr> + <% end %> + </tbody> + </table> + </div> <%= link_to 'Add a New Member', new_members_main_path, class: "btn btn-primary" %> </div> </div> </div> </div>