phcmemberspro 8.6.3 → 9.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/phcmemberspro/application.js +2 -5
- data/app/assets/stylesheets/phcmemberspro/_custom.scss +38 -0
- data/app/assets/stylesheets/phcmemberspro/application.scss +17 -22
- data/app/controllers/phcmemberspro/application_controller.rb +13 -17
- data/app/controllers/phcmemberspro/directory/categories_controller.rb +14 -25
- data/app/controllers/phcmemberspro/directory/categorylistings_controller.rb +21 -0
- data/app/controllers/phcmemberspro/member/addresses_controller.rb +82 -0
- data/app/controllers/phcmemberspro/member/listings_controller.rb +84 -0
- data/app/controllers/phcmemberspro/member/profiles_controller.rb +75 -0
- data/app/models/phcmemberspro/directory/category.rb +4 -10
- data/app/models/phcmemberspro/directory/categorylisting.rb +12 -0
- data/app/models/phcmemberspro/{members.rb → member.rb} +2 -2
- data/app/models/phcmemberspro/member/address.rb +11 -0
- data/app/models/phcmemberspro/member/listing.rb +13 -0
- data/app/models/phcmemberspro/{members/main.rb → member/profile.rb} +3 -5
- data/app/views/layouts/components/backend/footer/_footer.html.erb +10 -0
- data/app/views/layouts/components/backend/header/_header.html.erb +39 -0
- data/app/views/layouts/components/backend/navigation/_side_menu.html.erb +94 -0
- data/app/views/layouts/phcmemberspro/application.html.erb +9 -14
- data/app/views/phcmemberspro/directory/categories/_form.html.erb +5 -2
- data/app/views/phcmemberspro/directory/categories/components/_category_list.html.erb +7 -20
- data/app/views/phcmemberspro/directory/categories/components/_category_main.html.erb +1 -1
- data/app/views/phcmemberspro/directory/categories/edit.html.erb +12 -13
- data/app/views/phcmemberspro/directory/categories/index.html.erb +9 -10
- data/app/views/phcmemberspro/directory/categories/new.html.erb +11 -12
- data/app/views/phcmemberspro/directory/categories/show.html.erb +10 -11
- data/app/views/phcmemberspro/directory/categorylistings/index.html.erb +60 -0
- data/app/views/phcmemberspro/directory/categorylistings/show.html.erb +4 -0
- data/app/views/phcmemberspro/{members/contacts → member/addresses}/_form.html.erb +12 -5
- data/app/views/phcmemberspro/{members/contacts/components/_contact_address.html.erb → member/addresses/components/_address_address.html.erb} +7 -7
- data/app/views/phcmemberspro/{members/contacts/components/_contact_audits.html.erb → member/addresses/components/_address_audits.html.erb} +1 -1
- data/app/views/phcmemberspro/{members/contacts/components/_contact_main.html.erb → member/addresses/components/_address_main.html.erb} +6 -6
- data/app/views/phcmemberspro/member/addresses/edit.html.erb +41 -0
- data/app/views/phcmemberspro/member/addresses/index.html.erb +71 -0
- data/app/views/phcmemberspro/member/addresses/new.html.erb +41 -0
- data/app/views/phcmemberspro/member/addresses/show.html.erb +24 -0
- data/app/views/phcmemberspro/{members/businesses → member/listings}/_form.html.erb +11 -4
- data/app/views/phcmemberspro/member/listings/components/_listing_address.html.erb +48 -0
- data/app/views/phcmemberspro/{directory → member}/listings/components/_listing_audits.html.erb +1 -1
- data/app/views/phcmemberspro/{directory → member}/listings/components/_listing_main.html.erb +9 -6
- data/app/views/phcmemberspro/member/listings/edit.html.erb +41 -0
- data/app/views/phcmemberspro/member/listings/index.html.erb +74 -0
- data/app/views/phcmemberspro/member/listings/new.html.erb +41 -0
- data/app/views/phcmemberspro/member/listings/show.html.erb +24 -0
- data/app/views/phcmemberspro/member/profiles/_form.html.erb +31 -0
- data/app/views/phcmemberspro/member/profiles/components/_profile_addresses_table.html.erb +20 -0
- data/app/views/phcmemberspro/{members/mains → member/profiles}/components/_profile_audits.html.erb +1 -1
- data/app/views/phcmemberspro/member/profiles/components/_profile_listings_table.html.erb +20 -0
- data/app/views/phcmemberspro/{members/mains → member/profiles}/components/_profile_main.html.erb +6 -6
- data/app/views/phcmemberspro/member/profiles/components/_profile_sidebar.html.erb +65 -0
- data/app/views/phcmemberspro/{members/mains → member/profiles}/edit.html.erb +14 -14
- data/app/views/phcmemberspro/{members/mains → member/profiles}/index.html.erb +17 -19
- data/app/views/phcmemberspro/{members/mains → member/profiles}/new.html.erb +13 -13
- data/app/views/phcmemberspro/member/profiles/show.html.erb +31 -0
- data/config/routes.rb +13 -16
- data/db/migrate/{20160711040328_create_phcmemberspro_directory_categories.rb → 20160728230720_create_phcmemberspro_directory_categories.rb} +2 -4
- data/db/migrate/20160728230830_create_phcmemberspro_directory_categorylistings.rb +16 -0
- data/db/migrate/{20160711040205_create_phcmemberspro_members_contacts.rb → 20160728230901_create_phcmemberspro_member_addresses.rb} +5 -5
- data/db/migrate/{20160711040139_create_phcmemberspro_members_businesses.rb → 20160728231011_create_phcmemberspro_member_listings.rb} +5 -5
- data/db/migrate/{20160711040108_create_phcmemberspro_members_mains.rb → 20160728231036_create_phcmemberspro_member_profiles.rb} +4 -8
- data/lib/phcmemberspro/engine.rb +2 -0
- data/lib/phcmemberspro/version.rb +1 -1
- metadata +103 -78
- data/app/controllers/phcmemberspro/directory/listings_controller.rb +0 -94
- data/app/controllers/phcmemberspro/members/businesses_controller.rb +0 -104
- data/app/controllers/phcmemberspro/members/contacts_controller.rb +0 -104
- data/app/controllers/phcmemberspro/members/mains_controller.rb +0 -86
- data/app/models/phcmemberspro/directory/listing.rb +0 -20
- data/app/models/phcmemberspro/members/business.rb +0 -44
- data/app/models/phcmemberspro/members/contact.rb +0 -34
- data/app/views/layouts/phcmemberspro/directory/directory_all.html.erb +0 -61
- data/app/views/layouts/phcmemberspro/members/members_all.html.erb +0 -61
- data/app/views/layouts/phcmemberspro/members/members_profile.html.erb +0 -61
- data/app/views/phcmemberspro/directory/listings/_form.html.erb +0 -12
- data/app/views/phcmemberspro/directory/listings/_form_category.html.erb +0 -17
- data/app/views/phcmemberspro/directory/listings/components/_listing_list.html.erb +0 -48
- data/app/views/phcmemberspro/directory/listings/index.html.erb +0 -67
- data/app/views/phcmemberspro/directory/listings/new.html.erb +0 -43
- data/app/views/phcmemberspro/directory/listings/show.html.erb +0 -27
- data/app/views/phcmemberspro/members/businesses/_formpatch.html.erb +0 -65
- data/app/views/phcmemberspro/members/businesses/components/_business_address.html.erb +0 -48
- data/app/views/phcmemberspro/members/businesses/components/_business_audits.html.erb +0 -25
- data/app/views/phcmemberspro/members/businesses/components/_business_main.html.erb +0 -41
- data/app/views/phcmemberspro/members/businesses/edit.html.erb +0 -43
- data/app/views/phcmemberspro/members/businesses/index.html.erb +0 -74
- data/app/views/phcmemberspro/members/businesses/new.html.erb +0 -43
- data/app/views/phcmemberspro/members/businesses/show.html.erb +0 -28
- data/app/views/phcmemberspro/members/contacts/_formpatch.html.erb +0 -38
- data/app/views/phcmemberspro/members/contacts/edit.html.erb +0 -43
- data/app/views/phcmemberspro/members/contacts/index.html.erb +0 -72
- data/app/views/phcmemberspro/members/contacts/new.html.erb +0 -44
- data/app/views/phcmemberspro/members/contacts/show.html.erb +0 -28
- data/app/views/phcmemberspro/members/mains/_form.html.erb +0 -43
- data/app/views/phcmemberspro/members/mains/components/_profile_business_table.html.erb +0 -20
- data/app/views/phcmemberspro/members/mains/components/_profile_contact_table.html.erb +0 -20
- data/app/views/phcmemberspro/members/mains/components/_profile_sidebar.html.erb +0 -80
- data/app/views/phcmemberspro/members/mains/show.html.erb +0 -32
- data/db/migrate/20160711040309_create_phcmemberspro_directory_listings.rb +0 -17
@@ -0,0 +1,24 @@
|
|
1
|
+
<!-- Title Variables -->
|
2
|
+
<% phc_title "Member Address Manager" %>
|
3
|
+
<% phc_title_tagline "Detailed Address Information for " + @members_profile_info.mfirstname + " " + @members_profile_info.mlastname %>
|
4
|
+
|
5
|
+
<!-- Page Header -->
|
6
|
+
<div class="page-bar">
|
7
|
+
<!-- Bread Crumb -->
|
8
|
+
<ul class="page-breadcrumb">
|
9
|
+
<li><%= link_to "Home", member_root_path %><i class="fa fa-circle"></i></li>
|
10
|
+
<li><%= link_to "Members List", member_profiles_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
|
+
<!-- Page Content -->
|
22
|
+
<div class="row">
|
23
|
+
<%= render 'phcmemberspro/member/addresses/components/address_main' %>
|
24
|
+
</div>
|
@@ -1,7 +1,7 @@
|
|
1
|
-
<%= form_for([@
|
1
|
+
<%= form_for([@member_listing.profile, @member_listing], url: form_url) do |f| %>
|
2
2
|
|
3
3
|
<!-- PHC-Notifi Render Validation -->
|
4
|
-
<%= render 'phcnotifi/validations', :object => @
|
4
|
+
<%= render 'phcnotifi/validations', :object => @member_listing %>
|
5
5
|
|
6
6
|
<div class="form-group field_with_errors">
|
7
7
|
<%= f.label :mbcompanyname, "Company Name" %>
|
@@ -35,7 +35,7 @@
|
|
35
35
|
|
36
36
|
<div class="form-group field_with_errors">
|
37
37
|
<%= f.label :mbcountry, "Country" %>
|
38
|
-
<%= country_select("
|
38
|
+
<%= country_select("member_listing", "mbcountry", { priority_countries: ["CA", "GB", "FR", "US"], selected: "CA" }, { class: 'form-control', data: { attribute: "value" } }) %>
|
39
39
|
</div>
|
40
40
|
|
41
41
|
<div class="form-group field_with_errors">
|
@@ -58,8 +58,15 @@
|
|
58
58
|
<%= f.text_field :mbwebsite, class: "form-control", placeholder: "Business/Organization: Website (Public)" %>
|
59
59
|
</div>
|
60
60
|
|
61
|
+
<div class="form-group">
|
62
|
+
<%= f.collection_check_boxes :category_ids, Phcmemberspro::Directory::Category.all, :id, :catname do |listing_category| %>
|
63
|
+
<%= listing_category.check_box %>
|
64
|
+
<%= listing_category.label %></br>
|
65
|
+
<% end %>
|
66
|
+
</div>
|
67
|
+
|
61
68
|
<div class="actions">
|
62
|
-
<%= f.submit
|
69
|
+
<%= f.submit class: "btn btn-primary" %>
|
63
70
|
</div>
|
64
71
|
|
65
72
|
<% end %>
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<p>
|
2
|
+
<strong>Contact Name:</strong>
|
3
|
+
<%= @member_listing.mbcompanyname %>
|
4
|
+
</p>
|
5
|
+
<p>
|
6
|
+
<strong>Company Name:</strong>
|
7
|
+
<%= @member_listing.mbcontactname %>
|
8
|
+
</p>
|
9
|
+
|
10
|
+
<p>
|
11
|
+
<strong>Address Line 1:</strong>
|
12
|
+
<%= @member_listing.mbaddressl1 %>
|
13
|
+
</p>
|
14
|
+
|
15
|
+
<p>
|
16
|
+
<strong>Address Line 2:</strong>
|
17
|
+
<%= @member_listing.mbaddressl2 %>
|
18
|
+
</p>
|
19
|
+
|
20
|
+
<p>
|
21
|
+
<strong>City:</strong>
|
22
|
+
<%= @member_listing.mbcity %>
|
23
|
+
</p>
|
24
|
+
|
25
|
+
<p>
|
26
|
+
<strong>Province:</strong>
|
27
|
+
<%= @member_listing.mbprovince %>
|
28
|
+
</p>
|
29
|
+
|
30
|
+
<p>
|
31
|
+
<strong>Country:</strong>
|
32
|
+
<%= @member_listing.mbcountry %>
|
33
|
+
</p>
|
34
|
+
|
35
|
+
<p>
|
36
|
+
<strong>Postal Code:</strong>
|
37
|
+
<%= @member_listing.mbpostalcode %>
|
38
|
+
</p>
|
39
|
+
|
40
|
+
<p>
|
41
|
+
<strong>Phone:</strong>
|
42
|
+
<%= @member_listing.mbphone %>
|
43
|
+
</p>
|
44
|
+
|
45
|
+
<p>
|
46
|
+
<strong>Email:</strong>
|
47
|
+
<%= @member_listing.mbcontactemail %>
|
48
|
+
</p>
|
data/app/views/phcmemberspro/{directory → member}/listings/components/_listing_audits.html.erb
RENAMED
@@ -11,7 +11,7 @@
|
|
11
11
|
</div>
|
12
12
|
<div class="cont-col2">
|
13
13
|
<div class="desc">
|
14
|
-
<strong>EVENT #<%= version.id %></strong> - <i> <%= l(version.created_at, format: "%-d/%m/%Y") %> </i>
|
14
|
+
<strong>EVENT #<%= version.id %></strong> - <i> <%= l(version.created_at, format: "%-d/%m/%Y") %> </i> - <%= version.event.capitalize %>
|
15
15
|
</div>
|
16
16
|
</div>
|
17
17
|
</div>
|
data/app/views/phcmemberspro/{directory → member}/listings/components/_listing_main.html.erb
RENAMED
@@ -5,16 +5,19 @@
|
|
5
5
|
<div class="portlet-title">
|
6
6
|
<div class="caption caption-md">
|
7
7
|
<i class="icon-globe theme-font hide"></i>
|
8
|
-
<span class="caption-subject font-blue-madison bold uppercase"
|
8
|
+
<span class="caption-subject font-blue-madison bold uppercase"><%= @members_profile_info.mfirstname + ' ' + @members_profile_info.mlastname %> Listing</span>
|
9
9
|
</div>
|
10
10
|
<div class="actions">
|
11
|
-
<%= link_to
|
12
|
-
<i class="fa fa-
|
11
|
+
<%= link_to edit_member_profile_address_path, class: "btn blue-chambray" do %>
|
12
|
+
<i class="fa fa-pencil-square-o"></i> Edit Profile
|
13
|
+
<% end %>
|
14
|
+
<%= link_to member_profile_address_path, class: "btn red-mint", method: :delete, data: { confirm: 'Are you sure you want to delete this listing?' } do %>
|
15
|
+
<i class="fa fa-trash-o"></i> Delete Profile
|
13
16
|
<% end %>
|
14
17
|
</div>
|
15
18
|
</div>
|
16
19
|
<div class="portlet-body">
|
17
|
-
<%= render 'phcmemberspro/
|
20
|
+
<%= render 'phcmemberspro/member/listings/components/listing_address' %>
|
18
21
|
</div>
|
19
22
|
</div>
|
20
23
|
</div>
|
@@ -24,13 +27,13 @@
|
|
24
27
|
<div class="portlet-title">
|
25
28
|
<div class="caption caption-md">
|
26
29
|
<i class="icon-globe theme-font hide"></i>
|
27
|
-
<span class="caption-subject font-blue-madison bold uppercase"
|
30
|
+
<span class="caption-subject font-blue-madison bold uppercase"><%= @members_profile_info.mfirstname + ' ' + @members_profile_info.mlastname %> Listing Change Log</span>
|
28
31
|
</div>
|
29
32
|
<div class="actions">
|
30
33
|
</div>
|
31
34
|
</div>
|
32
35
|
<div class="portlet-body">
|
33
|
-
<%= render 'phcmemberspro/
|
36
|
+
<%= render 'phcmemberspro/member/listings/components/listing_audits' %>
|
34
37
|
</div>
|
35
38
|
</div>
|
36
39
|
</div>
|
@@ -0,0 +1,41 @@
|
|
1
|
+
<!-- Title Variables -->
|
2
|
+
<% phc_title "Member Listing Manager" %>
|
3
|
+
<% phc_title_tagline "Update Listing for " + @members_profile_info.mfirstname + " " + @members_profile_info.mlastname %>
|
4
|
+
|
5
|
+
<!-- Page Header -->
|
6
|
+
<div class="page-bar">
|
7
|
+
<!-- Bread Crumb -->
|
8
|
+
<ul class="page-breadcrumb">
|
9
|
+
<li><%= link_to "Home", member_root_path %><i class="fa fa-circle"></i></li>
|
10
|
+
<li><%= link_to "Members List", member_profiles_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
|
+
<!-- Page Content -->
|
22
|
+
<div class="row">
|
23
|
+
<div class="col-lg-12">
|
24
|
+
|
25
|
+
<div class="portlet light">
|
26
|
+
|
27
|
+
<div class="portlet-title">
|
28
|
+
<div class="caption">
|
29
|
+
<span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
|
30
|
+
</div>
|
31
|
+
<div class="actions">
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div class="portlet-body">
|
36
|
+
<%= render 'form', { form_url: member_profile_listing_path } %>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
|
40
|
+
</div>
|
41
|
+
</div>
|
@@ -0,0 +1,74 @@
|
|
1
|
+
<!-- Title Variables -->
|
2
|
+
<% phc_title "Member Listings Manager" %>
|
3
|
+
<% phc_title_tagline "Listing Index for " + @members_profile_info.mfirstname + " " + @members_profile_info.mlastname %>
|
4
|
+
|
5
|
+
<!-- Page Header -->
|
6
|
+
<div class="page-bar">
|
7
|
+
<!-- Bread Crumb -->
|
8
|
+
<ul class="page-breadcrumb">
|
9
|
+
<li><%= link_to "Dashboard", member_root_path %></li>
|
10
|
+
<li><%= link_to "Member Profile List", member_profiles_path %></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
|
+
<!-- Page Content -->
|
22
|
+
<div class="row">
|
23
|
+
<div class="col-lg-12">
|
24
|
+
|
25
|
+
<div class="portlet light">
|
26
|
+
|
27
|
+
<div class="portlet-title">
|
28
|
+
<div class="caption">
|
29
|
+
<span class="caption-subject bold uppercase">Members Address List</span>
|
30
|
+
</div>
|
31
|
+
<div class="actions">
|
32
|
+
<%= link_to new_member_profile_listing_path, class: "btn blue-chambray" do %>
|
33
|
+
<i class="fa fa-plus"></i> Add a Listing for <%= @members_profile_info.mfirstname + ' ' + @members_profile_info.mlastname %>
|
34
|
+
<% end %>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
<div class="portlet-body">
|
39
|
+
<div class="table-responsive">
|
40
|
+
<table class="table table-striped table-bordered table-hover table-header-fixed">
|
41
|
+
|
42
|
+
<thead class="thead-inverse">
|
43
|
+
<tr>
|
44
|
+
<th>Company Name</th>
|
45
|
+
<th>Conact Name</th>
|
46
|
+
<th>City</th>
|
47
|
+
<th>Country</th>
|
48
|
+
<th>Listing Phone</th>
|
49
|
+
<th>Listing Email</th>
|
50
|
+
<th>Listing Website</th>
|
51
|
+
</tr>
|
52
|
+
</thead>
|
53
|
+
|
54
|
+
<tbody>
|
55
|
+
<% @member_listings.each do |member_listing| %>
|
56
|
+
<tr>
|
57
|
+
<td class="highlight"><%= link_to member_listing.mbcompanyname, member_profile_listing_path(member_listing.profile, member_listing) %></td>
|
58
|
+
<td class="highlight"><%= link_to member_listing.mbcontactname, member_profile_listing_path(member_listing.profile, member_listing) %></td>
|
59
|
+
<td class="highlight"><%= link_to member_listing.mbcity, member_profile_listing_path(member_listing.profile, member_listing) %></td>
|
60
|
+
<td class="highlight"><%= link_to member_listing.mbcountry, member_profile_listing_path(member_listing.profile, member_listing) %></td>
|
61
|
+
<td class="highlight"><%= link_to member_listing.mbphone, member_profile_listing_path(member_listing.profile, member_listing) %></td>
|
62
|
+
<td class="highlight"><%= link_to member_listing.mbcontactemail, member_profile_listing_path(member_listing.profile, member_listing) %></td>
|
63
|
+
<td class="highlight"><%= link_to member_listing.mbwebsite, member_profile_listing_path(member_listing.profile, member_listing) %></td>
|
64
|
+
</tr>
|
65
|
+
<% end %>
|
66
|
+
</tbody>
|
67
|
+
|
68
|
+
</table>
|
69
|
+
</div>
|
70
|
+
</div>
|
71
|
+
</div>
|
72
|
+
|
73
|
+
</div>
|
74
|
+
</div>
|
@@ -0,0 +1,41 @@
|
|
1
|
+
<!-- Title Variables -->
|
2
|
+
<% phc_title "Member Listing Manager" %>
|
3
|
+
<% phc_title_tagline "Create a New Listing for " + @members_profile_info.mfirstname + " " + @members_profile_info.mlastname %>
|
4
|
+
|
5
|
+
<!-- Page Header -->
|
6
|
+
<div class="page-bar">
|
7
|
+
<!-- Bread Crumb -->
|
8
|
+
<ul class="page-breadcrumb">
|
9
|
+
<li><%= link_to "Home", member_root_path %><i class="fa fa-circle"></i></li>
|
10
|
+
<li><%= link_to "Members List", member_profiles_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
|
+
<!-- Page Content -->
|
22
|
+
<div class="row">
|
23
|
+
<div class="col-lg-12">
|
24
|
+
|
25
|
+
<div class="portlet light">
|
26
|
+
|
27
|
+
<div class="portlet-title">
|
28
|
+
<div class="caption">
|
29
|
+
<span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
|
30
|
+
</div>
|
31
|
+
<div class="actions">
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div class="portlet-body">
|
36
|
+
<%= render 'form', { form_url: member_profile_listings_path } %>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
|
40
|
+
</div>
|
41
|
+
</div>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<!-- Title Variables -->
|
2
|
+
<% phc_title "Member Address Manager" %>
|
3
|
+
<% phc_title_tagline "Detailed Address Information for " + @members_profile_info.mfirstname + " " + @members_profile_info.mlastname %>
|
4
|
+
|
5
|
+
<!-- Page Header -->
|
6
|
+
<div class="page-bar">
|
7
|
+
<!-- Bread Crumb -->
|
8
|
+
<ul class="page-breadcrumb">
|
9
|
+
<li><%= link_to "Home", member_root_path %><i class="fa fa-circle"></i></li>
|
10
|
+
<li><%= link_to "Members List", member_profiles_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
|
+
<!-- Page Content -->
|
22
|
+
<div class="row">
|
23
|
+
<%= render 'phcmemberspro/member/listings/components/listing_main' %>
|
24
|
+
</div>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<%= form_for(member_profile) do |f| %>
|
2
|
+
|
3
|
+
<!-- PHC-Notifi Render Validation -->
|
4
|
+
<%= render 'phcnotifi/validations', :object => @member_profile %>
|
5
|
+
|
6
|
+
<div class="form-group field_with_errors">
|
7
|
+
<%= f.label :mfirstname, "First Name*" %>
|
8
|
+
<%= f.text_field :mfirstname, class: 'form-control', placeholder: 'First Name' %>
|
9
|
+
</div>
|
10
|
+
<div class="form-group field_with_errors">
|
11
|
+
<%= f.label :mlastname, "Last Name*" %>
|
12
|
+
<%= f.text_field :mlastname, class: 'form-control', placeholder: 'Last Name' %>
|
13
|
+
</div>
|
14
|
+
<div class="form-group field_with_errors">
|
15
|
+
<%= f.label :mtitle, "Job Title" %>
|
16
|
+
<%= f.text_field :mtitle, class: 'form-control', placeholder: 'Job Title/Salutation' %>
|
17
|
+
</div>
|
18
|
+
<div class="form-group field_with_errors">
|
19
|
+
<%= f.label :memail, "Contact Email Address*" %>
|
20
|
+
<%= f.text_field :memail, class: 'form-control', placeholder: 'Contact Email (Will Remain Private)' %>
|
21
|
+
</div>
|
22
|
+
<div class="form-group field_with_errors">
|
23
|
+
<%= f.label :mphone, "Contact Phone Number*" %>
|
24
|
+
<%= f.text_field :mphone, class: 'form-control masked', placeholder: 'Contact Phone Number (Will Remain Private)', data: {format: '(999) 999-9999', placeholder: 'x'} %>
|
25
|
+
</div>
|
26
|
+
|
27
|
+
<div class="actions">
|
28
|
+
<%= f.submit class: "btn btn-primary" %>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<% end %>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<table class="table table-striped table-bordered table-advance table-hover">
|
2
|
+
<thead>
|
3
|
+
<tr>
|
4
|
+
<th>Address Line 1</th>
|
5
|
+
<th>City</th>
|
6
|
+
<th>Province</th>
|
7
|
+
<th>Type</th>
|
8
|
+
</tr>
|
9
|
+
</thead>
|
10
|
+
<tbody>
|
11
|
+
<% @member_profile.addresses.each do |members_main_address| %>
|
12
|
+
<tr>
|
13
|
+
<td class="highlight"><%= members_main_address.mcaddressl1 %></td>
|
14
|
+
<td class="highlight"><%= members_main_address.mccity %></td>
|
15
|
+
<td class="highlight"><%= members_main_address.mcprovince %></td>
|
16
|
+
<td class="highlight"><%= members_main_address.mctype %></td>
|
17
|
+
</tr>
|
18
|
+
<% end %>
|
19
|
+
</tbody>
|
20
|
+
</table>
|
data/app/views/phcmemberspro/{members/mains → member/profiles}/components/_profile_audits.html.erb
RENAMED
@@ -11,7 +11,7 @@
|
|
11
11
|
</div>
|
12
12
|
<div class="cont-col2">
|
13
13
|
<div class="desc">
|
14
|
-
<strong>EVENT #<%= version.id %></strong> - <i> <%= l(version.created_at, format: "%-d/%m/%Y") %> </i> - <%= version.event.capitalize %> - <%= @
|
14
|
+
<strong>EVENT #<%= version.id %></strong> - <i> <%= l(version.created_at, format: "%-d/%m/%Y") %> </i> - <%= version.event.capitalize %> - <%= @member_profile.mfirstname + ' ' + @member_profile.mlastname %> - Information
|
15
15
|
</div>
|
16
16
|
</div>
|
17
17
|
</div>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<table class="table table-striped table-bordered table-advance table-hover">
|
2
|
+
<thead>
|
3
|
+
<tr>
|
4
|
+
<th>Company Name</th>
|
5
|
+
<th>Conact Name</th>
|
6
|
+
<th>City</th>
|
7
|
+
<th>Business Phone</th>
|
8
|
+
</tr>
|
9
|
+
</thead>
|
10
|
+
<tbody>
|
11
|
+
<% @member_profile.listings.each do |member_profile_listing| %>
|
12
|
+
<tr>
|
13
|
+
<td class="highlight"><%= member_profile_listing.mbcompanyname %></td>
|
14
|
+
<td class="highlight"><%= member_profile_listing.mbcontactname %></td>
|
15
|
+
<td class="highlight"><%= member_profile_listing.mbcity %></td>
|
16
|
+
<td class="highlight"><%= member_profile_listing.mbphone %></td>
|
17
|
+
</tr>
|
18
|
+
<% end %>
|
19
|
+
</tbody>
|
20
|
+
</table>
|
data/app/views/phcmemberspro/{members/mains → member/profiles}/components/_profile_main.html.erb
RENAMED
@@ -6,13 +6,13 @@
|
|
6
6
|
<div class="portlet-title">
|
7
7
|
<div class="caption caption-md">
|
8
8
|
<i class="icon-globe theme-font hide"></i>
|
9
|
-
<span class="caption-subject font-blue-madison bold uppercase"><%= @
|
9
|
+
<span class="caption-subject font-blue-madison bold uppercase"><%= @member_profile.mfirstname + ' ' + @member_profile.mlastname %> Addresses</span>
|
10
10
|
</div>
|
11
11
|
<div class="actions">
|
12
12
|
</div>
|
13
13
|
</div>
|
14
14
|
<div class="portlet-body">
|
15
|
-
<%= render 'phcmemberspro/
|
15
|
+
<%= render 'phcmemberspro/member/profiles/components/profile_addresses_table' %>
|
16
16
|
</div>
|
17
17
|
</div>
|
18
18
|
|
@@ -20,13 +20,13 @@
|
|
20
20
|
<div class="portlet-title">
|
21
21
|
<div class="caption caption-md">
|
22
22
|
<i class="icon-globe theme-font hide"></i>
|
23
|
-
<span class="caption-subject font-blue-madison bold uppercase"><%= @
|
23
|
+
<span class="caption-subject font-blue-madison bold uppercase"><%= @member_profile.mfirstname + ' ' + @member_profile.mlastname %> Listings</span>
|
24
24
|
</div>
|
25
25
|
<div class="actions">
|
26
26
|
</div>
|
27
27
|
</div>
|
28
28
|
<div class="portlet-body">
|
29
|
-
<%= render 'phcmemberspro/
|
29
|
+
<%= render 'phcmemberspro/member/profiles/components/profile_listings_table' %>
|
30
30
|
</div>
|
31
31
|
</div>
|
32
32
|
|
@@ -37,13 +37,13 @@
|
|
37
37
|
<div class="portlet-title">
|
38
38
|
<div class="caption caption-md">
|
39
39
|
<i class="icon-globe theme-font hide"></i>
|
40
|
-
<span class="caption-subject font-blue-madison bold uppercase"><%= @
|
40
|
+
<span class="caption-subject font-blue-madison bold uppercase"><%= @member_profile.mfirstname + ' ' + @member_profile.mlastname %> Change Log</span>
|
41
41
|
</div>
|
42
42
|
<div class="actions">
|
43
43
|
</div>
|
44
44
|
</div>
|
45
45
|
<div class="portlet-body">
|
46
|
-
<%= render 'phcmemberspro/
|
46
|
+
<%= render 'phcmemberspro/member/profiles/components/profile_audits' %>
|
47
47
|
</div>
|
48
48
|
</div>
|
49
49
|
</div>
|