phcdevworks_core_modules 7.3.0 → 8.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -20
- data/README.md +3 -0
- data/Rakefile +8 -8
- data/app/assets/config/phcdevworks_core_modules_manifest.js +2 -3
- data/app/controllers/phcdevworks_core_modules/affiliate/links_controller.rb +0 -0
- data/app/controllers/phcdevworks_core_modules/application_controller.rb +0 -0
- data/app/controllers/phcdevworks_core_modules/marketing/optimizations_controller.rb +0 -0
- data/app/controllers/phcdevworks_core_modules/post/categories_controller.rb +0 -0
- data/app/helpers/phcdevworks_core_modules/affiliate/links_helper.rb +0 -0
- data/app/helpers/phcdevworks_core_modules/application_helper.rb +0 -0
- data/app/helpers/phcdevworks_core_modules/marketing/optimizations_helper.rb +0 -0
- data/app/helpers/phcdevworks_core_modules/post/categories_helper.rb +0 -0
- data/app/jobs/phcdevworks_core_modules/application_job.rb +0 -0
- data/app/mailers/phcdevworks_core_modules/application_mailer.rb +0 -0
- data/app/models/phcdevworks_core_modules/affiliate/link.rb +1 -1
- data/app/models/phcdevworks_core_modules/affiliate.rb +0 -0
- data/app/models/phcdevworks_core_modules/affiliate_link_versions.rb +0 -0
- data/app/models/phcdevworks_core_modules/application_record.rb +0 -0
- data/app/models/phcdevworks_core_modules/marketing/optimization.rb +1 -1
- data/app/models/phcdevworks_core_modules/marketing.rb +0 -0
- data/app/models/phcdevworks_core_modules/marketing_optimization_versions.rb +0 -0
- data/app/models/phcdevworks_core_modules/modules.rb +0 -0
- data/app/models/phcdevworks_core_modules/post/category.rb +1 -1
- data/app/models/phcdevworks_core_modules/post.rb +0 -0
- data/app/models/phcdevworks_core_modules/post_category_versions.rb +0 -0
- data/app/views/layouts/phcdevworks_core_modules/application.html.erb +73 -131
- data/app/views/layouts/phcdevworks_core_modules/components/backend/footer/_footer.html.erb +10 -9
- data/app/views/layouts/phcdevworks_core_modules/components/backend/navigation/_top_menu.html.erb +26 -25
- data/app/views/layouts/phcdevworks_core_modules/components/backend/sidebars/_side_menu.html.erb +491 -349
- data/app/views/phcdevworks_core_modules/affiliate/links/_form.html.erb +19 -9
- data/app/views/phcdevworks_core_modules/affiliate/links/edit.html.erb +23 -31
- data/app/views/phcdevworks_core_modules/affiliate/links/index.html.erb +58 -66
- data/app/views/phcdevworks_core_modules/affiliate/links/new.html.erb +23 -31
- data/app/views/phcdevworks_core_modules/affiliate/links/show.html.erb +0 -0
- data/app/views/phcdevworks_core_modules/marketing/optimizations/_form.html.erb +16 -18
- data/app/views/phcdevworks_core_modules/marketing/optimizations/edit.html.erb +23 -31
- data/app/views/phcdevworks_core_modules/marketing/optimizations/index.html.erb +61 -69
- data/app/views/phcdevworks_core_modules/marketing/optimizations/new.html.erb +23 -31
- data/app/views/phcdevworks_core_modules/marketing/optimizations/show.html.erb +0 -0
- data/app/views/phcdevworks_core_modules/post/categories/_form.html.erb +4 -4
- data/app/views/phcdevworks_core_modules/post/categories/edit.html.erb +23 -31
- data/app/views/phcdevworks_core_modules/post/categories/index.html.erb +53 -61
- data/app/views/phcdevworks_core_modules/post/categories/new.html.erb +23 -31
- data/app/views/phcdevworks_core_modules/post/categories/show.html.erb +0 -0
- data/config/routes.rb +22 -24
- data/config/spring.rb +0 -0
- data/db/migrate/20170517064427_create_phcdevworks_core_modules_post_category_versions.rb +1 -1
- data/db/migrate/20200705223718_create_phcdevworks_core_modules_marketing_optimizations.rb +1 -1
- data/db/migrate/20200705225433_create_phcdevworks_core_modules_marketing_optimization_versions.rb +1 -1
- data/db/migrate/20200706094820_create_phcdevworks_core_modules_post_categories.rb +1 -1
- data/db/migrate/20201012225709_remove_phcdevworks_core_modules_post_categories.rb +1 -1
- data/db/migrate/20210207051304_create_phcdevworks_core_modules_affiliate_link_versions.rb +1 -1
- data/db/migrate/20210208130113_create_phcdevworks_core_modules_affiliate_links.rb +1 -1
- data/lib/phcdevworks_core_modules/engine.rb +44 -47
- data/lib/phcdevworks_core_modules/version.rb +3 -3
- data/lib/phcdevworks_core_modules.rb +6 -6
- data/lib/tasks/phcdevworks_core_modules_tasks.rake +4 -4
- metadata +24 -73
- data/app/assets/javascripts/phcdevworks_core_modules/affiliate/links.coffee +0 -3
- data/app/assets/stylesheets/phcdevworks_core_modules/affiliate/links.scss +0 -3
- data/app/assets/stylesheets/phcdevworks_core_modules/application.scss +0 -0
- data/app/assets/stylesheets/phcdevworks_core_modules/marketing/optimizations.scss +0 -3
- data/app/assets/stylesheets/phcdevworks_core_modules/post/categories.scss +0 -3
- data/app/assets/stylesheets/scaffolds.scss +0 -65
|
@@ -1,88 +1,80 @@
|
|
|
1
|
-
<!--
|
|
1
|
+
<!-- -PHCDEV- 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
|
-
<!--
|
|
6
|
+
<!-- -PHCDEV- Title Variables -->
|
|
7
7
|
|
|
8
|
-
<!--
|
|
9
|
-
<ol class="breadcrumb
|
|
8
|
+
<!-- -PHCDEV- 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
|
-
<!--
|
|
13
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
|
14
14
|
|
|
15
|
-
<!--
|
|
16
|
-
<
|
|
17
|
-
<!--
|
|
15
|
+
<!-- -PHCDEV- Header -->
|
|
16
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
|
17
|
+
<!-- -PHCDEV- Header -->
|
|
18
18
|
|
|
19
|
-
<!--
|
|
20
|
-
<div class="
|
|
21
|
-
<div class="col-lg-12">
|
|
19
|
+
<!-- -PHCDEV- Panel -->
|
|
20
|
+
<div class="panel panel-inverse">
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
27
|
-
|
|
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
|
-
|
|
33
|
-
|
|
31
|
+
<!-- -PHCDEV- Index - Table -->
|
|
32
|
+
<div class="table-responsive">
|
|
33
|
+
<table class="table table-striped table-bordered">
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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
|
-
|
|
74
|
-
|
|
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
|
-
<!--
|
|
80
|
+
<!-- -PHCDEV- Panel -->
|
|
@@ -1,47 +1,39 @@
|
|
|
1
|
-
<!--
|
|
1
|
+
<!-- -PHCDEV- 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
|
-
<!--
|
|
6
|
+
<!-- -PHCDEV- Title Variables -->
|
|
7
7
|
|
|
8
|
-
<!--
|
|
9
|
-
<ol class="breadcrumb
|
|
8
|
+
<!-- -PHCDEV- 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
|
-
<!--
|
|
13
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
|
14
14
|
|
|
15
|
-
<!--
|
|
16
|
-
<
|
|
17
|
-
<!--
|
|
15
|
+
<!-- -PHCDEV- Header -->
|
|
16
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
|
17
|
+
<!-- -PHCDEV- Header -->
|
|
18
18
|
|
|
19
|
-
<!--
|
|
20
|
-
<div class="
|
|
21
|
-
<div class="col-lg-12">
|
|
19
|
+
<!-- -PHCDEV- Panel -->
|
|
20
|
+
<div class="panel panel-inverse">
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
40
|
-
|
|
28
|
+
<!-- -PHCDEV- Panel - Body -->
|
|
29
|
+
<div class="panel-body">
|
|
41
30
|
|
|
42
|
-
|
|
43
|
-
|
|
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
|
-
<!--
|
|
39
|
+
<!-- -PHCDEV- Panel -->
|
|
File without changes
|
|
@@ -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="
|
|
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
|
-
<!--
|
|
1
|
+
<!-- -PHCDEV- 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
|
-
<!--
|
|
6
|
+
<!-- -PHCDEV- Title Variables -->
|
|
7
7
|
|
|
8
|
-
<!--
|
|
9
|
-
<ol class="breadcrumb
|
|
8
|
+
<!-- -PHCDEV- 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
|
-
<!--
|
|
13
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
|
14
14
|
|
|
15
|
-
<!--
|
|
16
|
-
<
|
|
17
|
-
<!--
|
|
15
|
+
<!-- -PHCDEV- Header -->
|
|
16
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
|
17
|
+
<!-- -PHCDEV- Header -->
|
|
18
18
|
|
|
19
|
-
<!--
|
|
20
|
-
<div class="
|
|
21
|
-
<div class="col-lg-12">
|
|
19
|
+
<!-- -PHCDEV- Panel -->
|
|
20
|
+
<div class="panel panel-inverse">
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
40
|
-
|
|
28
|
+
<!-- -PHCDEV- Panel - Body -->
|
|
29
|
+
<div class="panel-body">
|
|
41
30
|
|
|
42
|
-
|
|
43
|
-
|
|
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
|
-
<!--
|
|
39
|
+
<!-- -PHCDEV- Panel -->
|
|
@@ -1,80 +1,72 @@
|
|
|
1
|
-
<!--
|
|
1
|
+
<!-- -PHCDEV- 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
|
-
<!--
|
|
6
|
+
<!-- -PHCDEV- Title Variables -->
|
|
7
7
|
|
|
8
|
-
<!--
|
|
9
|
-
<ol class="breadcrumb
|
|
8
|
+
<!-- -PHCDEV- 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
|
-
<!--
|
|
13
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
|
14
14
|
|
|
15
|
-
<!--
|
|
16
|
-
<
|
|
17
|
-
<!--
|
|
15
|
+
<!-- -PHCDEV- Header -->
|
|
16
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
|
17
|
+
<!-- -PHCDEV- Header -->
|
|
18
18
|
|
|
19
|
-
<!--
|
|
20
|
-
<div class="
|
|
21
|
-
<div class="col-lg-12">
|
|
19
|
+
<!-- -PHCDEV- Panel -->
|
|
20
|
+
<div class="panel panel-inverse">
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
62
|
-
|
|
63
|
-
<!-- Index - Table -->
|
|
28
|
+
<!-- -PHCDEV- Panel - Body -->
|
|
29
|
+
<div class="panel-body">
|
|
64
30
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
-
|
|
73
|
-
|
|
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
|
-
<!--
|
|
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
|
-
<!--
|
|
72
|
+
<!-- -PHCDEV- Panel -->
|
|
@@ -1,47 +1,39 @@
|
|
|
1
|
-
<!--
|
|
1
|
+
<!-- -PHCDEV- 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
|
-
<!--
|
|
6
|
+
<!-- -PHCDEV- Title Variables -->
|
|
7
7
|
|
|
8
|
-
<!--
|
|
9
|
-
<ol class="breadcrumb
|
|
8
|
+
<!-- -PHCDEV- 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
|
-
<!--
|
|
13
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
|
14
14
|
|
|
15
|
-
<!--
|
|
16
|
-
<
|
|
17
|
-
<!--
|
|
15
|
+
<!-- -PHCDEV- Header -->
|
|
16
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
|
17
|
+
<!-- -PHCDEV- Header -->
|
|
18
18
|
|
|
19
|
-
<!--
|
|
20
|
-
<div class="
|
|
21
|
-
<div class="col-lg-12">
|
|
19
|
+
<!-- -PHCDEV- Panel -->
|
|
20
|
+
<div class="panel panel-inverse">
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
40
|
-
|
|
28
|
+
<!-- -PHCDEV- Panel - Body -->
|
|
29
|
+
<div class="panel-body">
|
|
41
30
|
|
|
42
|
-
|
|
43
|
-
|
|
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
|
-
<!--
|
|
39
|
+
<!-- -PHCDEV- Panel -->
|
|
File without changes
|
data/config/routes.rb
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
PhcdevworksCoreModules::Engine.routes.draw do
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
+
|
data/config/spring.rb
CHANGED
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class CreatePhcdevworksCoreModulesPostCategoryVersions < ActiveRecord::Migration[
|
|
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|
|
data/db/migrate/20200705225433_create_phcdevworks_core_modules_marketing_optimization_versions.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class CreatePhcdevworksCoreModulesMarketingOptimizationVersions < ActiveRecord::Migration[
|
|
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 CreatePhcdevworksCoreModulesAffiliateLinkVersions < ActiveRecord::Migration[
|
|
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|
|