app/views/phcmemberspro/members/contacts/index.html.erb in phcmemberspro-2.2.7 vs app/views/phcmemberspro/members/contacts/index.html.erb in phcmemberspro-2.2.8
- old
+ new
@@ -22,38 +22,40 @@
<%= 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>Full Name</th>
- <th>Company Name</th>
- <th>City</th>
- <th>Province</th>
- <th>Country</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <% @members_contact.each do |members_contact| %>
+ <div class="table-responsive">
+ <table class="table table-hover table-striped nomargin">
+ <thead>
<tr>
- <td><%= members_contact.mccontactname %></td>
- <td><%= members_contact.mccompanyname %></td>
- <td><%= members_contact.mccity %></td>
- <td><%= members_contact.mcprovince %></td>
- <td><%= members_contact.mccountry %></td>
- <td><div class="btn-group" role="group" aria-label="Member Adresses Group">
- <%= link_to 'Show', members_main_contact_path(members_contact.main, members_contact), class: "btn btn-primary" %>
- <%= link_to 'Edit', edit_members_main_contact_path(members_contact.main, members_contact), class: "btn btn-primary" %>
- <%= link_to 'Delete', members_main_contact_path(members_contact.main, members_contact), class: "btn btn-danger", method: :delete, data: { confirm: 'Are you sure?' } %>
- </div>
- </td>
+ <th>Full Name</th>
+ <th>Company Name</th>
+ <th>City</th>
+ <th>Province</th>
+ <th>Country</th>
+ <th></th>
</tr>
- <% end %>
- </tbody>
- </table>
+ </thead>
+ <tbody>
+ <% @members_contact.each do |members_contact| %>
+ <tr>
+ <td><%= members_contact.mccontactname %></td>
+ <td><%= members_contact.mccompanyname %></td>
+ <td><%= members_contact.mccity %></td>
+ <td><%= members_contact.mcprovince %></td>
+ <td><%= members_contact.mccountry %></td>
+ <td><div class="btn-group" role="group" aria-label="Member Adresses Group">
+ <%= link_to 'Show', members_main_contact_path(members_contact.main, members_contact), class: "btn btn-primary" %>
+ <%= link_to 'Edit', edit_members_main_contact_path(members_contact.main, members_contact), class: "btn btn-primary" %>
+ <%= link_to 'Delete', members_main_contact_path(members_contact.main, members_contact), class: "btn btn-danger", method: :delete, data: { confirm: 'Are you sure?' } %>
+ </div>
+ </td>
+ </tr>
+ <% end %>
+ </tbody>
+ </table>
+ </div>
<%= link_to 'Add a Private Address', new_members_main_contact_path, class: "btn btn-primary" %>
</div>
</div>
</div>
</div>