phcdevworks_core_modules 7.3.0 → 8.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +20 -20
  3. data/README.md +3 -0
  4. data/Rakefile +8 -8
  5. data/app/assets/config/phcdevworks_core_modules_manifest.js +2 -3
  6. data/app/controllers/phcdevworks_core_modules/affiliate/links_controller.rb +0 -0
  7. data/app/controllers/phcdevworks_core_modules/application_controller.rb +0 -0
  8. data/app/controllers/phcdevworks_core_modules/marketing/optimizations_controller.rb +0 -0
  9. data/app/controllers/phcdevworks_core_modules/post/categories_controller.rb +0 -0
  10. data/app/helpers/phcdevworks_core_modules/affiliate/links_helper.rb +0 -0
  11. data/app/helpers/phcdevworks_core_modules/application_helper.rb +0 -0
  12. data/app/helpers/phcdevworks_core_modules/marketing/optimizations_helper.rb +0 -0
  13. data/app/helpers/phcdevworks_core_modules/post/categories_helper.rb +0 -0
  14. data/app/jobs/phcdevworks_core_modules/application_job.rb +0 -0
  15. data/app/mailers/phcdevworks_core_modules/application_mailer.rb +0 -0
  16. data/app/models/phcdevworks_core_modules/affiliate/link.rb +1 -1
  17. data/app/models/phcdevworks_core_modules/affiliate.rb +0 -0
  18. data/app/models/phcdevworks_core_modules/affiliate_link_versions.rb +0 -0
  19. data/app/models/phcdevworks_core_modules/application_record.rb +0 -0
  20. data/app/models/phcdevworks_core_modules/marketing/optimization.rb +1 -1
  21. data/app/models/phcdevworks_core_modules/marketing.rb +0 -0
  22. data/app/models/phcdevworks_core_modules/marketing_optimization_versions.rb +0 -0
  23. data/app/models/phcdevworks_core_modules/modules.rb +0 -0
  24. data/app/models/phcdevworks_core_modules/post/category.rb +1 -1
  25. data/app/models/phcdevworks_core_modules/post.rb +0 -0
  26. data/app/models/phcdevworks_core_modules/post_category_versions.rb +0 -0
  27. data/app/views/layouts/phcdevworks_core_modules/application.html.erb +73 -131
  28. data/app/views/layouts/phcdevworks_core_modules/components/backend/footer/_footer.html.erb +10 -9
  29. data/app/views/layouts/phcdevworks_core_modules/components/backend/navigation/_top_menu.html.erb +26 -25
  30. data/app/views/layouts/phcdevworks_core_modules/components/backend/sidebars/_side_menu.html.erb +491 -349
  31. data/app/views/phcdevworks_core_modules/affiliate/links/_form.html.erb +19 -9
  32. data/app/views/phcdevworks_core_modules/affiliate/links/edit.html.erb +23 -31
  33. data/app/views/phcdevworks_core_modules/affiliate/links/index.html.erb +58 -66
  34. data/app/views/phcdevworks_core_modules/affiliate/links/new.html.erb +23 -31
  35. data/app/views/phcdevworks_core_modules/affiliate/links/show.html.erb +0 -0
  36. data/app/views/phcdevworks_core_modules/marketing/optimizations/_form.html.erb +16 -18
  37. data/app/views/phcdevworks_core_modules/marketing/optimizations/edit.html.erb +23 -31
  38. data/app/views/phcdevworks_core_modules/marketing/optimizations/index.html.erb +61 -69
  39. data/app/views/phcdevworks_core_modules/marketing/optimizations/new.html.erb +23 -31
  40. data/app/views/phcdevworks_core_modules/marketing/optimizations/show.html.erb +0 -0
  41. data/app/views/phcdevworks_core_modules/post/categories/_form.html.erb +4 -4
  42. data/app/views/phcdevworks_core_modules/post/categories/edit.html.erb +23 -31
  43. data/app/views/phcdevworks_core_modules/post/categories/index.html.erb +53 -61
  44. data/app/views/phcdevworks_core_modules/post/categories/new.html.erb +23 -31
  45. data/app/views/phcdevworks_core_modules/post/categories/show.html.erb +0 -0
  46. data/config/routes.rb +22 -24
  47. data/db/migrate/20170517064427_create_phcdevworks_core_modules_post_category_versions.rb +1 -1
  48. data/db/migrate/20200705223718_create_phcdevworks_core_modules_marketing_optimizations.rb +1 -1
  49. data/db/migrate/20200705225433_create_phcdevworks_core_modules_marketing_optimization_versions.rb +1 -1
  50. data/db/migrate/20200706094820_create_phcdevworks_core_modules_post_categories.rb +1 -1
  51. data/db/migrate/20201012225709_remove_phcdevworks_core_modules_post_categories.rb +1 -1
  52. data/db/migrate/20210207051304_create_phcdevworks_core_modules_affiliate_link_versions.rb +1 -1
  53. data/db/migrate/20210208130113_create_phcdevworks_core_modules_affiliate_links.rb +1 -1
  54. data/lib/phcdevworks_core_modules/engine.rb +5 -47
  55. data/lib/phcdevworks_core_modules/version.rb +3 -3
  56. data/lib/phcdevworks_core_modules.rb +6 -6
  57. data/lib/tasks/phcdevworks_core_modules_tasks.rake +4 -4
  58. metadata +24 -74
  59. data/app/assets/javascripts/phcdevworks_core_modules/affiliate/links.coffee +0 -3
  60. data/app/assets/stylesheets/phcdevworks_core_modules/affiliate/links.scss +0 -3
  61. data/app/assets/stylesheets/phcdevworks_core_modules/application.scss +0 -0
  62. data/app/assets/stylesheets/phcdevworks_core_modules/marketing/optimizations.scss +0 -3
  63. data/app/assets/stylesheets/phcdevworks_core_modules/post/categories.scss +0 -3
  64. data/app/assets/stylesheets/scaffolds.scss +0 -65
  65. data/config/spring.rb +0 -2
@@ -1,88 +1,80 @@
1
- <!-- PHCTitleSEO Title Variables -->
1
+ <!-- -PHCDev- PHCTitleSEO Title Variables -->
2
2
  <% phc_title "Marketing Manager" %>
3
3
  <% phc_title_tagline "SEO Data Index" %>
4
4
  <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
5
  <% phc_breadcrumb_two link_to "SEO Data Index", phcdevworks_core_modules.marketing_optimizations_path %>
6
- <!-- PHCTitleSEO Title Variables -->
6
+ <!-- -PHCDev- PHCTitleSEO Title Variables -->
7
7
 
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
8
+ <!-- -PHCDev- Page Bradcrumbs -->
9
+ <ol class="breadcrumb float-xl-end">
10
10
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
11
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
- <!-- Page Bradcrumbs -->
13
+ <!-- -PHCDev- Page Bradcrumbs -->
14
14
 
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
15
+ <!-- -PHCDev- Page Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- -PHCDev- Page Header -->
18
18
 
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
19
+ <!-- -PHCDev- Panel -->
20
+ <div class="panel panel-inverse">
22
21
 
23
- <!-- Panel -->
24
- <div class="panel panel-inverse">
22
+ <!-- -PHCDev- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %> - <%= yield(:phc_title_tagline) %></h4>
25
+ </div>
26
+ <!-- -PHCDev- Panel - Heading -->
25
27
 
26
- <!-- Panel - Heading -->
27
- <div class="panel-heading">
28
- <h4 class="panel-title"><%= yield(:phc_title) %> - <%= yield(:phc_title_tagline) %></h4>
29
- </div>
30
- <!-- Panel - Heading -->
28
+ <!-- -PHCDev- Panel - Body -->
29
+ <div class="panel-body">
31
30
 
32
- <!-- Panel - Body -->
33
- <div class="panel-body">
31
+ <!-- -PHCDev- Index - Table -->
32
+ <div class="table-responsive">
33
+ <table class="table table-striped table-bordered">
34
34
 
35
- <!-- Index - Table -->
36
- <div class="table-responsive">
37
- <table class="table table-striped table-bordered">
35
+ <thead>
36
+ <tr>
37
+ <th>SEO Title</th>
38
+ <th>SEO OG Title</th>
39
+ <th>SEO OG Type</th>
40
+ <th>SEO Twitter Title</th>
41
+ <th>SEO Twitter Type</th>
42
+ <th></th>
43
+ </tr>
44
+ </thead>
45
+
46
+ <tbody>
47
+ <% @marketing_optimizations.each do |marketing_optimization| %>
48
+ <tr>
49
+ <td><%= marketing_optimization.marketing_optimization_page_title %></td>
50
+ <td><%= marketing_optimization.marketing_optimization_og_title %></td>
51
+ <td><%= marketing_optimization.marketing_optimization_og_type %></td>
52
+ <td><%= marketing_optimization.marketing_optimization_twitter_title %></td>
53
+ <td><%= marketing_optimization.marketing_optimization_twitter_type %></td>
54
+ <td>
55
+ <div class="btn-group" role="group" aria-label="Index Actions">
56
+ <%= link_to "SEO Details", marketing_optimization, class: "btn btn-purple btn-xs" %>
57
+ <%= link_to "Update Information", edit_marketing_optimization_path(marketing_optimization), class: "btn btn-primary btn-xs" %>
58
+ <%= link_to "Remove", marketing_optimization, method: :delete, data: { confirm: "Are you sure? This action cannot be reversed." }, class: "btn btn-danger btn-xs" %>
59
+ </div>
60
+ </td>
61
+ </tr>
62
+ <% end %>
63
+ </tbody>
38
64
 
39
- <thead>
40
- <tr>
41
- <th>SEO Title</th>
42
- <th>SEO OG Title</th>
43
- <th>SEO OG Type</th>
44
- <th>SEO Twitter Title</th>
45
- <th>SEO Twitter Type</th>
46
- <th></th>
47
- </tr>
48
- </thead>
49
-
50
- <tbody>
51
- <% @marketing_optimizations.each do |marketing_optimization| %>
52
- <tr>
53
- <td><%= marketing_optimization.marketing_optimization_page_title %></td>
54
- <td><%= marketing_optimization.marketing_optimization_og_title %></td>
55
- <td><%= marketing_optimization.marketing_optimization_og_type %></td>
56
- <td><%= marketing_optimization.marketing_optimization_twitter_title %></td>
57
- <td><%= marketing_optimization.marketing_optimization_twitter_type %></td>
58
- <td>
59
- <div class="btn-group d-flex" role="group">
60
- <%= link_to "SEO Details", marketing_optimization, class: "btn btn-purple btn-xs" %>
61
- <%= link_to "Update Information", edit_marketing_optimization_path(marketing_optimization), class: "btn btn-primary btn-xs" %>
62
- <%= link_to "Remove", marketing_optimization, method: :delete, data: { confirm: "Are you sure? This action cannot be reversed." }, class: "btn btn-danger btn-xs" %>
63
- </div>
64
- </td>
65
- </tr>
66
- <% end %>
67
- </tbody>
65
+ </table>
66
+ </div>
67
+ <!-- -PHCDev- Index - Table -->
68
68
 
69
- </table>
70
- </div>
71
- <!-- Index - Table -->
69
+ <!-- -PHCDev- New Button -->
70
+ <%= link_to phcdevworks_core_modules.new_marketing_optimization_path, class: "btn btn-primary btn-sm" do %>
71
+ <i class="fad fa-plus-circle"></i>
72
+ Add a SEO Data for a Post
73
+ <% end %>
74
+ <!-- -PHCDev- New Button -->
72
75
 
73
- <!-- New Button -->
74
- <%= link_to phcdevworks_core_modules.new_marketing_optimization_path, class: "btn btn-primary btn-sm" do %>
75
- <i class="fad fa-plus-circle"></i>
76
- Add a SEO Data for a Post
77
- <% end %>
78
- <!-- New Button -->
76
+ </div>
77
+ <!-- -PHCDev- Panel - Body -->
79
78
 
80
- </div>
81
- <!-- Panel - Body -->
82
-
83
- </div>
84
- <!-- Panel -->
85
-
86
- </div>
87
79
  </div>
88
- <!-- Page Content -->
80
+ <!-- -PHCDev- Panel -->
@@ -1,47 +1,39 @@
1
- <!-- PHCTitleSEO Title Variables -->
1
+ <!-- -PHCDev- PHCTitleSEO Title Variables -->
2
2
  <% phc_title "Marketing Manager" %>
3
3
  <% phc_title_tagline "Add New SEO Data" %>
4
4
  <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
5
  <% phc_breadcrumb_two link_to "SEO Data Index", phcdevworks_core_modules.marketing_optimizations_path %>
6
- <!-- PHCTitleSEO Title Variables -->
6
+ <!-- -PHCDev- PHCTitleSEO Title Variables -->
7
7
 
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
8
+ <!-- -PHCDev- Page Bradcrumbs -->
9
+ <ol class="breadcrumb float-xl-end">
10
10
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
11
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
- <!-- Page Bradcrumbs -->
13
+ <!-- -PHCDev- Page Bradcrumbs -->
14
14
 
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
15
+ <!-- -PHCDev- Page Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- -PHCDev- Page Header -->
18
18
 
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
19
+ <!-- -PHCDev- Panel -->
20
+ <div class="panel panel-inverse">
22
21
 
23
- <!-- Panel -->
24
- <div class="panel panel-inverse">
25
-
26
- <!-- Panel - Heading -->
27
- <div class="panel-heading">
28
- <h4 class="panel-title"><%= yield(:phc_title) %></h4>
29
- </div>
30
- <!-- Panel - Heading -->
31
-
32
- <!-- Panel - Body -->
33
- <div class="panel-body">
34
-
35
- <!-- New Form -->
36
- <%= render 'form', marketing_optimization: @marketing_optimization %>
37
- <!-- Edit Form -->
22
+ <!-- -PHCDev- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- -PHCDev- Panel - Heading -->
38
27
 
39
- </div>
40
- <!-- Panel - Body -->
28
+ <!-- -PHCDev- Panel - Body -->
29
+ <div class="panel-body">
41
30
 
42
- </div>
43
- <!-- Panel -->
31
+ <!-- -PHCDev- New Form -->
32
+ <%= render 'form', marketing_optimization: @marketing_optimization %>
33
+ <!-- -PHCDev- Edit Form -->
44
34
 
45
35
  </div>
36
+ <!-- -PHCDev- Panel - Body -->
37
+
46
38
  </div>
47
- <!-- Page Content -->
39
+ <!-- -PHCDev- Panel -->
@@ -1,4 +1,4 @@
1
- <!-- Form - Category -->
1
+ <!-- Form - Category - Post -->
2
2
  <%= form_with(model: post_category, local: true) do |form| %>
3
3
 
4
4
  <!-- PHCNotifi Render Validation -->
@@ -6,8 +6,8 @@
6
6
  <!-- PHCNotifi Render Validation -->
7
7
 
8
8
  <!-- Form Input Fields -->
9
- <div class="form-group">
10
- <%= form.label :post_category_name, "Category Name" %>
9
+ <div class="mb-3">
10
+ <%= form.label :post_category_name, "Category Name", class: "form-label" %>
11
11
  <%= form.text_field :post_category_name, class: "form-control" %>
12
12
  </div>
13
13
  <!-- Form Input Fields -->
@@ -19,4 +19,4 @@
19
19
  <!-- For Submition Button -->
20
20
 
21
21
  <% end %>
22
- <!-- Form - Category -->
22
+ <!-- Form - Category - Post -->
@@ -1,47 +1,39 @@
1
- <!-- PHCTitleSEO Title Variables -->
1
+ <!-- -PHCDev- PHCTitleSEO Title Variables -->
2
2
  <% phc_title "Category Manager" %>
3
3
  <% phc_title_tagline "Update Category" %>
4
4
  <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
5
  <% phc_breadcrumb_two link_to "Category Index", phcdevworks_core_modules.post_categories_path %>
6
- <!-- PHCTitleSEO Title Variables -->
6
+ <!-- -PHCDev- PHCTitleSEO Title Variables -->
7
7
 
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
8
+ <!-- -PHCDev- Page Bradcrumbs -->
9
+ <ol class="breadcrumb float-xl-end">
10
10
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
11
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
- <!-- Page Bradcrumbs -->
13
+ <!-- -PHCDev- Page Bradcrumbs -->
14
14
 
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
15
+ <!-- -PHCDev- Page Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- -PHCDev- Page Header -->
18
18
 
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
19
+ <!-- -PHCDev- Panel -->
20
+ <div class="panel panel-inverse">
22
21
 
23
- <!-- Panel -->
24
- <div class="panel panel-inverse">
25
-
26
- <!-- Panel - Heading -->
27
- <div class="panel-heading">
28
- <h4 class="panel-title"><%= yield(:phc_title) %></h4>
29
- </div>
30
- <!-- Panel - Heading -->
31
-
32
- <!-- Panel - Body -->
33
- <div class="panel-body">
34
-
35
- <!-- Edit Form -->
36
- <%= render 'form', post_category: @post_category %>
37
- <!-- Edit Form -->
22
+ <!-- -PHCDev- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- -PHCDev- Panel - Heading -->
38
27
 
39
- </div>
40
- <!-- Panel - Body -->
28
+ <!-- -PHCDev- Panel - Body -->
29
+ <div class="panel-body">
41
30
 
42
- </div>
43
- <!-- Panel -->
31
+ <!-- -PHCDev- Edit Form -->
32
+ <%= render 'form', post_category: @post_category %>
33
+ <!-- -PHCDev- Edit Form -->
44
34
 
45
35
  </div>
36
+ <!-- -PHCDev- Panel - Body -->
37
+
46
38
  </div>
47
- <!-- Page Content -->
39
+ <!-- -PHCDev- Panel -->
@@ -1,80 +1,72 @@
1
- <!-- PHCTitleSEO Title Variables -->
1
+ <!-- -PHCDev- PHCTitleSEO Title Variables -->
2
2
  <% phc_title "Category Manager" %>
3
3
  <% phc_title_tagline "Category Index" %>
4
4
  <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
5
  <% phc_breadcrumb_two link_to "Category Index", phcdevworks_core_modules.post_categories_path %>
6
- <!-- PHCTitleSEO Title Variables -->
6
+ <!-- -PHCDev- PHCTitleSEO Title Variables -->
7
7
 
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
8
+ <!-- -PHCDev- Page Bradcrumbs -->
9
+ <ol class="breadcrumb float-xl-end">
10
10
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
11
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
- <!-- Page Bradcrumbs -->
13
+ <!-- -PHCDev- Page Bradcrumbs -->
14
14
 
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
15
+ <!-- -PHCDev- Page Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- -PHCDev- Page Header -->
18
18
 
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
19
+ <!-- -PHCDev- Panel -->
20
+ <div class="panel panel-inverse">
22
21
 
23
- <!-- Panel -->
24
- <div class="panel panel-inverse">
25
-
26
- <!-- Panel - Heading -->
27
- <div class="panel-heading">
28
- <h4 class="panel-title"><%= yield(:phc_title) %></h4>
29
- </div>
30
- <!-- Panel - Heading -->
31
-
32
- <!-- Panel - Body -->
33
- <div class="panel-body">
34
-
35
- <!-- Index - Table -->
36
- <div class="table-responsive">
37
- <table class="table table-striped table-bordered">
38
-
39
- <thead>
40
- <tr>
41
- <th>Category</th>
42
- <th></th>
43
- </tr>
44
- </thead>
45
-
46
- <tbody>
47
- <% @post_categories.each do |post_category| %>
48
- <tr>
49
- <td><%= post_category.post_category_name %></td>
50
- <td>
51
- <div class="btn-group d-flex" role="group">
52
- <%= link_to "Category Details", post_category, class: "btn btn-purple btn-xs" %>
53
- <%= link_to "Update Category", edit_post_category_path(post_category), class: "btn btn-primary btn-xs" %>
54
- <%= link_to "Remove Category", post_category, method: :delete, data: { confirm: "Are you sure? This action cannot be reversed." }, class: "btn btn-danger btn-xs" %>
55
- </div>
56
- </td>
57
- </tr>
58
- <% end %>
59
- </tbody>
22
+ <!-- -PHCDev- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- -PHCDev- Panel - Heading -->
60
27
 
61
- </table>
62
- </div>
63
- <!-- Index - Table -->
28
+ <!-- -PHCDev- Panel - Body -->
29
+ <div class="panel-body">
64
30
 
65
- <!-- New Button -->
66
- <%= link_to phcdevworks_core_modules.new_post_category_path, class: "btn btn-primary btn-sm" do %>
67
- <i class="fad fa-plus-circle"></i>
68
- Add a New Category
69
- <% end %>
70
- <!-- New Button -->
31
+ <!-- -PHCDev- Index - Table -->
32
+ <div class="table-responsive">
33
+ <table class="table table-striped table-bordered">
71
34
 
72
- </div>
73
- <!-- Panel - Body -->
35
+ <thead>
36
+ <tr>
37
+ <th>Category</th>
38
+ <th></th>
39
+ </tr>
40
+ </thead>
41
+
42
+ <tbody>
43
+ <% @post_categories.each do |post_category| %>
44
+ <tr>
45
+ <td><%= post_category.post_category_name %></td>
46
+ <td>
47
+ <div class="btn-group" role="group" aria-label="Index Actions">
48
+ <%= link_to "Category Details", post_category, class: "btn btn-purple btn-xs" %>
49
+ <%= link_to "Update Category", edit_post_category_path(post_category), class: "btn btn-primary btn-xs" %>
50
+ <%= link_to "Remove Category", post_category, method: :delete, data: { confirm: "Are you sure? This action cannot be reversed." }, class: "btn btn-danger btn-xs" %>
51
+ </div>
52
+ </td>
53
+ </tr>
54
+ <% end %>
55
+ </tbody>
74
56
 
57
+ </table>
75
58
  </div>
76
- <!-- Panel -->
59
+ <!-- -PHCDev- Index - Table -->
60
+
61
+ <!-- -PHCDev- New Button -->
62
+ <%= link_to phcdevworks_core_modules.new_post_category_path, class: "btn btn-primary btn-sm" do %>
63
+ <i class="fad fa-plus-circle"></i>
64
+ Add a New Category
65
+ <% end %>
66
+ <!-- -PHCDev- New Button -->
77
67
 
78
68
  </div>
69
+ <!-- -PHCDev- Panel - Body -->
70
+
79
71
  </div>
80
- <!-- Page Content -->
72
+ <!-- -PHCDev- Panel -->
@@ -1,47 +1,39 @@
1
- <!-- PHCTitleSEO Title Variables -->
1
+ <!-- -PHCDev- PHCTitleSEO Title Variables -->
2
2
  <% phc_title "Category Manager" %>
3
3
  <% phc_title_tagline "Add a New Category" %>
4
4
  <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
5
  <% phc_breadcrumb_two link_to "Category Index", phcdevworks_core_modules.post_categories_path %>
6
- <!-- PHCTitleSEO Title Variables -->
6
+ <!-- -PHCDev- PHCTitleSEO Title Variables -->
7
7
 
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
8
+ <!-- -PHCDev- Page Bradcrumbs -->
9
+ <ol class="breadcrumb float-xl-end">
10
10
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
11
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
- <!-- Page Bradcrumbs -->
13
+ <!-- -PHCDev- Page Bradcrumbs -->
14
14
 
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
15
+ <!-- -PHCDev- Page Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- -PHCDev- Page Header -->
18
18
 
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
19
+ <!-- -PHCDev- Panel -->
20
+ <div class="panel panel-inverse">
22
21
 
23
- <!-- Panel -->
24
- <div class="panel panel-inverse">
25
-
26
- <!-- Panel - Heading -->
27
- <div class="panel-heading">
28
- <h4 class="panel-title"><%= yield(:phc_title) %></h4>
29
- </div>
30
- <!-- Panel - Heading -->
31
-
32
- <!-- Panel - Body -->
33
- <div class="panel-body">
34
-
35
- <!-- New Form -->
36
- <%= render 'form', post_category: @post_category %>
37
- <!-- Edit Form -->
22
+ <!-- -PHCDev- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- -PHCDev- Panel - Heading -->
38
27
 
39
- </div>
40
- <!-- Panel - Body -->
28
+ <!-- -PHCDev- Panel - Body -->
29
+ <div class="panel-body">
41
30
 
42
- </div>
43
- <!-- Panel -->
31
+ <!-- -PHCDev- New Form -->
32
+ <%= render 'form', post_category: @post_category %>
33
+ <!-- -PHCDev- Edit Form -->
44
34
 
45
35
  </div>
36
+ <!-- -PHCDev- Panel - Body -->
37
+
46
38
  </div>
47
- <!-- Page Content -->
39
+ <!-- -PHCDev- Panel -->
data/config/routes.rb CHANGED
@@ -1,24 +1,22 @@
1
- PhcdevworksCoreModules::Engine.routes.draw do
2
-
3
- namespace :affiliate do
4
- resources :links
5
- end
6
- # Routes for Posts
7
- namespace :post do
8
- resources :categories, class_name: 'Post::Category'
9
- end
10
-
11
- # Routes for Marketing
12
- namespace :marketing do
13
- resources :optimizations, class_name: 'Marketing::Optimization'
14
- end
15
-
16
- # Routes for Affiliate
17
- namespace :affiliate do
18
- resources :links, class_name: 'Affiliate::Link'
19
- end
20
-
21
- # Mount Routes
22
- mount PhcdevworksAccounts::Engine, :at => '/'
23
-
24
- end
1
+ PhcdevworksCoreModules::Engine.routes.draw do
2
+
3
+ namespace :affiliate do
4
+ resources :links
5
+ end
6
+ # Routes for Posts
7
+ namespace :post do
8
+ resources :categories, class_name: 'Post::Category'
9
+ end
10
+
11
+ # Routes for Marketing
12
+ namespace :marketing do
13
+ resources :optimizations, class_name: 'Marketing::Optimization'
14
+ end
15
+
16
+ # Routes for Affiliate
17
+ namespace :affiliate do
18
+ resources :links, class_name: 'Affiliate::Link'
19
+ end
20
+
21
+ end
22
+
@@ -1,4 +1,4 @@
1
- class CreatePhcdevworksCoreModulesPostCategoryVersions < ActiveRecord::Migration[6.0]
1
+ class CreatePhcdevworksCoreModulesPostCategoryVersions < ActiveRecord::Migration[7.0]
2
2
  TEXT_BYTES = 1_073_741_823
3
3
  def change
4
4
  create_table :phcdevworks_core_modules_post_category_versions do |t|
@@ -1,4 +1,4 @@
1
- class CreatePhcdevworksCoreModulesMarketingOptimizations < ActiveRecord::Migration[6.0]
1
+ class CreatePhcdevworksCoreModulesMarketingOptimizations < ActiveRecord::Migration[7.0]
2
2
  def change
3
3
  create_table :phcdevworks_core_modules_marketing_optimizations do |t|
4
4
 
@@ -1,4 +1,4 @@
1
- class CreatePhcdevworksCoreModulesMarketingOptimizationVersions < ActiveRecord::Migration[6.0]
1
+ class CreatePhcdevworksCoreModulesMarketingOptimizationVersions < ActiveRecord::Migration[7.0]
2
2
  TEXT_BYTES = 1_073_741_823
3
3
  def change
4
4
  create_table :phcdevworks_core_modules_marketing_optimization_versions do |t|
@@ -1,4 +1,4 @@
1
- class CreatePhcdevworksCoreModulesPostCategories < ActiveRecord::Migration[6.0]
1
+ class CreatePhcdevworksCoreModulesPostCategories < ActiveRecord::Migration[7.0]
2
2
  def change
3
3
  create_table :phcdevworks_core_modules_post_categories do |t|
4
4
 
@@ -1,4 +1,4 @@
1
- class RemovePhcdevworksCoreModulesPostCategories < ActiveRecord::Migration[6.0]
1
+ class RemovePhcdevworksCoreModulesPostCategories < ActiveRecord::Migration[7.0]
2
2
  def change
3
3
 
4
4
  remove_column :phcdevworks_core_modules_post_categories, :optimization_id, :string
@@ -1,4 +1,4 @@
1
- class CreatePhcdevworksCoreModulesAffiliateLinkVersions < ActiveRecord::Migration[6.1]
1
+ class CreatePhcdevworksCoreModulesAffiliateLinkVersions < ActiveRecord::Migration[7.0]
2
2
  TEXT_BYTES = 1_073_741_823
3
3
  def change
4
4
  create_table :phcdevworks_core_modules_affiliate_link_versions do |t|
@@ -1,4 +1,4 @@
1
- class CreatePhcdevworksCoreModulesAffiliateLinks < ActiveRecord::Migration[6.1]
1
+ class CreatePhcdevworksCoreModulesAffiliateLinks < ActiveRecord::Migration[7.0]
2
2
  def change
3
3
  create_table :phcdevworks_core_modules_affiliate_links do |t|
4
4