app/views/phcmembers/member/listings/index.html.erb in phcmembers-7.0.3 vs app/views/phcmembers/member/listings/index.html.erb in phcmembers-8.0.0
- old
+ new
@@ -25,44 +25,51 @@
<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-hover dataTables-example">
- <thead class="thead-inverse">
- <tr>
- <th>Company Name</th>
- <th>Conact Name</th>
- <th>City</th>
- <th>Country</th>
- <th>Listing Phone</th>
- <th>Listing Email</th>
- <th>Listing Website</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <% @member_listings.each do |member_listing| %>
+ <!-- Index Table -->
+ <div class="table-responsive">
+ <table class="table table-bordered table-striped table-hover">
+ <thead>
<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>
+ <th>Company Name</th>
+ <th>Conact Name</th>
+ <th>City</th>
+ <th>Country</th>
+ <th>Listing Phone</th>
+ <th>Listing Email</th>
+ <th>Listing Website</th>
+ <th></th>
</tr>
- <% end %>
- </tbody>
- </table>
- </div>
- <div class="box-footer clearfix">
- <%= link_to new_member_profile_listing_path, class: "btn btn-primary" do %>
- <i class="fa fa-plus"></i> Create a New Listing for <%= @members_profile_info.mfirstname + ' ' + @members_profile_info.mlastname %>
- <% end %>
- </div>
+ </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>
+ </tr>
+ <% end %>
+ </tbody>
+ </table>
+ </div>
+ <!-- Index Table -->
+ <!-- Panel Footer -->
+ <div class="box-footer clearfix">
+ <%= link_to new_member_profile_listing_path, class: "btn btn-primary" do %>
+ <i class="fa fa-plus"></i> Create a New Listing for <%= @members_profile_info.mfirstname + ' ' + @members_profile_info.mlastname %>
+ <% end %>
+ </div>
+ <!-- Panel Footer -->
+
+ </div>
</div>
</div>
</div>
</section>
<!-- Main Content -->
\ No newline at end of file