app/views/phcmemberspro/members/mains/show.html.erb in phcmemberspro-4.9.2 vs app/views/phcmemberspro/members/mains/show.html.erb in phcmemberspro-4.9.3
- old
+ new
@@ -19,54 +19,43 @@
<small><%= yield(:phc_title_tagline) %></small>
</h3>
<!-- Main Content -->
<div class="row">
- <div class="col-lg-12">
- <div class="portlet box blue-chambray bordered">
- <div class="portlet-title">
- <div class="caption">
- <span class="caption-subject bold uppercase">Detailed Profile for <%= @members_main.mfirstname %> <%= @members_main.mlastname %></span>
+ <div class="col-md-12">
+
+ <!-- Start User Sidebar -->
+ <div class="profile-sidebar">
+ <div class="portlet light profile-sidebar-portlet ">
+ <div class="profile-userpic">
+ <%= image_tag @members_main.gravatar_url, :class => 'img-thumbnail img-responsive' %>
</div>
- </div>
- <div class="portlet-body">
- <div class="row">
- <div class="col-lg-3">
- <%= image_tag @members_main.gravatar_url, :class => 'img-thumbnail img-responsive' %>
- <div class="btn-group btn-group-xs btn-group-solid" role="group" aria-label="Member Main Group">
- <%= link_to 'Edit Member', edit_members_main_path(members_main), class: "btn blue-hoki" %>
- <%= link_to 'Private Address', phcmemberspro.members_main_contacts_path(members_main), class: "btn yellow-mint" %>
- <%= link_to 'Member Listings', phcmemberspro.members_main_listings_path(members_main), class: "btn blue-hoki" %>
- <%= link_to 'Delete Member', phcmemberspro.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 red-mint" %>
- </div>
- <p><small><strong>Member Creation Date</strong></br> <%= @members_main.created_at.strftime("%B %d at %I:%M %p") %></small></p>
+ <div class="profile-usertitle">
+ <div class="profile-usertitle-name"><%= @members_main.mfirstname + ' ' + @members_main.mlastname %></div>
+ <div class="profile-usertitle-job"><%= @members_main.mtitle %></div>
+ </div>
+ <div class="profile-userbuttons">
+ <div class="btn-group btn-group-xs btn-group-solid" role="group" aria-label="Member Main Group">
+ <%= link_to 'Edit Member', edit_members_main_path(@members_main), class: "btn blue-hoki" %>
+ <%= link_to 'Delete Member', @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 red-mint" %>
</div>
- <div class="col-lg-9">
- <div class="table-responsive">
- <table class="table table-hover table-striped table-bordered">
- <tbody>
- <tr>
- <td>Job/Contact Title:</td>
- <td><%= @members_main.mtitle %></td>
- </tr>
- <tr>
- <td>Home Address</td>
- <td><%= @members_main.contacts.first.mccity %> - <%= @members_main.contacts.first.mcprovince %></td>
- </tr>
- <tr>
- <td>Email</td>
- <td><%= mail_to @members_main.memail %></td>
- </tr>
- <tr>
- <td>Phone Number</td>
- <td><%= @members_main.mphone %></td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
</div>
+ <div class="profile-usermenu">
+ <ul class="nav">
+ <li>
+ <%= link_to members_main_contacts_path(@members_main) do %>
+ <i class="icon-home"></i> Private Addresses
+ <% end %>
+ </li>
+ <li>
+ <%= link_to members_main_listings_path(@members_main) do %>
+ <i class="icon-home"></i> Member Listings
+ <% end %>
+ </li>
+ </ul>
+ </div>
</div>
</div>
+ <!-- End User Sidebar -->
</div>
</div>