phcmemberspro 9.5.7 → 9.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/phcmemberspro/directory/categories_controller.rb +1 -1
- data/app/controllers/phcmemberspro/member/addresses_controller.rb +1 -1
- data/app/controllers/phcmemberspro/member/listings_controller.rb +1 -7
- data/app/controllers/phcmemberspro/member/profiles_controller.rb +1 -1
- data/config/routes.rb +1 -2
- data/db/migrate/20160714193304_create_versions.rb +80 -80
- data/db/migrate/20160728230720_create_phcmemberspro_directory_categories.rb +15 -15
- data/db/migrate/20160728230830_create_phcmemberspro_directory_categorylistings.rb +12 -16
- data/db/migrate/20160728230901_create_phcmemberspro_member_addresses.rb +22 -22
- data/db/migrate/20160728231011_create_phcmemberspro_member_listings.rb +26 -26
- data/db/migrate/20160728231036_create_phcmemberspro_member_profiles.rb +19 -19
- data/lib/phcmemberspro/version.rb +1 -1
- metadata +2 -5
- data/app/controllers/phcmemberspro/directory/categorylistings_controller.rb +0 -22
- data/app/views/phcmemberspro/directory/categorylistings/index.html.erb +0 -60
- data/app/views/phcmemberspro/directory/categorylistings/show.html.erb +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 361ad3985f2ed059e0b601b5dd1b725f3e9d6ad5
|
4
|
+
data.tar.gz: 2c1420f33a905b55b36325d739f1f27187a68ca5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cd39f3f391e41d59d126f63e360a0f562e72d12bc6720e12214d75a49b0c5631b8d7bdf2d9f3718fec7e512c66ccc7c1c19509f8533bd495edf9808400774fb
|
7
|
+
data.tar.gz: 455426db6528591cd495455548113507c6fcb24fd4eef2b89760edb803d69a9473e272b1fc44842ae0a29c9e5ab861b395e0aa6ec833b5a5250e4599763276cc
|
@@ -76,7 +76,7 @@ module Phcmemberspro
|
|
76
76
|
|
77
77
|
# Whitelist
|
78
78
|
def member_address_params
|
79
|
-
params.require(:member_address).permit(:mcaddressl1, :mcaddressl2, :mccity, :mcprovince, :mccountry, :mcpostalcode, :mctype, :profile_id)
|
79
|
+
params.require(:member_address).permit(:mcaddressl1, :mcaddressl2, :mccity, :mcprovince, :mccountry, :mcpostalcode, :mctype, :profile_id, :user_id, :membership_id, :oganization_id)
|
80
80
|
end
|
81
81
|
|
82
82
|
end
|
@@ -41,9 +41,6 @@ module Phcmemberspro
|
|
41
41
|
@member_listing.membership_id = membership_info.id
|
42
42
|
@member_listing.oganization_id = membership_info.org_id
|
43
43
|
if @member_listing.save
|
44
|
-
@member_listing.user_id = current_user.id
|
45
|
-
@member_listing.membership_id = membership_info.id
|
46
|
-
@member_listing.oganization_id = membership_info.org_id
|
47
44
|
@member_listing.categorylistings.build
|
48
45
|
redirect_to member_profile_listings_url, notice: 'Listing was successfully created.'
|
49
46
|
else
|
@@ -57,9 +54,6 @@ module Phcmemberspro
|
|
57
54
|
@member_listing.membership_id = membership_info.id
|
58
55
|
@member_listing.oganization_id = membership_info.org_id
|
59
56
|
if @member_listing.update(member_listing_params)
|
60
|
-
@member_listing.user_id = current_user.id
|
61
|
-
@member_listing.membership_id = membership_info.id
|
62
|
-
@member_listing.oganization_id = membership_info.org_id
|
63
57
|
@member_listing.categorylistings.build
|
64
58
|
redirect_to member_profile_listings_url, notice: 'Listing was successfully updated.'
|
65
59
|
else
|
@@ -84,7 +78,7 @@ module Phcmemberspro
|
|
84
78
|
|
85
79
|
# Whitelist
|
86
80
|
def member_listing_params
|
87
|
-
params.require(:member_listing).permit(:mbcompanyname, :mbcontactname, :mbaddressl1, :mbaddressl2, :mbcity, :mbcountry, :mbprovince, :mbpostalcode, :mbphone, :mbcontactemail, :mbwebsite, :profile_id, category_ids: [])
|
81
|
+
params.require(:member_listing).permit(:mbcompanyname, :mbcontactname, :mbaddressl1, :mbaddressl2, :mbcity, :mbcountry, :mbprovince, :mbpostalcode, :mbphone, :mbcontactemail, :mbwebsite, :profile_id, :user_id, :membership_id, :oganization_id, category_ids: [])
|
88
82
|
end
|
89
83
|
|
90
84
|
end
|
@@ -69,7 +69,7 @@ module Phcmemberspro
|
|
69
69
|
|
70
70
|
# Whitelist
|
71
71
|
def member_profile_params
|
72
|
-
params.require(:member_profile).permit(:mfirstname, :mlastname, :mtitle, :memail, :mphone, :mnotes)
|
72
|
+
params.require(:member_profile).permit(:mfirstname, :mlastname, :mtitle, :memail, :mphone, :mnotes, :user_id, :membership_id, :oganization_id)
|
73
73
|
end
|
74
74
|
|
75
75
|
end
|
data/config/routes.rb
CHANGED
@@ -34,9 +34,8 @@ Phcmemberspro::Engine.routes.draw do
|
|
34
34
|
|
35
35
|
# Members Main Index
|
36
36
|
root 'categories#index'
|
37
|
-
|
38
37
|
resources :categories, class_name: 'Phcmemberspro::Directory::Category'
|
39
|
-
|
38
|
+
|
40
39
|
end
|
41
40
|
|
42
41
|
# Mount Account Routes
|
@@ -1,80 +1,80 @@
|
|
1
|
-
# This migration creates the `versions` table, the only schema PT requires.
|
2
|
-
# All other migrations PT provides are optional.
|
3
|
-
class CreateVersions < ActiveRecord::Migration
|
4
|
-
# Class names of MySQL adapters.
|
5
|
-
# - `MysqlAdapter` - Used by gems: `mysql`, `activerecord-jdbcmysql-adapter`.
|
6
|
-
# - `Mysql2Adapter` - Used by `mysql2` gem.
|
7
|
-
MYSQL_ADAPTERS = [
|
8
|
-
"ActiveRecord::ConnectionAdapters::MysqlAdapter",
|
9
|
-
"ActiveRecord::ConnectionAdapters::Mysql2Adapter"
|
10
|
-
].freeze
|
11
|
-
|
12
|
-
# The largest text column available in all supported RDBMS is
|
13
|
-
# 1024^3 - 1 bytes, roughly one gibibyte. We specify a size
|
14
|
-
# so that MySQL will use `longtext` instead of `text`. Otherwise,
|
15
|
-
# when serializing very large objects, `text` might not be big enough.
|
16
|
-
TEXT_BYTES = 1_073_741_823
|
17
|
-
|
18
|
-
def change
|
19
|
-
create_table :versions, versions_table_options do |t|
|
20
|
-
t.string :item_type, item_type_options
|
21
|
-
t.integer :item_id, null: false
|
22
|
-
t.string :event, null: false
|
23
|
-
t.string :whodunnit
|
24
|
-
t.text :object, limit: TEXT_BYTES
|
25
|
-
|
26
|
-
# Known issue in MySQL: fractional second precision
|
27
|
-
# -------------------------------------------------
|
28
|
-
#
|
29
|
-
# MySQL timestamp columns do not support fractional seconds unless
|
30
|
-
# defined with "fractional seconds precision". MySQL users should manually
|
31
|
-
# add fractional seconds precision to this migration, specifically, to
|
32
|
-
# the `created_at` column.
|
33
|
-
# (https://dev.mysql.com/doc/refman/5.6/en/fractional-seconds.html)
|
34
|
-
#
|
35
|
-
# MySQL users should also upgrade to rails 4.2, which is the first
|
36
|
-
# version of ActiveRecord with support for fractional seconds in MySQL.
|
37
|
-
# (https://github.com/rails/rails/pull/14359)
|
38
|
-
#
|
39
|
-
t.datetime :created_at
|
40
|
-
end
|
41
|
-
add_index :versions, [:item_type, :item_id]
|
42
|
-
end
|
43
|
-
|
44
|
-
private
|
45
|
-
|
46
|
-
# MySQL 5.6 utf8mb4 limit is 191 chars for keys used in indexes.
|
47
|
-
# See https://github.com/airblade/paper_trail/issues/651
|
48
|
-
def item_type_options
|
49
|
-
opt = { null: false }
|
50
|
-
opt[:limit] = 191 if mysql?
|
51
|
-
opt
|
52
|
-
end
|
53
|
-
|
54
|
-
def mysql?
|
55
|
-
MYSQL_ADAPTERS.include?(connection.class.name)
|
56
|
-
end
|
57
|
-
|
58
|
-
# Even modern versions of MySQL still use `latin1` as the default character
|
59
|
-
# encoding. Many users are not aware of this, and run into trouble when they
|
60
|
-
# try to use PaperTrail in apps that otherwise tend to use UTF-8. Postgres, by
|
61
|
-
# comparison, uses UTF-8 except in the unusual case where the OS is configured
|
62
|
-
# with a custom locale.
|
63
|
-
#
|
64
|
-
# - https://dev.mysql.com/doc/refman/5.7/en/charset-applications.html
|
65
|
-
# - http://www.postgresql.org/docs/9.4/static/multibyte.html
|
66
|
-
#
|
67
|
-
# Furthermore, MySQL's original implementation of UTF-8 was flawed, and had
|
68
|
-
# to be fixed later by introducing a new charset, `utf8mb4`.
|
69
|
-
#
|
70
|
-
# - https://mathiasbynens.be/notes/mysql-utf8mb4
|
71
|
-
# - https://dev.mysql.com/doc/refman/5.5/en/charset-unicode-utf8mb4.html
|
72
|
-
#
|
73
|
-
def versions_table_options
|
74
|
-
if mysql?
|
75
|
-
{ options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci" }
|
76
|
-
else
|
77
|
-
{}
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|
1
|
+
# This migration creates the `versions` table, the only schema PT requires.
|
2
|
+
# All other migrations PT provides are optional.
|
3
|
+
class CreateVersions < ActiveRecord::Migration
|
4
|
+
# Class names of MySQL adapters.
|
5
|
+
# - `MysqlAdapter` - Used by gems: `mysql`, `activerecord-jdbcmysql-adapter`.
|
6
|
+
# - `Mysql2Adapter` - Used by `mysql2` gem.
|
7
|
+
MYSQL_ADAPTERS = [
|
8
|
+
"ActiveRecord::ConnectionAdapters::MysqlAdapter",
|
9
|
+
"ActiveRecord::ConnectionAdapters::Mysql2Adapter"
|
10
|
+
].freeze
|
11
|
+
|
12
|
+
# The largest text column available in all supported RDBMS is
|
13
|
+
# 1024^3 - 1 bytes, roughly one gibibyte. We specify a size
|
14
|
+
# so that MySQL will use `longtext` instead of `text`. Otherwise,
|
15
|
+
# when serializing very large objects, `text` might not be big enough.
|
16
|
+
TEXT_BYTES = 1_073_741_823
|
17
|
+
|
18
|
+
def change
|
19
|
+
create_table :versions, versions_table_options do |t|
|
20
|
+
t.string :item_type, item_type_options
|
21
|
+
t.integer :item_id, null: false
|
22
|
+
t.string :event, null: false
|
23
|
+
t.string :whodunnit
|
24
|
+
t.text :object, limit: TEXT_BYTES
|
25
|
+
|
26
|
+
# Known issue in MySQL: fractional second precision
|
27
|
+
# -------------------------------------------------
|
28
|
+
#
|
29
|
+
# MySQL timestamp columns do not support fractional seconds unless
|
30
|
+
# defined with "fractional seconds precision". MySQL users should manually
|
31
|
+
# add fractional seconds precision to this migration, specifically, to
|
32
|
+
# the `created_at` column.
|
33
|
+
# (https://dev.mysql.com/doc/refman/5.6/en/fractional-seconds.html)
|
34
|
+
#
|
35
|
+
# MySQL users should also upgrade to rails 4.2, which is the first
|
36
|
+
# version of ActiveRecord with support for fractional seconds in MySQL.
|
37
|
+
# (https://github.com/rails/rails/pull/14359)
|
38
|
+
#
|
39
|
+
t.datetime :created_at
|
40
|
+
end
|
41
|
+
add_index :versions, [:item_type, :item_id]
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
# MySQL 5.6 utf8mb4 limit is 191 chars for keys used in indexes.
|
47
|
+
# See https://github.com/airblade/paper_trail/issues/651
|
48
|
+
def item_type_options
|
49
|
+
opt = { null: false }
|
50
|
+
opt[:limit] = 191 if mysql?
|
51
|
+
opt
|
52
|
+
end
|
53
|
+
|
54
|
+
def mysql?
|
55
|
+
MYSQL_ADAPTERS.include?(connection.class.name)
|
56
|
+
end
|
57
|
+
|
58
|
+
# Even modern versions of MySQL still use `latin1` as the default character
|
59
|
+
# encoding. Many users are not aware of this, and run into trouble when they
|
60
|
+
# try to use PaperTrail in apps that otherwise tend to use UTF-8. Postgres, by
|
61
|
+
# comparison, uses UTF-8 except in the unusual case where the OS is configured
|
62
|
+
# with a custom locale.
|
63
|
+
#
|
64
|
+
# - https://dev.mysql.com/doc/refman/5.7/en/charset-applications.html
|
65
|
+
# - http://www.postgresql.org/docs/9.4/static/multibyte.html
|
66
|
+
#
|
67
|
+
# Furthermore, MySQL's original implementation of UTF-8 was flawed, and had
|
68
|
+
# to be fixed later by introducing a new charset, `utf8mb4`.
|
69
|
+
#
|
70
|
+
# - https://mathiasbynens.be/notes/mysql-utf8mb4
|
71
|
+
# - https://dev.mysql.com/doc/refman/5.5/en/charset-unicode-utf8mb4.html
|
72
|
+
#
|
73
|
+
def versions_table_options
|
74
|
+
if mysql?
|
75
|
+
{ options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci" }
|
76
|
+
else
|
77
|
+
{}
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -1,15 +1,15 @@
|
|
1
|
-
class CreatePhcmembersproDirectoryCategories < ActiveRecord::Migration[5.0]
|
2
|
-
def change
|
3
|
-
create_table :phcmemberspro_directory_categories do |t|
|
4
|
-
|
5
|
-
t.string :catname
|
6
|
-
|
7
|
-
t.string :user_id
|
8
|
-
t.string :membership_id
|
9
|
-
t.string :oganization_id
|
10
|
-
|
11
|
-
t.timestamps
|
12
|
-
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
1
|
+
class CreatePhcmembersproDirectoryCategories < ActiveRecord::Migration[5.0]
|
2
|
+
def change
|
3
|
+
create_table :phcmemberspro_directory_categories do |t|
|
4
|
+
|
5
|
+
t.string :catname
|
6
|
+
|
7
|
+
t.string :user_id
|
8
|
+
t.string :membership_id
|
9
|
+
t.string :oganization_id
|
10
|
+
|
11
|
+
t.timestamps
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -1,16 +1,12 @@
|
|
1
|
-
class CreatePhcmembersproDirectoryCategorylistings < ActiveRecord::Migration[5.0]
|
2
|
-
def change
|
3
|
-
create_table :phcmemberspro_directory_categorylistings do |t|
|
4
|
-
|
5
|
-
t.references :category
|
6
|
-
t.references :listing
|
7
|
-
|
8
|
-
t.
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
1
|
+
class CreatePhcmembersproDirectoryCategorylistings < ActiveRecord::Migration[5.0]
|
2
|
+
def change
|
3
|
+
create_table :phcmemberspro_directory_categorylistings do |t|
|
4
|
+
|
5
|
+
t.references :category
|
6
|
+
t.references :listing
|
7
|
+
|
8
|
+
t.timestamps
|
9
|
+
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -1,23 +1,23 @@
|
|
1
|
-
class CreatePhcmembersproMemberAddresses < ActiveRecord::Migration[5.0]
|
2
|
-
def change
|
3
|
-
create_table :phcmemberspro_member_addresses do |t|
|
4
|
-
|
5
|
-
t.string :mcaddressl1
|
6
|
-
t.string :mcaddressl2
|
7
|
-
t.string :mccity
|
8
|
-
t.string :mcprovince
|
9
|
-
t.string :mccountry
|
10
|
-
t.string :mcpostalcode
|
11
|
-
t.string :mctype
|
12
|
-
|
13
|
-
t.references :profile
|
14
|
-
|
15
|
-
t.string :user_id
|
16
|
-
t.string :membership_id
|
17
|
-
t.string :oganization_id
|
18
|
-
|
19
|
-
t.timestamps
|
20
|
-
|
21
|
-
end
|
22
|
-
end
|
1
|
+
class CreatePhcmembersproMemberAddresses < ActiveRecord::Migration[5.0]
|
2
|
+
def change
|
3
|
+
create_table :phcmemberspro_member_addresses do |t|
|
4
|
+
|
5
|
+
t.string :mcaddressl1
|
6
|
+
t.string :mcaddressl2
|
7
|
+
t.string :mccity
|
8
|
+
t.string :mcprovince
|
9
|
+
t.string :mccountry
|
10
|
+
t.string :mcpostalcode
|
11
|
+
t.string :mctype
|
12
|
+
|
13
|
+
t.references :profile
|
14
|
+
|
15
|
+
t.string :user_id
|
16
|
+
t.string :membership_id
|
17
|
+
t.string :oganization_id
|
18
|
+
|
19
|
+
t.timestamps
|
20
|
+
|
21
|
+
end
|
22
|
+
end
|
23
23
|
end
|
@@ -1,27 +1,27 @@
|
|
1
|
-
class CreatePhcmembersproMemberListings < ActiveRecord::Migration[5.0]
|
2
|
-
def change
|
3
|
-
create_table :phcmemberspro_member_listings do |t|
|
4
|
-
|
5
|
-
t.string :mbcompanyname
|
6
|
-
t.string :mbcontactname
|
7
|
-
t.string :mbaddressl1
|
8
|
-
t.string :mbaddressl2
|
9
|
-
t.string :mbcity
|
10
|
-
t.string :mbprovince
|
11
|
-
t.string :mbcountry
|
12
|
-
t.string :mbpostalcode
|
13
|
-
t.string :mbphone
|
14
|
-
t.string :mbcontactemail
|
15
|
-
t.string :mbwebsite
|
16
|
-
|
17
|
-
t.references :profile
|
18
|
-
|
19
|
-
t.string :user_id
|
20
|
-
t.string :membership_id
|
21
|
-
t.string :oganization_id
|
22
|
-
|
23
|
-
t.timestamps
|
24
|
-
|
25
|
-
end
|
26
|
-
end
|
1
|
+
class CreatePhcmembersproMemberListings < ActiveRecord::Migration[5.0]
|
2
|
+
def change
|
3
|
+
create_table :phcmemberspro_member_listings do |t|
|
4
|
+
|
5
|
+
t.string :mbcompanyname
|
6
|
+
t.string :mbcontactname
|
7
|
+
t.string :mbaddressl1
|
8
|
+
t.string :mbaddressl2
|
9
|
+
t.string :mbcity
|
10
|
+
t.string :mbprovince
|
11
|
+
t.string :mbcountry
|
12
|
+
t.string :mbpostalcode
|
13
|
+
t.string :mbphone
|
14
|
+
t.string :mbcontactemail
|
15
|
+
t.string :mbwebsite
|
16
|
+
|
17
|
+
t.references :profile
|
18
|
+
|
19
|
+
t.string :user_id
|
20
|
+
t.string :membership_id
|
21
|
+
t.string :oganization_id
|
22
|
+
|
23
|
+
t.timestamps
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
27
27
|
end
|
@@ -1,20 +1,20 @@
|
|
1
|
-
class CreatePhcmembersproMemberProfiles < ActiveRecord::Migration[5.0]
|
2
|
-
def change
|
3
|
-
create_table :phcmemberspro_member_profiles do |t|
|
4
|
-
|
5
|
-
t.string :mfirstname
|
6
|
-
t.string :mlastname
|
7
|
-
t.string :mtitle
|
8
|
-
t.string :memail
|
9
|
-
t.string :mphone
|
10
|
-
t.string :mnotes
|
11
|
-
|
12
|
-
t.string :user_id
|
13
|
-
t.string :membership_id
|
14
|
-
t.string :oganization_id
|
15
|
-
|
16
|
-
t.timestamps
|
17
|
-
|
18
|
-
end
|
19
|
-
end
|
1
|
+
class CreatePhcmembersproMemberProfiles < ActiveRecord::Migration[5.0]
|
2
|
+
def change
|
3
|
+
create_table :phcmemberspro_member_profiles do |t|
|
4
|
+
|
5
|
+
t.string :mfirstname
|
6
|
+
t.string :mlastname
|
7
|
+
t.string :mtitle
|
8
|
+
t.string :memail
|
9
|
+
t.string :mphone
|
10
|
+
t.string :mnotes
|
11
|
+
|
12
|
+
t.string :user_id
|
13
|
+
t.string :membership_id
|
14
|
+
t.string :oganization_id
|
15
|
+
|
16
|
+
t.timestamps
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
20
20
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcmemberspro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.
|
4
|
+
version: 9.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BradPotts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -541,7 +541,6 @@ files:
|
|
541
541
|
- app/assets/stylesheets/phcmemberspro/application.scss
|
542
542
|
- app/controllers/phcmemberspro/application_controller.rb
|
543
543
|
- app/controllers/phcmemberspro/directory/categories_controller.rb
|
544
|
-
- app/controllers/phcmemberspro/directory/categorylistings_controller.rb
|
545
544
|
- app/controllers/phcmemberspro/member/addresses_controller.rb
|
546
545
|
- app/controllers/phcmemberspro/member/listings_controller.rb
|
547
546
|
- app/controllers/phcmemberspro/member/profiles_controller.rb
|
@@ -571,8 +570,6 @@ files:
|
|
571
570
|
- app/views/phcmemberspro/directory/categories/index.html.erb
|
572
571
|
- app/views/phcmemberspro/directory/categories/new.html.erb
|
573
572
|
- app/views/phcmemberspro/directory/categories/show.html.erb
|
574
|
-
- app/views/phcmemberspro/directory/categorylistings/index.html.erb
|
575
|
-
- app/views/phcmemberspro/directory/categorylistings/show.html.erb
|
576
573
|
- app/views/phcmemberspro/member/addresses/_form.html.erb
|
577
574
|
- app/views/phcmemberspro/member/addresses/components/_address_address.html.erb
|
578
575
|
- app/views/phcmemberspro/member/addresses/components/_address_audits.html.erb
|
@@ -1,22 +0,0 @@
|
|
1
|
-
require_dependency "phcmemberspro/application_controller"
|
2
|
-
|
3
|
-
module Phcmemberspro
|
4
|
-
class Directory::CategorylistingsController < ApplicationController
|
5
|
-
|
6
|
-
# Security & Action Filters
|
7
|
-
before_action :require_user
|
8
|
-
before_action :membership_info
|
9
|
-
before_action :set_paper_trail_whodunnit
|
10
|
-
before_action :set_directory_category, only: [:show]
|
11
|
-
|
12
|
-
# INDEX - Directory Category/Listings
|
13
|
-
def index
|
14
|
-
@directory_categorylistings = Directory::Categorylisting.where(oganization_id: membership_info.org_id)
|
15
|
-
end
|
16
|
-
|
17
|
-
# DETAILED - Directory Category/Listings
|
18
|
-
def show
|
19
|
-
end
|
20
|
-
|
21
|
-
end
|
22
|
-
end
|
@@ -1,60 +0,0 @@
|
|
1
|
-
<!-- Title System -->
|
2
|
-
<% phc_title "Directory Listing Manager" %>
|
3
|
-
<% phc_title_tagline "Web Directory Listing Index" %>
|
4
|
-
|
5
|
-
<!-- Page Header -->
|
6
|
-
<div class="page-bar">
|
7
|
-
<!-- Bread Crumb -->
|
8
|
-
<ul class="page-breadcrumb">
|
9
|
-
<li><%= link_to "Dashboard", directory_root_path %><i class="fa fa-circle"></i></li>
|
10
|
-
<li class="active"><%= link_to "Directory Categories Index", directory_categories_path %><i class="fa fa-circle"></i></li>
|
11
|
-
<li class="active"><%= yield(:phc_title_tagline) %></li>
|
12
|
-
</ul>
|
13
|
-
<div class="page-toolbar">
|
14
|
-
</div>
|
15
|
-
</div>
|
16
|
-
<h1 class="page-title">
|
17
|
-
<%= yield(:phc_title) %>
|
18
|
-
<small><%= yield(:phc_title_tagline) %></small>
|
19
|
-
</h1>
|
20
|
-
|
21
|
-
<!-- Main Content -->
|
22
|
-
<div class="row">
|
23
|
-
<div class="col-lg-12">
|
24
|
-
|
25
|
-
<div class="panel panel-default">
|
26
|
-
<div class="panel-heading">
|
27
|
-
|
28
|
-
<div class="caption">
|
29
|
-
<span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
|
30
|
-
</div>
|
31
|
-
|
32
|
-
</div>
|
33
|
-
<div class="panel-body">
|
34
|
-
|
35
|
-
<div class="table-scrollable">
|
36
|
-
<table class="table table-striped table-bordered table-advance table-hover">
|
37
|
-
|
38
|
-
<thead>
|
39
|
-
<tr>
|
40
|
-
<th>Category</th>
|
41
|
-
<th>Company Name</th>
|
42
|
-
</tr>
|
43
|
-
</thead>
|
44
|
-
|
45
|
-
<tbody>
|
46
|
-
<% @directory_categorylistings.each do |directory_categorylisting| %>
|
47
|
-
<tr>
|
48
|
-
<td><%= directory_categorylisting.category.catname %></td>
|
49
|
-
<td><%= directory_categorylisting.listing.mbcompanyname %></td>
|
50
|
-
</tr>
|
51
|
-
<% end %>
|
52
|
-
</tbody>
|
53
|
-
|
54
|
-
</table>
|
55
|
-
</div>
|
56
|
-
</div>
|
57
|
-
</div>
|
58
|
-
|
59
|
-
</div>
|
60
|
-
</div>
|