phcmemberspro 91.4.0 → 92.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +4 -4
- data/Rakefile +4 -18
- data/app/assets/config/phcmemberspro_manifest.js +2 -2
- data/app/controllers/phcmemberspro/api/v1/listings_controller.rb +1 -1
- data/app/controllers/phcmemberspro/application_controller.rb +4 -5
- 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 -1
- data/app/controllers/phcmemberspro/member/profiles_controller.rb +1 -1
- data/app/views/layouts/phcmemberspro/application.html.erb +58 -64
- data/app/views/layouts/phcmemberspro/components/backend/footer/_footer.html.erb +14 -6
- data/app/views/layouts/phcmemberspro/components/backend/navigation/_top_menu.html.erb +34 -30
- data/app/views/layouts/phcmemberspro/components/backend/sidebars/_side_menu.html.erb +919 -187
- data/app/views/layouts/phcmemberspro/member_profile.html.erb +58 -64
- data/app/views/phcmemberspro/directory/categories/_form.html.erb +12 -12
- data/app/views/phcmemberspro/directory/categories/components/_category_main.html.erb +20 -16
- data/app/views/phcmemberspro/directory/categories/components/_category_sidebar.html.erb +4 -1
- data/app/views/phcmemberspro/directory/categories/edit.html.erb +21 -17
- data/app/views/phcmemberspro/directory/categories/index.html.erb +26 -25
- data/app/views/phcmemberspro/directory/categories/new.html.erb +21 -17
- data/app/views/phcmemberspro/directory/categories/show.html.erb +11 -11
- data/app/views/phcmemberspro/member/addresses/_form.html.erb +30 -30
- data/app/views/phcmemberspro/member/addresses/components/_address_audits_table.html.erb +1 -1
- data/app/views/phcmemberspro/member/addresses/components/_address_main.html.erb +2 -2
- data/app/views/phcmemberspro/member/addresses/edit.html.erb +20 -16
- data/app/views/phcmemberspro/member/addresses/index.html.erb +29 -29
- data/app/views/phcmemberspro/member/addresses/new.html.erb +20 -16
- data/app/views/phcmemberspro/member/addresses/show.html.erb +18 -24
- data/app/views/phcmemberspro/member/listings/_form.html.erb +43 -43
- data/app/views/phcmemberspro/member/listings/components/_listing_audits_table.html.erb +1 -1
- data/app/views/phcmemberspro/member/listings/components/_listing_main.html.erb +2 -2
- data/app/views/phcmemberspro/member/listings/edit.html.erb +20 -16
- data/app/views/phcmemberspro/member/listings/index.html.erb +28 -29
- data/app/views/phcmemberspro/member/listings/new.html.erb +18 -16
- data/app/views/phcmemberspro/member/listings/show.html.erb +18 -24
- data/app/views/phcmemberspro/member/profiles/_form.html.erb +27 -27
- data/app/views/phcmemberspro/member/profiles/components/_profile_audits_table.html.erb +1 -1
- data/app/views/phcmemberspro/member/profiles/components/_profile_header.html.erb +25 -25
- data/app/views/phcmemberspro/member/profiles/components/_profile_sidebar.html.erb +15 -15
- data/app/views/phcmemberspro/member/profiles/edit.html.erb +21 -17
- data/app/views/phcmemberspro/member/profiles/index.html.erb +30 -30
- data/app/views/phcmemberspro/member/profiles/new.html.erb +21 -17
- data/app/views/phcmemberspro/member/profiles/show.html.erb +19 -31
- data/config/routes.rb +21 -24
- data/db/migrate/20160728230720_create_phcmemberspro_directory_categories.rb +17 -0
- data/db/migrate/20160728230901_create_phcmemberspro_member_addresses.rb +26 -0
- data/db/migrate/20160728231011_create_phcmemberspro_member_listings.rb +30 -0
- data/db/migrate/20160728231036_create_phcmemberspro_member_profiles.rb +23 -0
- data/db/migrate/20170509002355_create_phcmemberspro_friendly_id_slugs.rb +20 -0
- data/db/migrate/20170517064030_create_phcmemberspro_profile_versions.rb +19 -0
- data/db/migrate/20170517064049_create_phcmemberspro_listing_versions.rb +19 -0
- data/db/migrate/20170517064114_create_phcmemberspro_address_versions.rb +19 -0
- data/db/migrate/20170517064427_create_phcmemberspro_category_versions.rb +19 -0
- data/db/migrate/20190317215659_create_join_table_categories_listings.rb +12 -0
- data/lib/phcmemberspro/engine.rb +42 -68
- data/lib/phcmemberspro/version.rb +1 -1
- data/lib/phcmemberspro.rb +2 -0
- metadata +71 -392
- data/app/assets/javascripts/phcmemberspro/application.js +0 -2
- data/app/assets/stylesheets/phcmemberspro/application.scss +0 -2
- data/app/views/layouts/phcmemberspro/mailer.html.erb +0 -11
- data/app/views/layouts/phcmemberspro/mailer.text.erb +0 -1
@@ -1,79 +1,73 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html>
|
3
|
-
<head>
|
3
|
+
<head>
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
<!-- SEO System -->
|
6
|
+
<% phc_seo_title "PHCDevworks Members" %>
|
7
|
+
<% phc_seo_description "Ruby on Rails 7 Engine to Organize Members and Manage an Online Members Directory & Listings." %>
|
8
|
+
<!-- SEO System -->
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
<!-- SEO and Site Description -->
|
10
|
+
<!-- SEO and Site Description -->
|
11
|
+
<meta charset="utf-8">
|
12
|
+
<title><%= yield(:phc_seo_title) %></title>
|
13
|
+
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
|
14
|
+
<meta name="description" content="<%= yield(:phc_seo_description) %>">
|
15
|
+
<!-- SEO and Site Description -->
|
17
16
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
17
|
+
<!-- Rails Security Tags -->
|
18
|
+
<%= csrf_meta_tags %>
|
19
|
+
<%= csp_meta_tag %>
|
20
|
+
<!-- Rails Security Tags -->
|
22
21
|
|
23
|
-
|
24
|
-
|
25
|
-
|
22
|
+
<!-- CSS Styles -->
|
23
|
+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
|
24
|
+
<%= stylesheet_link_tag "coloradmin/default/phcthemes_admin_panel_pack_coloradmin", media: "all" %>
|
25
|
+
<!-- CSS Styles -->
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
<!-- Font -->
|
27
|
+
</head>
|
28
|
+
<body>
|
30
29
|
|
31
|
-
|
32
|
-
<
|
30
|
+
<!-- -PHCDEV- Page Container -->
|
31
|
+
<div id="app" class="app app-header-fixed app-sidebar-fixed app-with-wide-sidebar">
|
33
32
|
|
34
|
-
|
35
|
-
|
33
|
+
<!-- -PHCDEV- Page Container - Header -->
|
34
|
+
<div id="header" class="app-header">
|
35
|
+
<%= render "layouts/phcmemberspro/components/backend/navigation/top_menu" %>
|
36
|
+
</div>
|
37
|
+
<!-- -PHCDEV- Page Container - Header -->
|
36
38
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
39
|
+
<!-- -PHCDEV- Page Container - Sidebar -->
|
40
|
+
<div id="sidebar" class="app-sidebar" data-disable-slide-animation="true">
|
41
|
+
<%= render "layouts/phcmemberspro/components/backend/sidebars/side_menu" %>
|
42
|
+
</div>
|
43
|
+
<div class="app-sidebar-bg"></div>
|
44
|
+
<div class="app-sidebar-mobile-backdrop"><a href="#" data-dismiss="app-sidebar-mobile" class="stretched-link"></a></div>
|
45
|
+
<!-- -PHCDEV- Page Container - Sidebar -->
|
42
46
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
47
|
+
<!-- -PHCDEV- Page Container - Content -->
|
48
|
+
<div id="app" class="app app-content-full-height">
|
49
|
+
<div id="content" class="app-content d-flex flex-column p-0">
|
50
|
+
<!-- -PHCDEV- Page Container - Main -->
|
51
|
+
<div class="flex-grow-1 overflow-hidden" data-scrollbar="true" data-height="100%">
|
52
|
+
<%= render "phcdevworks_notifications/bootstrap/notifications" %>
|
53
|
+
<%= yield %>
|
54
|
+
</div>
|
55
|
+
<!-- -PHCDEV- Page Container - Main -->
|
56
|
+
<!-- -PHCDEV- Page Container - Footer -->
|
57
|
+
<div id="footer" class="app-footer m-0">
|
58
|
+
<%= render "layouts/phcmemberspro/components/backend/footer/footer" %>
|
59
|
+
</div>
|
60
|
+
<!-- -PHCDEV- Page Container - Footer -->
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
<!-- -PHCDEV- Page Container - Content -->
|
49
64
|
|
50
|
-
|
51
|
-
|
52
|
-
<%= render 'phcnotifi/default/notifications' %>
|
53
|
-
<%= yield %>
|
54
|
-
</div>
|
55
|
-
<!-- Page Content -->
|
65
|
+
</div>
|
66
|
+
<!-- -PHCDEV- Page Container -->
|
56
67
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
</div>
|
61
|
-
<!-- Footer Content -->
|
68
|
+
<!-- JavaScript -->
|
69
|
+
<%= javascript_include_tag "coloradmin/phcthemes_admin_panel_pack_coloradmin" %>
|
70
|
+
<!-- JavaScript -->
|
62
71
|
|
63
|
-
|
64
|
-
<!-- Page Container -->
|
65
|
-
|
66
|
-
<!-- JavaScript -->
|
67
|
-
<%= javascript_include_tag "phcmemberspro/application", 'data-turbolinks-track': 'reload' %>
|
68
|
-
<!-- JavaScript -->
|
69
|
-
|
70
|
-
<!-- JavaScript Loader -->
|
71
|
-
<script>
|
72
|
-
$(document).ready(function() {
|
73
|
-
App.init();
|
74
|
-
});
|
75
|
-
</script>
|
76
|
-
<!-- JavaScript Loader -->
|
77
|
-
|
78
|
-
</body>
|
72
|
+
</body>
|
79
73
|
</html>
|
@@ -1,22 +1,22 @@
|
|
1
|
-
<!-- Form - Directory - Category -->
|
1
|
+
<!-- -PHCDEV- Form - Directory - Category -->
|
2
2
|
<%= form_with(model: @directory_category, local: true) do |form| %>
|
3
3
|
|
4
|
-
<!--
|
5
|
-
<%= render
|
6
|
-
<!--
|
4
|
+
<!-- -PHCDEV- Form Validation -->
|
5
|
+
<%= render "phcdevworks_notifications/bootstrap/validations", :object => @directory_category %>
|
6
|
+
<!-- -PHCDEV- Form Validation -->
|
7
7
|
|
8
|
-
<!-- Form Input Fields -->
|
9
|
-
<div class="
|
10
|
-
<%= form.label :category_name, "Category Name" %>
|
11
|
-
<%= form.text_field :category_name,
|
8
|
+
<!-- -PHCDEV- Form Input Fields -->
|
9
|
+
<div class="mb-3">
|
10
|
+
<%= form.label :category_name, "Category Name", class: "form-label" %>
|
11
|
+
<%= form.text_field :category_name, placeholder: "Directory Category", class: "form-control" %>
|
12
12
|
</div>
|
13
|
-
<!-- Form Input Fields -->
|
13
|
+
<!-- -PHCDEV- Form Input Fields -->
|
14
14
|
|
15
|
-
<!-- Form Submition Button -->
|
15
|
+
<!-- -PHCDEV- Form Submition Button -->
|
16
16
|
<div class="actions">
|
17
17
|
<%= form.submit class: "btn btn-primary btn-md" %>
|
18
18
|
</div>
|
19
|
-
<!--
|
19
|
+
<!-- -PHCDEV- Form Submition Button -->
|
20
20
|
|
21
21
|
<% end %>
|
22
|
-
<!-- Form - Directory - Category -->
|
22
|
+
<!-- -PHCDEV- Form - Directory - Category -->
|
@@ -1,31 +1,35 @@
|
|
1
|
-
<!--
|
1
|
+
<!-- -PHCDEV- Panel -->
|
2
2
|
<div class="panel panel-inverse">
|
3
|
+
|
4
|
+
<!-- -PHCDEV- Panel - Heading -->
|
3
5
|
<div class="panel-heading">
|
4
|
-
<div class="panel-heading-btn">
|
5
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
|
6
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
|
7
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
|
8
|
-
</div>
|
9
6
|
<h4 class="panel-title">Active Listings in <%= @directory_category.category_name %> Directory Category</h4>
|
10
7
|
</div>
|
8
|
+
<!-- -PHCDEV- Panel - Heading -->
|
9
|
+
|
10
|
+
<!-- -PHCDEV- Panel - Body -->
|
11
11
|
<div class="panel-body">
|
12
|
-
<%= render
|
12
|
+
<%= render "phcmemberspro/directory/categories/components/category_list" %>
|
13
13
|
</div>
|
14
|
+
<!-- -PHCDEV- Panel - Body -->
|
15
|
+
|
14
16
|
</div>
|
15
|
-
<!--
|
17
|
+
<!-- -PHCDEV- Panel -->
|
16
18
|
|
17
|
-
<!--
|
19
|
+
<!-- -PHCDEV- Panel -->
|
18
20
|
<div class="panel panel-inverse">
|
21
|
+
|
22
|
+
<!-- -PHCDEV- Panel - Heading -->
|
19
23
|
<div class="panel-heading">
|
20
|
-
<div class="panel-heading-btn">
|
21
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
|
22
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
|
23
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
|
24
|
-
</div>
|
25
24
|
<h4 class="panel-title">Active Listings in <%= @directory_category.category_name %> Directory Category Change Log</h4>
|
26
25
|
</div>
|
26
|
+
<!-- -PHCDEV- Panel - Heading -->
|
27
|
+
|
28
|
+
<!-- -PHCDEV- Panel - Body -->
|
27
29
|
<div class="panel-body">
|
28
|
-
<%= render
|
30
|
+
<%= render "phcmemberspro/directory/categories/components/category_audits" %>
|
29
31
|
</div>
|
32
|
+
<!-- -PHCDEV- Panel - Body -->
|
33
|
+
|
30
34
|
</div>
|
31
|
-
<!--
|
35
|
+
<!-- -PHCDEV- Panel -->
|
@@ -2,13 +2,16 @@
|
|
2
2
|
<div class="panel-heading">
|
3
3
|
<h4 class="panel-title text-center">Directory Category Options</h4>
|
4
4
|
</div>
|
5
|
+
<!-- -PHCDEV- Panel - Heading -->
|
6
|
+
|
7
|
+
<!-- -PHCDEV- Panel - Body -->
|
5
8
|
<div class="panel-body">
|
6
9
|
<h4 class="text-center mb-3"><%= @directory_category.category_name %></h4>
|
7
10
|
<div class="text-center">
|
8
11
|
<%= link_to edit_directory_category_path(@directory_category), class: "btn btn-sm btn-primary" do %>
|
9
12
|
<i class="fa fa-pencil-square-o"></i> Update
|
10
13
|
<% end %>
|
11
|
-
<%= link_to @directory_category, method: :delete, data: { confirm:
|
14
|
+
<%= link_to @directory_category, method: :delete, data: { confirm: "Are you sure? You will also remove all listing connections to that category. The category will also be removed from your online web directory." }, class: "btn btn-sm btn-danger" do %>
|
12
15
|
<i class="fa fa-trash-o"></i> Delete
|
13
16
|
<% end %>
|
14
17
|
</div>
|
@@ -1,37 +1,41 @@
|
|
1
|
-
<!-- Title
|
1
|
+
<!-- -PHCDEV- Title Variables -->
|
2
2
|
<% phc_title "Directory Category Manager" %>
|
3
3
|
<% phc_title_tagline "Edit " + @directory_category.category_name + " Category Name" %>
|
4
4
|
<% phc_breadcrumb_one link_to "Dashboard", phcmemberspro.dashboard_path %>
|
5
5
|
<% phc_breadcrumb_two link_to "Directory Category Index", phcmemberspro.directory_categories_path %>
|
6
6
|
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
-
<!-- Title
|
7
|
+
<!-- -PHCDEV- Title Variables -->
|
8
8
|
|
9
|
-
<!--
|
10
|
-
<ol class="breadcrumb
|
9
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
10
|
+
<ol class="breadcrumb float-xl-end">
|
11
11
|
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
12
|
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
13
|
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
14
|
</ol>
|
15
|
-
<!--
|
15
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
16
16
|
|
17
|
-
<!--
|
17
|
+
<!-- -PHCDEV- Header -->
|
18
18
|
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
19
|
-
<!--
|
19
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
20
20
|
|
21
|
-
<!--
|
21
|
+
<!-- -PHCDEV- Panel -->
|
22
22
|
<div class="panel panel-inverse">
|
23
|
+
|
24
|
+
<!-- -PHCDEV- Panel - Heading -->
|
23
25
|
<div class="panel-heading">
|
24
|
-
<div class="panel-heading-btn">
|
25
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
|
26
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
|
27
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
|
28
|
-
</div>
|
29
26
|
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
30
27
|
</div>
|
28
|
+
<!-- -PHCDEV- Panel - Heading -->
|
29
|
+
|
30
|
+
<!-- -PHCDEV- Panel - Body -->
|
31
31
|
<div class="panel-body">
|
32
|
-
|
33
|
-
|
34
|
-
|
32
|
+
|
33
|
+
<!-- -PHCDEV- Form to Edit Directory Category -->
|
34
|
+
<%= render "form", directory_category: @directory_category %>
|
35
|
+
<!-- -PHCDEV- Form to Edit Directory Category -->
|
36
|
+
|
35
37
|
</div>
|
38
|
+
<!-- -PHCDEV- Panel - Body -->
|
39
|
+
|
36
40
|
</div>
|
37
|
-
<!--
|
41
|
+
<!-- -PHCDEV- Panel -->
|
@@ -1,35 +1,33 @@
|
|
1
|
-
<!-- Title
|
1
|
+
<!-- -PHCDEV- Title Variables -->
|
2
2
|
<% phc_title "Directory Category Manager" %>
|
3
3
|
<% phc_title_tagline "Web Directory Category Index" %>
|
4
4
|
<% phc_breadcrumb_one link_to "Dashboard", phcmemberspro.dashboard_path %>
|
5
5
|
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!-- Title
|
6
|
+
<!-- -PHCDEV- Title Variables -->
|
7
7
|
|
8
|
-
<!--
|
9
|
-
<ol class="breadcrumb
|
10
|
-
|
11
|
-
|
8
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
9
|
+
<ol class="breadcrumb float-xl-end">
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
12
|
</ol>
|
13
|
-
<!--
|
13
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
14
14
|
|
15
|
-
<!--
|
15
|
+
<!-- -PHCDEV- Header -->
|
16
16
|
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
17
|
-
<!--
|
17
|
+
<!-- -PHCDEV- Header -->
|
18
18
|
|
19
|
-
<!--
|
19
|
+
<!-- -PHCDEV- Panel -->
|
20
20
|
<div class="panel panel-inverse">
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
<!-- Panel Body -->
|
32
|
-
<div class="panel-body">
|
21
|
+
|
22
|
+
<!-- -PHCDEV- Panel - Heading -->
|
23
|
+
<div class="panel-heading">
|
24
|
+
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
|
25
|
+
</div>
|
26
|
+
<!-- -PHCDEV- Panel - Heading -->
|
27
|
+
|
28
|
+
<!-- -PHCDEV- Panel - Body -->
|
29
|
+
<div class="panel-body">
|
30
|
+
|
33
31
|
<!-- Un-Ordered List - Listing Categories -->
|
34
32
|
<ul class="list-group">
|
35
33
|
<% @directory_categories.each do |directory_category| %>
|
@@ -39,6 +37,7 @@
|
|
39
37
|
</li>
|
40
38
|
<% end %>
|
41
39
|
</ul>
|
40
|
+
|
42
41
|
<!-- Un-Ordered List - Listing Categories -->
|
43
42
|
<br>
|
44
43
|
<%= link_to phcmemberspro.new_directory_category_path, class: "btn btn-primary" do %>
|
@@ -46,7 +45,9 @@
|
|
46
45
|
<%= "Add a New Directory Category" %>
|
47
46
|
<% end %>
|
48
47
|
<!-- Un-Ordered List - Listing Categories -->
|
49
|
-
|
50
|
-
|
48
|
+
|
49
|
+
</div>
|
50
|
+
<!-- -PHCDEV- Panel - Body -->
|
51
|
+
|
51
52
|
</div>
|
52
|
-
<!--
|
53
|
+
<!-- -PHCDEV- Panel -->
|
@@ -1,37 +1,41 @@
|
|
1
|
-
<!-- Title
|
1
|
+
<!-- -PHCDEV- Title Variables -->
|
2
2
|
<% phc_title "Directory Category Manager" %>
|
3
3
|
<% phc_title_tagline "Create a New Directory Category" %>
|
4
4
|
<% phc_breadcrumb_one link_to "Dashboard", phcmemberspro.dashboard_path %>
|
5
5
|
<% phc_breadcrumb_two link_to "Directory Category Index", phcmemberspro.directory_categories_path %>
|
6
6
|
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
-
<!-- Title
|
7
|
+
<!-- -PHCDEV- Title Variables -->
|
8
8
|
|
9
|
-
<!--
|
10
|
-
<ol class="breadcrumb
|
9
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
10
|
+
<ol class="breadcrumb float-xl-end">
|
11
11
|
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
12
|
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
13
|
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
14
|
</ol>
|
15
|
-
<!--
|
15
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
16
16
|
|
17
|
-
<!--
|
17
|
+
<!-- -PHCDEV- Header -->
|
18
18
|
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
19
|
-
<!--
|
19
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
20
20
|
|
21
|
-
<!--
|
21
|
+
<!-- -PHCDEV- Panel -->
|
22
22
|
<div class="panel panel-inverse">
|
23
|
+
|
24
|
+
<!-- -PHCDEV- Panel - Heading -->
|
23
25
|
<div class="panel-heading">
|
24
|
-
<div class="panel-heading-btn">
|
25
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
|
26
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
|
27
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
|
28
|
-
</div>
|
29
26
|
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
30
27
|
</div>
|
28
|
+
<!-- -PHCDEV- Panel - Heading -->
|
29
|
+
|
30
|
+
<!-- -PHCDEV- Panel - Body -->
|
31
31
|
<div class="panel-body">
|
32
|
-
|
33
|
-
|
34
|
-
|
32
|
+
|
33
|
+
<!-- -PHCDEV- Form for New Directory Category -->
|
34
|
+
<%= render "form", directory_category: @directory_category %>
|
35
|
+
<!-- -PHCDEV- Form for New Directory Category -->
|
36
|
+
|
35
37
|
</div>
|
38
|
+
<!-- -PHCDEV- Panel - Body -->
|
39
|
+
|
36
40
|
</div>
|
37
|
-
<!--
|
41
|
+
<!-- -PHCDEV- Panel -->
|
@@ -1,30 +1,30 @@
|
|
1
|
-
<!-- Title
|
1
|
+
<!-- -PHCDEV- Title Variables -->
|
2
2
|
<% phc_title "Directory Category Manager" %>
|
3
3
|
<% phc_title_tagline "Detailed Information for " + @directory_category.category_name %>
|
4
4
|
<% phc_breadcrumb_one link_to "Dashboard", phcmemberspro.dashboard_path %>
|
5
5
|
<% phc_breadcrumb_two link_to "Directory Category Index", phcmemberspro.directory_categories_path %>
|
6
6
|
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
-
<!-- Title
|
7
|
+
<!-- -PHCDEV- Title Variables -->
|
8
8
|
|
9
|
-
<!--
|
10
|
-
<ol class="breadcrumb
|
9
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
10
|
+
<ol class="breadcrumb float-xl-end">
|
11
11
|
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
12
|
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
13
|
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
14
|
</ol>
|
15
|
-
<!--
|
15
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
16
16
|
|
17
|
-
<!--
|
17
|
+
<!-- -PHCDEV- Header -->
|
18
18
|
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
19
|
-
<!--
|
19
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
20
20
|
|
21
|
-
<!--
|
21
|
+
<!-- -PHCDEV- Panel -->
|
22
22
|
<div class="row">
|
23
23
|
<div class="col-lg-3">
|
24
|
-
<%= render
|
24
|
+
<%= render "phcmemberspro/directory/categories/components/category_sidebar" %>
|
25
25
|
</div>
|
26
26
|
<div class="col-lg-9">
|
27
|
-
<%= render
|
27
|
+
<%= render "phcmemberspro/directory/categories/components/category_main" %>
|
28
28
|
</div>
|
29
29
|
</div>
|
30
|
-
<!--
|
30
|
+
<!-- -PHCDEV- Panel -->
|
@@ -1,46 +1,46 @@
|
|
1
|
-
<!-- Form - Member - Address -->
|
1
|
+
<!-- -PHCDEV- Form - Member - Address -->
|
2
2
|
<%= form_with(model: [ @member_profile, @member_address], url: form_url, local: true) do |form| %>
|
3
3
|
|
4
|
-
<!--
|
5
|
-
<%= render
|
6
|
-
<!--
|
4
|
+
<!-- -PHCDEV- Form Validation -->
|
5
|
+
<%= render "phcdevworks_notifications/bootstrap/validations", :object => @member_address %>
|
6
|
+
<!-- -PHCDEV- Form Validation -->
|
7
7
|
|
8
|
-
<!-- Form Input Fields -->
|
9
|
-
<div class="
|
10
|
-
<%= form.label :address_address_line_1, "Address Line1" %>
|
11
|
-
<%= form.text_field :address_address_line_1,
|
8
|
+
<!-- -PHCDEV- Form Input Fields -->
|
9
|
+
<div class="mb-3">
|
10
|
+
<%= form.label :address_address_line_1, "Address Line1", class: "form-label" %>
|
11
|
+
<%= form.text_field :address_address_line_1, placeholder: "Address Line 1 - Street Address", class: "form-control" %>
|
12
12
|
</div>
|
13
|
-
<div class="
|
14
|
-
<%= form.label :address_address_line_2, "Address Line2" %>
|
15
|
-
<%= form.text_field :address_address_line_2,
|
13
|
+
<div class="mb-3">
|
14
|
+
<%= form.label :address_address_line_2, "Address Line2", class: "form-label" %>
|
15
|
+
<%= form.text_field :address_address_line_2, placeholder: "Address Line 2 - Box - Suite - Floor", class: "form-control" %>
|
16
16
|
</div>
|
17
|
-
<div class="
|
18
|
-
<%= form.label :address_city, "City" %>
|
19
|
-
<%= form.text_field :address_city,
|
17
|
+
<div class="mb-3">
|
18
|
+
<%= form.label :address_city, "City", class: "form-label" %>
|
19
|
+
<%= form.text_field :address_city, placeholder: "City", class: "form-control" %>
|
20
20
|
</div>
|
21
|
-
<div class="
|
22
|
-
<%= form.label :address_province, "Province/State" %>
|
23
|
-
<%= form.text_field :address_province,
|
21
|
+
<div class="mb-3">
|
22
|
+
<%= form.label :address_province, "Province/State", class: "form-label" %>
|
23
|
+
<%= form.text_field :address_province, placeholder: "Province/State", class: "form-control" %>
|
24
24
|
</div>
|
25
|
-
<div class="
|
26
|
-
<%= form.label :address_country, "Country" %>
|
27
|
-
<%= form.text_field :address_country,
|
25
|
+
<div class="mb-3">
|
26
|
+
<%= form.label :address_country, "Country", class: "form-label" %>
|
27
|
+
<%= form.text_field :address_country, placeholder: "Country", class: "form-control" %>
|
28
28
|
</div>
|
29
|
-
<div class="
|
30
|
-
<%= form.label :address_postal_code, "PostalCode" %>
|
31
|
-
<%= form.text_field :address_postal_code,
|
29
|
+
<div class="mb-3">
|
30
|
+
<%= form.label :address_postal_code, "PostalCode", class: "form-label" %>
|
31
|
+
<%= form.text_field :address_postal_code, placeholder: "PostalCode", class: "form-control" %>
|
32
32
|
</div>
|
33
|
-
<div class="
|
34
|
-
<%= form.label :address_type, "Address Type" %>
|
35
|
-
<%= form.select :address_type, [[
|
33
|
+
<div class="mb-3">
|
34
|
+
<%= form.label :address_type, "Address Type", class: "form-label" %>
|
35
|
+
<%= form.select :address_type, [["Billing Address","Billing"],["Street Address","Street"],["Mailing Address","Mailing"],["Home Address","Home"],["Business Address","Business"]], {}, class: "form-control" %>
|
36
36
|
</div>
|
37
|
-
<!-- Form Input Fields -->
|
37
|
+
<!-- -PHCDEV- Form Input Fields -->
|
38
38
|
|
39
|
-
<!-- Form Submition Button -->
|
39
|
+
<!-- -PHCDEV- Form Submition Button -->
|
40
40
|
<div class="actions">
|
41
41
|
<%= form.submit class: "btn btn-primary btn-md" %>
|
42
42
|
</div>
|
43
|
-
<!--
|
43
|
+
<!-- -PHCDEV- Form Submition Button -->
|
44
44
|
|
45
45
|
<% end %>
|
46
|
-
<!-- Form - Member - Address -->
|
46
|
+
<!-- -PHCDEV- Form - Member - Address -->
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<tr>
|
6
6
|
<td><span class="label label-primary"><%= member_address_version.event.humanize %></span></td>
|
7
7
|
<td><small>ADDRESS EVENT ID#<%= member_address_version.id %></small></td>
|
8
|
-
<td><%= member_address_version.event.humanize +
|
8
|
+
<td><%= member_address_version.event.humanize + " " + @members_profile_info.member_first_name + " " + @members_profile_info.member_last_name %> Address Information</td>
|
9
9
|
<td><%= member_address_version.whodunnit %></td>
|
10
10
|
<td><%= l(member_address_version.created_at, format: "%-d/%m/%Y") %> - <%= l(member_address_version.created_at, format: "%H:%M %Z") %></td>
|
11
11
|
</tr>
|
@@ -12,6 +12,6 @@
|
|
12
12
|
</div>
|
13
13
|
<br>
|
14
14
|
<div class="btn-group d-flex" role="group">
|
15
|
-
<%= link_to
|
16
|
-
<%= link_to
|
15
|
+
<%= link_to "Update", edit_member_profile_address_path, class: "btn btn-primary btn-xs" %>
|
16
|
+
<%= link_to "Remove", member_profile_address_path, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: "Are you sure? This will remove listing information and cannot be reversed." } %>
|
17
17
|
</div>
|