app/views/phcmemberspro/members/contacts/index.html.erb in phcmemberspro-2.1.8 vs app/views/phcmemberspro/members/contacts/index.html.erb in phcmemberspro-2.1.9

- old
+ new

@@ -6,54 +6,57 @@ <li><%= link_to "Members List", members_mains_path %></li> <li><%= link_to "Members Contact", members_main_contacts_path %></li> </ol> </header> +<div id="content" class="padding-20"> -<!-- Main Content --> -<div class="row"> - <div class="col-lg-12"> - <div class="panel panel-primary"> - <div class="panel-heading"> - <span class="elipsis"> - Member's Contact Index - </span> - <ul class="options pull-right list-inline"> - <%= 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| %> + <!-- Main Content --> + <div class="row"> + <div class="col-lg-12"> + <div class="panel panel-primary"> + <div class="panel-heading"> + <span class="elipsis"> + Member's Contact Index + </span> + <ul class="options pull-right list-inline"> + <%= 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> - <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> - <%= link_to 'Add a Private Address', new_members_main_contact_path, class: "btn btn-primary" %> + </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> + <%= link_to 'Add a Private Address', new_members_main_contact_path, class: "btn btn-primary" %> + </div> </div> </div> </div> + </div>