phcmembers 14.0.1 → 15.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/controllers/phcmembers/directory/categories_controller.rb +1 -1
- data/app/controllers/phcmembers/directory/categorylistings_controller.rb +10 -2
- data/app/controllers/phcmembers/member/addresses_controller.rb +1 -1
- data/app/controllers/phcmembers/member/listings_controller.rb +2 -2
- data/app/controllers/phcmembers/member/profiles_controller.rb +1 -1
- data/app/models/phcmembers/category_listing_versions.rb +5 -0
- data/app/models/phcmembers/directory/categorylisting.rb +4 -1
- data/app/models/phcmembers/member/address.rb +5 -0
- data/app/views/layouts/phcmembers/components/backend/footer/_footer.html.erb +2 -2
- data/app/views/phcmembers/directory/categories/components/_category_audits.html.erb +2 -5
- data/app/views/phcmembers/directory/categories/components/_category_main.html.erb +17 -26
- data/app/views/phcmembers/directory/categories/edit.html.erb +2 -2
- data/app/views/phcmembers/directory/categories/new.html.erb +2 -0
- data/app/views/phcmembers/directory/categories/show.html.erb +0 -2
- data/app/views/phcmembers/directory/categorylistings/components/_category_listing_audits.html.erb +11 -0
- data/app/views/phcmembers/directory/categorylistings/components/_category_listing_list.html.erb +7 -0
- data/app/views/phcmembers/directory/categorylistings/components/_category_listing_main.html.erb +22 -0
- data/app/views/phcmembers/directory/categorylistings/index.html.erb +47 -48
- data/app/views/phcmembers/directory/categorylistings/show.html.erb +24 -3
- data/app/views/phcmembers/member/addresses/_form.html.erb +1 -1
- data/app/views/phcmembers/member/addresses/components/_address_audits.html.erb +4 -5
- data/app/views/phcmembers/member/addresses/components/_address_list.html.erb +32 -0
- data/app/views/phcmembers/member/addresses/components/_address_main.html.erb +17 -26
- data/app/views/phcmembers/member/addresses/edit.html.erb +2 -4
- data/app/views/phcmembers/member/addresses/index.html.erb +14 -13
- data/app/views/phcmembers/member/addresses/new.html.erb +0 -2
- data/app/views/phcmembers/member/addresses/show.html.erb +0 -2
- data/app/views/phcmembers/member/listings/components/_listing_audits.html.erb +2 -5
- data/app/views/phcmembers/member/listings/components/{_listing_address.html.erb → _listing_list.html.erb} +3 -0
- data/app/views/phcmembers/member/listings/components/_listing_main.html.erb +17 -26
- data/app/views/phcmembers/member/listings/edit.html.erb +0 -2
- data/app/views/phcmembers/member/listings/index.html.erb +1 -1
- data/app/views/phcmembers/member/listings/new.html.erb +0 -2
- data/app/views/phcmembers/member/listings/show.html.erb +0 -2
- data/app/views/phcmembers/member/profiles/components/_profile_audits.html.erb +9 -0
- data/app/views/phcmembers/member/profiles/components/_profile_main.html.erb +2 -24
- data/app/views/phcmembers/member/profiles/components/_profile_sidebar.html.erb +2 -3
- data/app/views/phcmembers/member/profiles/edit.html.erb +0 -2
- data/app/views/phcmembers/member/profiles/index.html.erb +14 -13
- data/app/views/phcmembers/member/profiles/new.html.erb +2 -4
- data/app/views/phcmembers/member/profiles/show.html.erb +1 -8
- data/lib/phcmembers/version.rb +1 -1
- metadata +9 -4
- data/app/views/phcmembers/member/addresses/components/_address_address.html.erb +0 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57a0dc275e4e0b5cdb75354a2b2344ff2095f5cc
|
4
|
+
data.tar.gz: 27f09abff70db31028773cda0ee49ae2a8d71df2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b5fb607bd1d72a41cd85fd0d2526eb67248c70c204f8d5bbdc5cdc90d86ece9d753df7300b20a21dcb0f61e841cf48f6c33521f45e7c8c951ced6f91b3c275d
|
7
|
+
data.tar.gz: b56ee03c2dea64eef3dc0404892c3185ebf9a3edab27faee10e6fe625569384187ee9c1bf7db9bb93499edb1c09f3afb63c5a6b02f96b597402474dd550d217d
|
data/README.md
CHANGED
@@ -14,7 +14,7 @@ PHCMembers(2017) rails engine to manage membership information and directory lis
|
|
14
14
|
|
15
15
|
#### Step 1 - Add PHCMembers to your gemfile and run command
|
16
16
|
|
17
|
-
gem 'phcmembers', '~>
|
17
|
+
gem 'phcmembers', '~> 15.0'
|
18
18
|
bundle install
|
19
19
|
|
20
20
|
#### Step 2 - Add PHCMembers Database Tables
|
@@ -15,7 +15,7 @@ module Phcmembers
|
|
15
15
|
# DETAILED - Directory Category
|
16
16
|
def show
|
17
17
|
@directory_category = Directory::Category.find(params[:id])
|
18
|
-
@
|
18
|
+
@directory_category_versions = Phcmembers::CategoryVersions.where(item_id: @directory_category, item_type: 'Phcmembers::Directory::Category')
|
19
19
|
end
|
20
20
|
|
21
21
|
# NEW - Directory Category
|
@@ -5,7 +5,7 @@ module Phcmembers
|
|
5
5
|
|
6
6
|
# Security & Action Filters
|
7
7
|
before_action :set_paper_trail_whodunnit
|
8
|
-
before_action :
|
8
|
+
before_action :set_directory_category_listing, only: [:show]
|
9
9
|
|
10
10
|
# INDEX - Directory Category/Listings
|
11
11
|
def index
|
@@ -14,7 +14,15 @@ module Phcmembers
|
|
14
14
|
|
15
15
|
# DETAILED - Directory Category/Listings
|
16
16
|
def show
|
17
|
-
@
|
17
|
+
@directory_categorylisting = Directory::Categorylisting.find(params[:id])
|
18
|
+
@directory_categorylistings_versions = Phcmembers::CategoryListingVersions.where(item_id: @directory_category, item_type: 'Phcmembers::Directory::Category')
|
19
|
+
end
|
20
|
+
|
21
|
+
private
|
22
|
+
|
23
|
+
# Common Callbacks
|
24
|
+
def set_directory_category_listing
|
25
|
+
@directory_categorylisting = Directory::Categorylisting.find(params[:id])
|
18
26
|
end
|
19
27
|
|
20
28
|
end
|
@@ -18,7 +18,7 @@ module Phcmembers
|
|
18
18
|
def show
|
19
19
|
profile = Member::Profile.find(params[:profile_id])
|
20
20
|
@member_address = profile.addresses.find(params[:id])
|
21
|
-
@
|
21
|
+
@member_address_versions = Phcmembers::AddressVersions.where(item_id: @member_address, item_type: 'Phcmembers::Member::Address')
|
22
22
|
end
|
23
23
|
|
24
24
|
# NEW - Directory Listings
|
@@ -17,8 +17,8 @@ module Phcmembers
|
|
17
17
|
# LISTINGS DETAILS - Directory Listings
|
18
18
|
def show
|
19
19
|
profile = Member::Profile.find(params[:profile_id])
|
20
|
-
@
|
21
|
-
@
|
20
|
+
@member_listing = profile.listings.find(params[:id])
|
21
|
+
@member_listing_versions = Phcmembers::ListingVersions.where(item_id: @member_listing, item_type: 'Phcmembers::Member::Listing')
|
22
22
|
end
|
23
23
|
|
24
24
|
# NEW - Directory Listings
|
@@ -15,7 +15,7 @@ module Phcmembers
|
|
15
15
|
# DETAILED PROFILE - Member Profile
|
16
16
|
def show
|
17
17
|
@member_profile = Member::Profile.find(params[:id])
|
18
|
-
@
|
18
|
+
@member_profile_versions = Phcmembers::ProfileVersions.where(item_id: @member_profile, item_type: 'Phcmembers::Member::Profile')
|
19
19
|
end
|
20
20
|
|
21
21
|
# NEW FORM - Member Profile
|
@@ -1,7 +1,10 @@
|
|
1
1
|
module Phcmembers
|
2
2
|
class Directory::Categorylisting < ApplicationRecord
|
3
3
|
|
4
|
-
#
|
4
|
+
# Paper_tail Initialize
|
5
|
+
has_paper_trail :class_name => 'Phcmembers::CategoryListingVersions'
|
6
|
+
|
7
|
+
# Relationships
|
5
8
|
belongs_to :listing, class_name: 'Phcmembers::Member::Listing'
|
6
9
|
belongs_to :category, class_name: 'Phcmembers::Directory::Category'
|
7
10
|
|
@@ -1,4 +1,4 @@
|
|
1
1
|
<div class="pull-right hidden-xs">
|
2
|
-
<b>Version</b>
|
2
|
+
<b>Version</b> 15.0.0 - 05-30-<%= Date.today.year %>
|
3
3
|
</div>
|
4
|
-
<strong
|
4
|
+
<strong><%= link_to "https://phcmembers.com", target: "_blank", rel: "nofollow" do %>PHCMembers 2017<% end %> © 2012-<%= Time.now.year %></strong>
|
@@ -1,12 +1,9 @@
|
|
1
1
|
<div class="scroller" style="height: 320px;" data-always-visible="1" data-rail-visible1="0" data-handle-color="#D7DCE2">
|
2
2
|
|
3
3
|
<ul class="list-group feeds">
|
4
|
-
<% @
|
4
|
+
<% @directory_category_versions.each do |directory_category_version| %>
|
5
5
|
<li class="list-group-item">
|
6
|
-
<i class="fa fa-bell-o fa-fw"></i>
|
7
|
-
<strong>EVENT #<%= version.id %></strong> -
|
8
|
-
<i> <%= l(version.created_at, format: "%-d/%m/%Y") %> </i> -
|
9
|
-
<%= version.event.capitalize %> - Profile <%= l(version.created_at, format: "%H:%M %Z") %>
|
6
|
+
<i class="fa fa-bell-o fa-fw"></i> Category Event #<%= directory_category_version.id %> - <strong><%= directory_category_version.event.capitalize + ' ' + @directory_category.catname %> Category</strong> - on <i><%= l(directory_category_version.created_at, format: "%-d/%m/%Y") %></i> at <i><%= l(directory_category_version.created_at, format: "%H:%M %Z") %></i>
|
10
7
|
</li>
|
11
8
|
<% end %>
|
12
9
|
</ul>
|
@@ -1,31 +1,22 @@
|
|
1
|
-
<div class="
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
<div class="row">
|
2
|
+
<div class="col-md-6">
|
3
|
+
<div class="panel panel-default">
|
4
|
+
<div class="panel-heading">
|
5
|
+
Category List
|
6
|
+
</div>
|
7
|
+
<div class="panel-body">
|
8
|
+
<%= render 'phcmembers/directory/categories/components/category_list' %>
|
9
|
+
</div>
|
7
10
|
</div>
|
8
|
-
|
9
|
-
<div class="panel-body">
|
10
|
-
<%= render 'phcmembers/directory/categories/components/category_list' %>
|
11
|
-
</div>
|
12
|
-
|
13
11
|
</div>
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
Category Change Logs
|
23
|
-
</div>
|
24
|
-
|
25
|
-
<div class="panel-body">
|
26
|
-
<%= render 'phcmembers/directory/categories/components/category_audits' %>
|
12
|
+
<div class="col-md-6">
|
13
|
+
<div class="panel panel-default">
|
14
|
+
<div class="panel-heading">
|
15
|
+
Category Change Logs
|
16
|
+
</div>
|
17
|
+
<div class="panel-body">
|
18
|
+
<%= render 'phcmembers/directory/categories/components/category_audits' %>
|
19
|
+
</div>
|
27
20
|
</div>
|
28
|
-
|
29
21
|
</div>
|
30
|
-
|
31
22
|
</div>
|
data/app/views/phcmembers/directory/categorylistings/components/_category_listing_audits.html.erb
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
<div class="scroller" style="height: 320px;" data-always-visible="1" data-rail-visible1="0" data-handle-color="#D7DCE2">
|
2
|
+
|
3
|
+
<ul class="list-group feeds">
|
4
|
+
<% @directory_categorylistings_versions.each do |directory_categorylistings_version| %>
|
5
|
+
<li class="list-group-item">
|
6
|
+
<i class="fa fa-bell-o fa-fw"></i> Listing Event #<%= directory_categorylistings_version.id %> - <strong><%= directory_categorylistings_version.event.capitalize + ' ' + @directory_categorylisting.listing.mbcompanyname + ' ' + @directory_categorylisting.directory.catname %> Category</strong> - on <i><%= l(directory_categorylistings_version.created_at, format: "%-d/%m/%Y") %></i> at <i><%= l(directory_categorylistings_version.created_at, format: "%H:%M %Z") %></i>
|
7
|
+
</li>
|
8
|
+
<% end %>
|
9
|
+
</ul>
|
10
|
+
|
11
|
+
</div>
|
data/app/views/phcmembers/directory/categorylistings/components/_category_listing_list.html.erb
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
<ul class="list-group">
|
2
|
+
<% @directory_categorylisting.each do |directory_categorylisting| %>
|
3
|
+
<li class="list-group-item">
|
4
|
+
<%= link_to directory_categorylisting.mbcompanyname, phcmembers.member_profile_listing_path(member_listing.profile, member_listing) %>
|
5
|
+
</li>
|
6
|
+
<% end %>
|
7
|
+
</ul>
|
data/app/views/phcmembers/directory/categorylistings/components/_category_listing_main.html.erb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
<div class="row">
|
2
|
+
<div class="col-md-6">
|
3
|
+
<div class="panel panel-default">
|
4
|
+
<div class="panel-heading">
|
5
|
+
Category List
|
6
|
+
</div>
|
7
|
+
<div class="panel-body">
|
8
|
+
<%= render 'phcmembers/directory/categorylistings/components/category_listing_list' %>
|
9
|
+
</div>
|
10
|
+
</div>
|
11
|
+
</div>
|
12
|
+
<div class="col-md-6">
|
13
|
+
<div class="panel panel-default">
|
14
|
+
<div class="panel-heading">
|
15
|
+
Category Change Logs
|
16
|
+
</div>
|
17
|
+
<div class="panel-body">
|
18
|
+
<%= render 'phcmembers/directory/categorylistings/components/category_listing_audits' %>
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
</div>
|
@@ -1,63 +1,62 @@
|
|
1
1
|
<!-- Title Variables -->
|
2
|
-
<% phc_title "Member Listings
|
3
|
-
<% phc_title_tagline "Complete
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
</h3>
|
20
|
-
|
21
|
-
</div>
|
22
|
-
</div>
|
2
|
+
<% phc_title "Member Listings Viewer" %>
|
3
|
+
<% phc_title_tagline "Complete Listing Index" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Dashboard", phcmembers.modules_dashboards_index_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
+
<!-- Title System -->
|
7
|
+
|
8
|
+
<!-- Page Title Bar -->
|
9
|
+
<section class="content-header">
|
10
|
+
<!-- Page Title and BreadCrumb -->
|
11
|
+
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
12
|
+
<ol class="breadcrumb">
|
13
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
14
|
+
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
15
|
+
</ol>
|
16
|
+
<!-- Page Title and BreadCrumb -->
|
17
|
+
</section>
|
18
|
+
<!-- Page Title Bar -->
|
23
19
|
|
24
20
|
<!-- Main Content -->
|
25
|
-
<
|
26
|
-
<div class="
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
<div class="caption">
|
32
|
-
<span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
|
21
|
+
<section class="content">
|
22
|
+
<div class="row">
|
23
|
+
<div class="col-lg-12">
|
24
|
+
<div class="box">
|
25
|
+
<div class="box-header with-border">
|
26
|
+
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
33
27
|
</div>
|
28
|
+
<div class="box-body">
|
34
29
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
<table class="table table-striped table-bordered table-advance table-hover">
|
40
|
-
|
41
|
-
<thead>
|
42
|
-
<tr>
|
43
|
-
<th>Category</th>
|
44
|
-
<th>Company Name</th>
|
45
|
-
</tr>
|
46
|
-
</thead>
|
47
|
-
|
48
|
-
<tbody>
|
49
|
-
<% @directory_categorylistings.each do |directory_categorylisting| %>
|
30
|
+
<!-- Index Table -->
|
31
|
+
<div class="table-responsive">
|
32
|
+
<table class="table table-bordered table-striped table-hover">
|
33
|
+
<thead>
|
50
34
|
<tr>
|
51
|
-
<
|
52
|
-
<
|
35
|
+
<th>Category</th>
|
36
|
+
<th>Company Name</th>
|
37
|
+
</tr>
|
38
|
+
</thead>
|
39
|
+
<tbody>
|
40
|
+
<% @directory_categorylistings.each do |directory_categorylisting| %>
|
41
|
+
<tr>
|
42
|
+
<td><%= directory_categorylisting.category.catname %></td>
|
43
|
+
<td><%= directory_categorylisting.listing.mbcompanyname %></td>
|
44
|
+
</tr>
|
53
45
|
</tr>
|
54
46
|
<% end %>
|
55
47
|
</tbody>
|
56
|
-
|
57
48
|
</table>
|
58
49
|
</div>
|
50
|
+
<!-- Index Table -->
|
51
|
+
|
52
|
+
<!-- Panel Footer -->
|
53
|
+
<div class="box-footer clearfix">
|
54
|
+
</div>
|
55
|
+
<!-- Panel Footer -->
|
56
|
+
|
59
57
|
</div>
|
60
58
|
</div>
|
61
|
-
|
62
59
|
</div>
|
63
60
|
</div>
|
61
|
+
</section>
|
62
|
+
<!-- Main Content -->
|
@@ -1,4 +1,25 @@
|
|
1
|
-
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Directory Category Manager" %>
|
3
|
+
<% phc_title_tagline "Detailed Information for " + @directory_category.catname %>
|
4
|
+
<% phc_breadcrumb_one link_to "Dashboard", phcmembers.modules_dashboards_index_path %>
|
5
|
+
<% phc_breadcrumb_two link_to "Directory Category Index", phcmembers.directory_categories_path %>
|
6
|
+
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
+
<!-- Title System -->
|
2
8
|
|
3
|
-
|
4
|
-
|
9
|
+
<!-- Page Title Bar -->
|
10
|
+
<section class="content-header">
|
11
|
+
<!-- Page Title and BreadCrumb -->
|
12
|
+
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
13
|
+
<ol class="breadcrumb">
|
14
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
15
|
+
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
16
|
+
</ol>
|
17
|
+
<!-- Page Title and BreadCrumb -->
|
18
|
+
</section>
|
19
|
+
<!-- Page Title Bar -->
|
20
|
+
|
21
|
+
<!-- Main Content -->
|
22
|
+
<section class="content">
|
23
|
+
<%= render 'phcmembers/directory/categorylistings/components/categorylisting_main' %>
|
24
|
+
</section>
|
25
|
+
<!-- Main Content -->
|
@@ -1,12 +1,11 @@
|
|
1
1
|
<div class="scroller" style="height: 320px;" data-always-visible="1" data-rail-visible1="0" data-handle-color="#D7DCE2">
|
2
|
+
|
2
3
|
<ul class="list-group feeds">
|
3
|
-
<% @
|
4
|
+
<% @member_address_versions.each do |member_address_version| %>
|
4
5
|
<li class="list-group-item">
|
5
|
-
<i class="fa fa-bell-o fa-fw"></i>
|
6
|
-
<strong>EVENT #<%= version.id %></strong> -
|
7
|
-
<i> <%= l(version.created_at, format: "%-d/%m/%Y") %> </i> -
|
8
|
-
<%= version.event.capitalize %> - Profile <%= l(version.created_at, format: "%H:%M %Z") %>
|
6
|
+
<i class="fa fa-bell-o fa-fw"></i> Member Listing Event #<%= member_address_version.id %> - <strong><%= member_address_version.event.capitalize + ' ' + @member_address.mcaddressl1 %> Listing</strong> - on <i><%= l(member_address_version.created_at, format: "%-d/%m/%Y") %></i> at <i><%= l(member_address_version.created_at, format: "%H:%M %Z") %></i>
|
9
7
|
</li>
|
10
8
|
<% end %>
|
11
9
|
</ul>
|
10
|
+
|
12
11
|
</div>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<p>
|
2
|
+
<strong>Address Line 1:</strong>
|
3
|
+
<%= @member_address.mcaddressl1 %>
|
4
|
+
</p>
|
5
|
+
|
6
|
+
<p>
|
7
|
+
<strong>Address Line 2:</strong>
|
8
|
+
<%= @member_address.mcaddressl2 %>
|
9
|
+
</p>
|
10
|
+
|
11
|
+
<p>
|
12
|
+
<strong>City:</strong>
|
13
|
+
<%= @member_address.mccity %>
|
14
|
+
</p>
|
15
|
+
|
16
|
+
<p>
|
17
|
+
<strong>Province:</strong>
|
18
|
+
<%= @member_address.mcprovince %>
|
19
|
+
</p>
|
20
|
+
|
21
|
+
<p>
|
22
|
+
<strong>Country:</strong>
|
23
|
+
<%= @member_address.mccountry %>
|
24
|
+
</p>
|
25
|
+
|
26
|
+
<p>
|
27
|
+
<strong>PostalCode:</strong>
|
28
|
+
<%= @member_address.mcpostalcode %>
|
29
|
+
</p>
|
30
|
+
|
31
|
+
<%= link_to 'Update ' + @members_profile_info.mfirstname + ' ' + @members_profile_info.mlastname + ' Listing', edit_member_profile_address_path, class: "btn btn-primary" %>
|
32
|
+
<%= link_to 'Delete ' + @members_profile_info.mfirstname + ' ' + @members_profile_info.mlastname + ' Listing', member_profile_address_path(@member_address), method: :delete, data: { confirm: 'Are you sure? This will remove the adress infromation. This action cannot be undone.' }, class: "btn btn-danger" %>
|
@@ -1,31 +1,22 @@
|
|
1
|
-
<div class="
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
<div class="row">
|
2
|
+
<div class="col-md-6">
|
3
|
+
<div class="panel panel-default">
|
4
|
+
<div class="panel-heading">
|
5
|
+
<%= @members_profile_info.mfirstname + ' ' + @members_profile_info.mlastname %>
|
6
|
+
</div>
|
7
|
+
<div class="panel-body">
|
8
|
+
<%= render 'phcmembers/member/addresses/components/address_list' %>
|
9
|
+
</div>
|
7
10
|
</div>
|
8
|
-
|
9
|
-
<div class="panel-body">
|
10
|
-
<%= render 'phcmembers/member/addresses/components/address_address' %>
|
11
|
-
</div>
|
12
|
-
|
13
11
|
</div>
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
<%= @members_profile_info.mfirstname + ' ' + @members_profile_info.mlastname %> Address Change Logs
|
23
|
-
</div>
|
24
|
-
|
25
|
-
<div class="panel-body">
|
26
|
-
<%= render 'phcmembers/member/addresses/components/address_audits' %>
|
12
|
+
<div class="col-md-6">
|
13
|
+
<div class="panel panel-default">
|
14
|
+
<div class="panel-heading">
|
15
|
+
<%= @members_profile_info.mfirstname + ' ' + @members_profile_info.mlastname %> Address Change Logs
|
16
|
+
</div>
|
17
|
+
<div class="panel-body">
|
18
|
+
<%= render 'phcmembers/member/addresses/components/address_audits' %>
|
19
|
+
</div>
|
27
20
|
</div>
|
28
|
-
|
29
21
|
</div>
|
30
|
-
|
31
22
|
</div>
|
@@ -27,11 +27,9 @@
|
|
27
27
|
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
28
28
|
</div>
|
29
29
|
<div class="box-body">
|
30
|
-
|
31
|
-
<!-- Page Form (Edit) -->
|
30
|
+
<!-- Page Form (New) -->
|
32
31
|
<%= render 'form', { form_url: member_profile_address_path } %>
|
33
|
-
<!-- Page Form (
|
34
|
-
|
32
|
+
<!-- Page Form (New) -->
|
35
33
|
</div>
|
36
34
|
</div>
|
37
35
|
</div>
|
@@ -52,23 +52,24 @@
|
|
52
52
|
<td class="highlight"><%= link_to member_address.mcpostalcode, member_profile_address_path(member_address.profile, member_address) %></td>
|
53
53
|
<td class="highlight"><%= link_to member_address.mctype, member_profile_address_path(member_address.profile, member_address) %></td>
|
54
54
|
</tr>
|
55
|
-
|
56
|
-
|
57
|
-
</
|
58
|
-
</
|
59
|
-
|
60
|
-
|
61
|
-
<!-- Panel Footer -->
|
62
|
-
<div class="box-footer clearfix">
|
63
|
-
<%= link_to new_member_profile_address_path, class: "btn btn-primary" do %>
|
64
|
-
<i class="fa fa-plus"></i> <%= "Add a New Address for " + @members_profile_info.mfirstname + " " + @members_profile_info.mlastname %>
|
65
|
-
<% end %>
|
66
|
-
</div>
|
67
|
-
<!-- Panel Footer -->
|
55
|
+
</tr>
|
56
|
+
<% end %>
|
57
|
+
</tbody>
|
58
|
+
</table>
|
59
|
+
</div>
|
60
|
+
<!-- Index Table -->
|
68
61
|
|
62
|
+
<!-- Panel Footer -->
|
63
|
+
<div class="box-footer clearfix">
|
64
|
+
<%= link_to new_member_profile_address_path, class: "btn btn-primary" do %>
|
65
|
+
<i class="fa fa-plus"></i> <%= "Add a New Address for " + @members_profile_info.mfirstname + " " + @members_profile_info.mlastname %>
|
66
|
+
<% end %>
|
69
67
|
</div>
|
68
|
+
<!-- Panel Footer -->
|
69
|
+
|
70
70
|
</div>
|
71
71
|
</div>
|
72
72
|
</div>
|
73
|
+
</div>
|
73
74
|
</section>
|
74
75
|
<!-- Main Content -->
|
@@ -27,11 +27,9 @@
|
|
27
27
|
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
28
28
|
</div>
|
29
29
|
<div class="box-body">
|
30
|
-
|
31
30
|
<!-- Page Form (New) -->
|
32
31
|
<%= render 'form', { form_url: member_profile_addresses_path } %>
|
33
32
|
<!-- Page Form (New) -->
|
34
|
-
|
35
33
|
</div>
|
36
34
|
</div>
|
37
35
|
</div>
|
@@ -1,12 +1,9 @@
|
|
1
1
|
<div class="scroller" style="height: 320px;" data-always-visible="1" data-rail-visible1="0" data-handle-color="#D7DCE2">
|
2
2
|
|
3
3
|
<ul class="list-group feeds">
|
4
|
-
<% @
|
4
|
+
<% @member_listing_versions.each do |member_listing_version| %>
|
5
5
|
<li class="list-group-item">
|
6
|
-
<i class="fa fa-bell-o fa-fw"></i>
|
7
|
-
<strong>EVENT #<%= version.id %></strong> -
|
8
|
-
<i> <%= l(version.created_at, format: "%-d/%m/%Y") %> </i> -
|
9
|
-
<%= version.event.capitalize %> - Profile <%= l(version.created_at, format: "%H:%M %Z") %>
|
6
|
+
<i class="fa fa-bell-o fa-fw"></i> Member Listing Event #<%= member_listing_version.id %> - <strong><%= member_listing_version.event.capitalize + ' ' + @member_listing.mbcompanyname %> Listing</strong> - on <i><%= l(member_listing_version.created_at, format: "%-d/%m/%Y") %></i> at <i><%= l(member_listing_version.created_at, format: "%H:%M %Z") %></i>
|
10
7
|
</li>
|
11
8
|
<% end %>
|
12
9
|
</ul>
|
@@ -46,3 +46,6 @@
|
|
46
46
|
<strong>Email:</strong>
|
47
47
|
<%= @member_listing.mbcontactemail %>
|
48
48
|
</p>
|
49
|
+
|
50
|
+
<%= link_to 'Update ' + @members_profile_info.mfirstname + ' ' + @members_profile_info.mlastname + ' Listing', edit_member_profile_listing_path, class: "btn btn-primary" %>
|
51
|
+
<%= link_to 'Delete ' + @members_profile_info.mfirstname + ' ' + @members_profile_info.mlastname + ' Listing', member_profile_listing_path(@member_listing), method: :delete, data: { confirm: 'Are you sure? This will remove the listing from all directory categories. This action cannot be undone.' }, class: "btn btn-danger" %>
|
@@ -1,31 +1,22 @@
|
|
1
|
-
<div class="
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
<div class="row">
|
2
|
+
<div class="col-md-6">
|
3
|
+
<div class="panel panel-default">
|
4
|
+
<div class="panel-heading">
|
5
|
+
<%= @members_profile_info.mfirstname + ' ' + @members_profile_info.mlastname + ' ' + @member_listing.mbcompanyname %>
|
6
|
+
</div>
|
7
|
+
<div class="panel-body">
|
8
|
+
<%= render 'phcmembers/member/listings/components/listing_list' %>
|
9
|
+
</div>
|
7
10
|
</div>
|
8
|
-
|
9
|
-
<div class="panel-body">
|
10
|
-
<%= render 'phcmembers/member/listings/components/listing_address' %>
|
11
|
-
</div>
|
12
|
-
|
13
11
|
</div>
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
<%= @members_profile_info.mfirstname + ' ' + @members_profile_info.mlastname + ' ' + @member_listing.mbcompanyname %> Business Change Logs
|
23
|
-
</div>
|
24
|
-
|
25
|
-
<div class="panel-body">
|
26
|
-
<%= render 'phcmembers/member/listings/components/listing_audits' %>
|
12
|
+
<div class="col-md-6">
|
13
|
+
<div class="panel panel-default">
|
14
|
+
<div class="panel-heading">
|
15
|
+
<%= @members_profile_info.mfirstname + ' ' + @members_profile_info.mlastname + ' ' + @member_listing.mbcompanyname %> Business Change Logs
|
16
|
+
</div>
|
17
|
+
<div class="panel-body">
|
18
|
+
<%= render 'phcmembers/member/listings/components/listing_audits' %>
|
19
|
+
</div>
|
27
20
|
</div>
|
28
|
-
|
29
21
|
</div>
|
30
|
-
|
31
22
|
</div>
|
@@ -27,11 +27,9 @@
|
|
27
27
|
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
28
28
|
</div>
|
29
29
|
<div class="box-body">
|
30
|
-
|
31
30
|
<!-- Page Form (Edit) -->
|
32
31
|
<%= render 'form', { form_url: member_profile_listing_path } %>
|
33
32
|
<!-- Page Form (Edit) -->
|
34
|
-
|
35
33
|
</div>
|
36
34
|
</div>
|
37
35
|
</div>
|
@@ -52,7 +52,7 @@
|
|
52
52
|
<td class="highlight"><%= link_to member_listing.mbphone, member_profile_listing_path(member_listing.profile, member_listing) %></td>
|
53
53
|
<td class="highlight"><%= link_to member_listing.mbcontactemail, member_profile_listing_path(member_listing.profile, member_listing) %></td>
|
54
54
|
<td class="highlight"><%= link_to member_listing.mbwebsite, member_profile_listing_path(member_listing.profile, member_listing) %></td>
|
55
|
-
<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
|
55
|
+
<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 the listing from all directory categories. This action cannot be undone.' } %></td>
|
56
56
|
</tr>
|
57
57
|
<% end %>
|
58
58
|
</tbody>
|
@@ -27,11 +27,9 @@
|
|
27
27
|
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
28
28
|
</div>
|
29
29
|
<div class="box-body">
|
30
|
-
|
31
30
|
<!-- Page Form (New) -->
|
32
31
|
<%= render 'form', { form_url: member_profile_listings_path } %>
|
33
32
|
<!-- Page Form (New) -->
|
34
|
-
|
35
33
|
</div>
|
36
34
|
</div>
|
37
35
|
</div>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<div class="scroller" style="height: 320px;" data-always-visible="1" data-rail-visible1="0" data-handle-color="#D7DCE2">
|
2
|
+
<ul class="list-group feeds">
|
3
|
+
<% @member_profile_versions.each do |member_profile_version| %>
|
4
|
+
<li class="list-group-item">
|
5
|
+
<i class="fa fa-bell-o fa-fw"></i> Member Profile Event #<%= member_profile_version.id %> - <strong><%= member_profile_version.event.capitalize + ' ' + @member_profile.mfirstname + ' ' + @member_profile.mlastname + ' Profile' %></strong> - on <i><%= l(member_profile_version.created_at, format: "%-d/%m/%Y") %></i> at <i><%= l(member_profile_version.created_at, format: "%H:%M %Z") %></i>
|
6
|
+
</li>
|
7
|
+
<% end %>
|
8
|
+
</ul>
|
9
|
+
</div>
|
@@ -1,44 +1,22 @@
|
|
1
1
|
<div class="row">
|
2
|
-
|
3
2
|
<div class="col-md-6">
|
4
|
-
|
5
3
|
<div class="panel panel-default">
|
6
|
-
|
7
4
|
<div class="panel-heading">
|
8
5
|
<%= @member_profile.mfirstname + ' ' + @member_profile.mlastname %> Member Stats
|
9
6
|
</div>
|
10
|
-
|
11
7
|
<div class="panel-body">
|
8
|
+
<%= render 'phcmembers/member/profiles/components/profile_sidebar' %>
|
12
9
|
</div>
|
13
|
-
|
14
10
|
</div>
|
15
|
-
|
16
11
|
</div>
|
17
12
|
<div class="col-md-6">
|
18
|
-
|
19
13
|
<div class="panel panel-default">
|
20
|
-
|
21
14
|
<div class="panel-heading">
|
22
15
|
<%= @member_profile.mfirstname + ' ' + @member_profile.mlastname %> Information Change Log
|
23
16
|
</div>
|
24
|
-
|
25
17
|
<div class="panel-body">
|
26
|
-
|
27
|
-
<ul class="list-group feeds">
|
28
|
-
<% @versions.each do |version| %>
|
29
|
-
<li class="list-group-item">
|
30
|
-
<i class="fa fa-bell-o fa-fw"></i>
|
31
|
-
<strong>EVENT #<%= version.id %></strong> -
|
32
|
-
<i> <%= l(version.created_at, format: "%-d/%m/%Y") %> </i> -
|
33
|
-
<%= version.event.capitalize %> - Profile <%= l(version.created_at, format: "%H:%M %Z") %>
|
34
|
-
</li>
|
35
|
-
<% end %>
|
36
|
-
</ul>
|
37
|
-
</div>
|
18
|
+
<%= render 'phcmembers/member/profiles/components/profile_audits' %>
|
38
19
|
</div>
|
39
|
-
|
40
20
|
</div>
|
41
|
-
|
42
21
|
</div>
|
43
|
-
|
44
22
|
</div>
|
@@ -7,22 +7,21 @@
|
|
7
7
|
<%= link_to 'Delete Member', @member_profile, method: :delete, data: { confirm: 'Are you sure? Removing a member will delete all records, including business information and any member directory connections.' }, class: "btn btn-danger" %>
|
8
8
|
</div>
|
9
9
|
</div>
|
10
|
+
|
10
11
|
<div class="card">
|
11
12
|
<div class="card-block">
|
12
13
|
<ul class="nav">
|
13
|
-
|
14
14
|
</ul>
|
15
15
|
</div>
|
16
16
|
</div>
|
17
|
+
|
17
18
|
<div class="card">
|
18
19
|
<div class="card-block">
|
19
20
|
<!-- STATS -->
|
20
21
|
<div class="row list-separated profile-stat">
|
21
|
-
|
22
22
|
</div>
|
23
23
|
<!-- STATS -->
|
24
24
|
<div>
|
25
|
-
|
26
25
|
</div>
|
27
26
|
</div>
|
28
27
|
</div>
|
@@ -46,23 +46,24 @@
|
|
46
46
|
<td class="highlight"><%= link_to member_profile.memail, member_profile %></td>
|
47
47
|
<td class="highlight"><%= link_to member_profile.mphone, member_profile %></td>
|
48
48
|
</tr>
|
49
|
-
|
50
|
-
|
51
|
-
</
|
52
|
-
</
|
53
|
-
|
54
|
-
|
55
|
-
<!-- Panel Footer -->
|
56
|
-
<div class="box-footer clearfix">
|
57
|
-
<%= link_to new_member_profile_path, class: "btn btn-primary" do %>
|
58
|
-
<i class="fa fa-plus"></i> Create a New Member
|
59
|
-
<% end %>
|
60
|
-
</div>
|
61
|
-
<!-- Panel Footer -->
|
49
|
+
</tr>
|
50
|
+
<% end %>
|
51
|
+
</tbody>
|
52
|
+
</table>
|
53
|
+
</div>
|
54
|
+
<!-- Index Table -->
|
62
55
|
|
56
|
+
<!-- Panel Footer -->
|
57
|
+
<div class="box-footer clearfix">
|
58
|
+
<%= link_to new_member_profile_path, class: "btn btn-primary" do %>
|
59
|
+
<i class="fa fa-plus"></i> Create a New Member
|
60
|
+
<% end %>
|
63
61
|
</div>
|
62
|
+
<!-- Panel Footer -->
|
63
|
+
|
64
64
|
</div>
|
65
65
|
</div>
|
66
66
|
</div>
|
67
|
+
</div>
|
67
68
|
</section>
|
68
69
|
<!-- Main Content -->
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<!-- Title System -->
|
1
|
+
<!-- Title System -->
|
2
2
|
<% phc_title "Members Manager" %>
|
3
3
|
<% phc_title_tagline "Create a New Member" %>
|
4
4
|
<% phc_breadcrumb_one link_to "Dashboard", phcmembers.modules_dashboards_index_path %>
|
@@ -26,11 +26,9 @@
|
|
26
26
|
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
27
27
|
</div>
|
28
28
|
<div class="box-body">
|
29
|
-
|
30
29
|
<!-- Page Form (New) -->
|
31
|
-
|
30
|
+
<%= render 'form', member_profile: @member_profile %>
|
32
31
|
<!-- Page Form (New) -->
|
33
|
-
|
34
32
|
</div>
|
35
33
|
</div>
|
36
34
|
</div>
|
@@ -19,13 +19,6 @@
|
|
19
19
|
|
20
20
|
<!-- Main Content -->
|
21
21
|
<section class="content">
|
22
|
-
|
23
|
-
<div class="col-md-3">
|
24
|
-
<%= render 'phcmembers/member/profiles/components/profile_sidebar' %>
|
25
|
-
</div>
|
26
|
-
<div class="col-md-9">
|
27
|
-
<%= render 'phcmembers/member/profiles/components/profile_main' %>
|
28
|
-
</div>
|
29
|
-
</div>
|
22
|
+
<%= render 'phcmembers/member/profiles/components/profile_main' %>
|
30
23
|
</section>
|
31
24
|
<!-- Main Content -->
|
data/lib/phcmembers/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcmembers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 15.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BradPotts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -669,6 +669,7 @@ files:
|
|
669
669
|
- app/mailers/phcmembers/application_mailer.rb
|
670
670
|
- app/models/phcmembers/address_versions.rb
|
671
671
|
- app/models/phcmembers/application_record.rb
|
672
|
+
- app/models/phcmembers/category_listing_versions.rb
|
672
673
|
- app/models/phcmembers/category_versions.rb
|
673
674
|
- app/models/phcmembers/connections.rb
|
674
675
|
- app/models/phcmembers/directory.rb
|
@@ -695,25 +696,29 @@ files:
|
|
695
696
|
- app/views/phcmembers/directory/categories/index.html.erb
|
696
697
|
- app/views/phcmembers/directory/categories/new.html.erb
|
697
698
|
- app/views/phcmembers/directory/categories/show.html.erb
|
699
|
+
- app/views/phcmembers/directory/categorylistings/components/_category_listing_audits.html.erb
|
700
|
+
- app/views/phcmembers/directory/categorylistings/components/_category_listing_list.html.erb
|
701
|
+
- app/views/phcmembers/directory/categorylistings/components/_category_listing_main.html.erb
|
698
702
|
- app/views/phcmembers/directory/categorylistings/index.html.erb
|
699
703
|
- app/views/phcmembers/directory/categorylistings/show.html.erb
|
700
704
|
- app/views/phcmembers/member/addresses/_form.html.erb
|
701
|
-
- app/views/phcmembers/member/addresses/components/_address_address.html.erb
|
702
705
|
- app/views/phcmembers/member/addresses/components/_address_audits.html.erb
|
706
|
+
- app/views/phcmembers/member/addresses/components/_address_list.html.erb
|
703
707
|
- app/views/phcmembers/member/addresses/components/_address_main.html.erb
|
704
708
|
- app/views/phcmembers/member/addresses/edit.html.erb
|
705
709
|
- app/views/phcmembers/member/addresses/index.html.erb
|
706
710
|
- app/views/phcmembers/member/addresses/new.html.erb
|
707
711
|
- app/views/phcmembers/member/addresses/show.html.erb
|
708
712
|
- app/views/phcmembers/member/listings/_form.html.erb
|
709
|
-
- app/views/phcmembers/member/listings/components/_listing_address.html.erb
|
710
713
|
- app/views/phcmembers/member/listings/components/_listing_audits.html.erb
|
714
|
+
- app/views/phcmembers/member/listings/components/_listing_list.html.erb
|
711
715
|
- app/views/phcmembers/member/listings/components/_listing_main.html.erb
|
712
716
|
- app/views/phcmembers/member/listings/edit.html.erb
|
713
717
|
- app/views/phcmembers/member/listings/index.html.erb
|
714
718
|
- app/views/phcmembers/member/listings/new.html.erb
|
715
719
|
- app/views/phcmembers/member/listings/show.html.erb
|
716
720
|
- app/views/phcmembers/member/profiles/_form.html.erb
|
721
|
+
- app/views/phcmembers/member/profiles/components/_profile_audits.html.erb
|
717
722
|
- app/views/phcmembers/member/profiles/components/_profile_main.html.erb
|
718
723
|
- app/views/phcmembers/member/profiles/components/_profile_sidebar.html.erb
|
719
724
|
- app/views/phcmembers/member/profiles/edit.html.erb
|
@@ -1,29 +0,0 @@
|
|
1
|
-
<p>
|
2
|
-
<strong>Address Line 1:</strong>
|
3
|
-
<%= @member_address.mcaddressl1 %>
|
4
|
-
</p>
|
5
|
-
|
6
|
-
<p>
|
7
|
-
<strong>Address Line 2:</strong>
|
8
|
-
<%= @member_address.mcaddressl2 %>
|
9
|
-
</p>
|
10
|
-
|
11
|
-
<p>
|
12
|
-
<strong>City:</strong>
|
13
|
-
<%= @member_address.mccity %>
|
14
|
-
</p>
|
15
|
-
|
16
|
-
<p>
|
17
|
-
<strong>Province:</strong>
|
18
|
-
<%= @member_address.mcprovince %>
|
19
|
-
</p>
|
20
|
-
|
21
|
-
<p>
|
22
|
-
<strong>Country:</strong>
|
23
|
-
<%= @member_address.mccountry %>
|
24
|
-
</p>
|
25
|
-
|
26
|
-
<p>
|
27
|
-
<strong>PostalCode:</strong>
|
28
|
-
<%= @member_address.mcpostalcode %>
|
29
|
-
</p>
|