app/views/phcmembers/member/listings/index.html.erb in phcmembers-4.2.10 vs app/views/phcmembers/member/listings/index.html.erb in phcmembers-5.0.0
- old
+ new
@@ -1,78 +1,70 @@
<!-- Title Variables -->
-<% phc_title "PHCMembers - Member Listings Manager" %>
+<% phc_title "Member Listings Manager" %>
<% phc_title_tagline "Listing Index for " + @members_profile_info.mfirstname + " " + @members_profile_info.mlastname %>
+<!-- Title System -->
-<!-- Page Header -->
-<div class="row">
- <div class="col-lg-12">
+<!-- Page Title Bar -->
+<section class="content-header">
- <!-- Bread Crumbs -->
- <ol class="breadcrumb">
- <li><%= link_to "Dashboard", member_root_path %></li>
- <li><%= link_to "Member Profile List", member_profiles_path %></li>
- <li class="active"><%= yield(:phc_title_tagline) %></li>
- </ol>
+ <!-- Page Title and BreadCrumb -->
+ <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
+ <ol class="breadcrumb">
+ <li><%= link_to "Dashboard", modules_dashboards_index_path %></li>
+ <li><%= link_to "Member Profile List", member_profiles_path %></li>
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
+ </ol>
+ <!-- Page Title and BreadCrumb -->
- <!-- Page Title -->
- <h3 class="page-title">
- <%= yield(:phc_title) %> </br>
- <small><%= yield(:phc_title_tagline) %></small>
- </h3>
+</section>
+<!-- Page Title Bar -->
- </div>
-</div>
-
<!-- Main Content -->
-<div class="row">
- <div class="col-lg-12">
+<section class="content">
+ <div class="row">
+ <div class="col-lg-12">
- <div class="panel panel-default">
- <div class="panel-heading">
-
- <div class="caption">
- <span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
+ <div class="box">
+ <div class="box-header with-border">
+ <h3 class="box-title"><%= yield(:phc_title) %></h3>
</div>
-
- </div>
- <div class="panel-body">
-
- <div class="table-scrollable">
- <table class="table table-striped table-bordered table-advance table-hover">
-
+ <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| %>
<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>
+ <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>
</div>
- </div>
- <%= 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>
</div>
-</div>
+</section>
+<!-- Main Content -->