phcdevworks_core_modules 7.2.2 → 8.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +3 -0
  4. data/app/assets/config/phcdevworks_core_modules_manifest.js +2 -3
  5. data/app/controllers/phcdevworks_core_modules/affiliate/links_controller.rb +81 -81
  6. data/app/controllers/phcdevworks_core_modules/application_controller.rb +13 -13
  7. data/app/controllers/phcdevworks_core_modules/marketing/optimizations_controller.rb +81 -81
  8. data/app/controllers/phcdevworks_core_modules/post/categories_controller.rb +81 -81
  9. data/app/helpers/phcdevworks_core_modules/affiliate/links_helper.rb +4 -4
  10. data/app/helpers/phcdevworks_core_modules/application_helper.rb +4 -4
  11. data/app/helpers/phcdevworks_core_modules/marketing/optimizations_helper.rb +4 -4
  12. data/app/helpers/phcdevworks_core_modules/post/categories_helper.rb +4 -4
  13. data/app/jobs/phcdevworks_core_modules/application_job.rb +4 -4
  14. data/app/mailers/phcdevworks_core_modules/application_mailer.rb +6 -6
  15. data/app/models/phcdevworks_core_modules/affiliate/link.rb +35 -35
  16. data/app/models/phcdevworks_core_modules/affiliate.rb +7 -7
  17. data/app/models/phcdevworks_core_modules/application_record.rb +5 -5
  18. data/app/models/phcdevworks_core_modules/marketing/optimization.rb +54 -54
  19. data/app/models/phcdevworks_core_modules/marketing.rb +7 -7
  20. data/app/models/phcdevworks_core_modules/modules.rb +7 -7
  21. data/app/models/phcdevworks_core_modules/post/category.rb +43 -43
  22. data/app/models/phcdevworks_core_modules/post.rb +7 -7
  23. data/app/views/layouts/phcdevworks_core_modules/application.html.erb +34 -92
  24. data/app/views/layouts/phcdevworks_core_modules/components/backend/footer/_footer.html.erb +10 -9
  25. data/app/views/layouts/phcdevworks_core_modules/components/backend/navigation/_top_menu.html.erb +26 -25
  26. data/app/views/layouts/phcdevworks_core_modules/components/backend/sidebars/_side_menu.html.erb +491 -349
  27. data/app/views/phcdevworks_core_modules/affiliate/links/_form.html.erb +37 -27
  28. data/app/views/phcdevworks_core_modules/affiliate/links/edit.html.erb +39 -47
  29. data/app/views/phcdevworks_core_modules/affiliate/links/index.html.erb +78 -86
  30. data/app/views/phcdevworks_core_modules/affiliate/links/new.html.erb +39 -47
  31. data/app/views/phcdevworks_core_modules/affiliate/links/show.html.erb +24 -24
  32. data/app/views/phcdevworks_core_modules/marketing/optimizations/_form.html.erb +87 -89
  33. data/app/views/phcdevworks_core_modules/marketing/optimizations/edit.html.erb +39 -47
  34. data/app/views/phcdevworks_core_modules/marketing/optimizations/index.html.erb +80 -88
  35. data/app/views/phcdevworks_core_modules/marketing/optimizations/new.html.erb +39 -47
  36. data/app/views/phcdevworks_core_modules/marketing/optimizations/show.html.erb +54 -54
  37. data/app/views/phcdevworks_core_modules/post/categories/_form.html.erb +22 -22
  38. data/app/views/phcdevworks_core_modules/post/categories/edit.html.erb +39 -47
  39. data/app/views/phcdevworks_core_modules/post/categories/index.html.erb +72 -80
  40. data/app/views/phcdevworks_core_modules/post/categories/new.html.erb +39 -47
  41. data/app/views/phcdevworks_core_modules/post/categories/show.html.erb +9 -9
  42. data/config/routes.rb +18 -20
  43. data/config/spring.rb +1 -1
  44. data/db/migrate/20170517064427_create_phcdevworks_core_modules_post_category_versions.rb +1 -1
  45. data/db/migrate/20200705223718_create_phcdevworks_core_modules_marketing_optimizations.rb +26 -26
  46. data/db/migrate/20200705225433_create_phcdevworks_core_modules_marketing_optimization_versions.rb +18 -18
  47. data/db/migrate/20200706094820_create_phcdevworks_core_modules_post_categories.rb +17 -17
  48. data/db/migrate/20201012225709_remove_phcdevworks_core_modules_post_categories.rb +7 -7
  49. data/db/migrate/20210207051304_create_phcdevworks_core_modules_affiliate_link_versions.rb +18 -18
  50. data/db/migrate/20210208130113_create_phcdevworks_core_modules_affiliate_links.rb +18 -18
  51. data/lib/phcdevworks_core_modules/engine.rb +26 -29
  52. data/lib/phcdevworks_core_modules/version.rb +1 -1
  53. metadata +32 -81
  54. data/app/assets/javascripts/phcdevworks_core_modules/affiliate/links.coffee +0 -3
  55. data/app/assets/stylesheets/phcdevworks_core_modules/affiliate/links.scss +0 -3
  56. data/app/assets/stylesheets/phcdevworks_core_modules/application.scss +0 -0
  57. data/app/assets/stylesheets/phcdevworks_core_modules/marketing/optimizations.scss +0 -3
  58. data/app/assets/stylesheets/phcdevworks_core_modules/post/categories.scss +0 -3
  59. data/app/assets/stylesheets/scaffolds.scss +0 -65
@@ -1,47 +1,39 @@
1
- <!-- PHCTitleSEO Title Variables -->
2
- <% phc_title "Marketing Manager" %>
3
- <% phc_title_tagline "Update SEO Data" %>
4
- <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
- <% phc_breadcrumb_two link_to "SEO Data Index", phcdevworks_core_modules.marketing_optimizations_path %>
6
- <!-- PHCTitleSEO Title Variables -->
7
-
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
10
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
- </ol>
13
- <!-- Page Bradcrumbs -->
14
-
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
18
-
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
22
-
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', marketing_optimization: @marketing_optimization %>
37
- <!-- Edit Form -->
38
-
39
- </div>
40
- <!-- Panel - Body -->
41
-
42
- </div>
43
- <!-- Panel -->
44
-
45
- </div>
46
- </div>
47
- <!-- Page Content -->
1
+ <!-- -PHCDEV- Title Variables -->
2
+ <% phc_title "Marketing Manager" %>
3
+ <% phc_title_tagline "Update SEO Data" %>
4
+ <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
+ <% phc_breadcrumb_two link_to "SEO Data Index", phcdevworks_core_modules.marketing_optimizations_path %>
6
+ <!-- -PHCDEV- Title Variables -->
7
+
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
+ </ol>
13
+ <!-- -PHCDEV- Bradcrumbs -->
14
+
15
+ <!-- -PHCDEV- Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- -PHCDEV- Header -->
18
+
19
+ <!-- -PHCDEV- Panel -->
20
+ <div class="panel panel-inverse">
21
+
22
+ <!-- -PHCDEV- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- -PHCDEV- Panel - Heading -->
27
+
28
+ <!-- -PHCDEV- Panel - Body -->
29
+ <div class="panel-body">
30
+
31
+ <!-- -PHCDEV- Edit Form -->
32
+ <%= render 'form', marketing_optimization: @marketing_optimization %>
33
+ <!-- -PHCDEV- Edit Form -->
34
+
35
+ </div>
36
+ <!-- -PHCDEV- Panel - Body -->
37
+
38
+ </div>
39
+ <!-- -PHCDEV- Panel -->
@@ -1,88 +1,80 @@
1
- <!-- PHCTitleSEO Title Variables -->
2
- <% phc_title "Marketing Manager" %>
3
- <% phc_title_tagline "SEO Data Index" %>
4
- <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
- <% phc_breadcrumb_two link_to "SEO Data Index", phcdevworks_core_modules.marketing_optimizations_path %>
6
- <!-- PHCTitleSEO Title Variables -->
7
-
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
10
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
- </ol>
13
- <!-- Page Bradcrumbs -->
14
-
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
18
-
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
22
-
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) %> - <%= yield(:phc_title_tagline) %></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>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>
68
-
69
- </table>
70
- </div>
71
- <!-- Index - Table -->
72
-
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 -->
79
-
80
- </div>
81
- <!-- Panel - Body -->
82
-
83
- </div>
84
- <!-- Panel -->
85
-
86
- </div>
87
- </div>
88
- <!-- Page Content -->
1
+ <!-- -PHCDEV- Title Variables -->
2
+ <% phc_title "Marketing Manager" %>
3
+ <% phc_title_tagline "SEO Data Index" %>
4
+ <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
+ <% phc_breadcrumb_two link_to "SEO Data Index", phcdevworks_core_modules.marketing_optimizations_path %>
6
+ <!-- -PHCDEV- Title Variables -->
7
+
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
+ </ol>
13
+ <!-- -PHCDEV- Bradcrumbs -->
14
+
15
+ <!-- -PHCDEV- Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- -PHCDEV- Header -->
18
+
19
+ <!-- -PHCDEV- Panel -->
20
+ <div class="panel panel-inverse">
21
+
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 -->
27
+
28
+ <!-- -PHCDEV- Panel - Body -->
29
+ <div class="panel-body">
30
+
31
+ <!-- -PHCDEV- Index - Table -->
32
+ <div class="table-responsive">
33
+ <table class="table table-striped table-bordered">
34
+
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>
64
+
65
+ </table>
66
+ </div>
67
+ <!-- -PHCDEV- Index - Table -->
68
+
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 -->
75
+
76
+ </div>
77
+ <!-- -PHCDEV- Panel - Body -->
78
+
79
+ </div>
80
+ <!-- -PHCDEV- Panel -->
@@ -1,47 +1,39 @@
1
- <!-- PHCTitleSEO Title Variables -->
2
- <% phc_title "Marketing Manager" %>
3
- <% phc_title_tagline "Add New SEO Data" %>
4
- <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
- <% phc_breadcrumb_two link_to "SEO Data Index", phcdevworks_core_modules.marketing_optimizations_path %>
6
- <!-- PHCTitleSEO Title Variables -->
7
-
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
10
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
- </ol>
13
- <!-- Page Bradcrumbs -->
14
-
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
18
-
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
22
-
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 -->
38
-
39
- </div>
40
- <!-- Panel - Body -->
41
-
42
- </div>
43
- <!-- Panel -->
44
-
45
- </div>
46
- </div>
47
- <!-- Page Content -->
1
+ <!-- -PHCDEV- Title Variables -->
2
+ <% phc_title "Marketing Manager" %>
3
+ <% phc_title_tagline "Add New SEO Data" %>
4
+ <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
+ <% phc_breadcrumb_two link_to "SEO Data Index", phcdevworks_core_modules.marketing_optimizations_path %>
6
+ <!-- -PHCDEV- Title Variables -->
7
+
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
+ </ol>
13
+ <!-- -PHCDEV- Bradcrumbs -->
14
+
15
+ <!-- -PHCDEV- Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- -PHCDEV- Header -->
18
+
19
+ <!-- -PHCDEV- Panel -->
20
+ <div class="panel panel-inverse">
21
+
22
+ <!-- -PHCDEV- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- -PHCDEV- Panel - Heading -->
27
+
28
+ <!-- -PHCDEV- Panel - Body -->
29
+ <div class="panel-body">
30
+
31
+ <!-- -PHCDEV- New Form -->
32
+ <%= render 'form', marketing_optimization: @marketing_optimization %>
33
+ <!-- -PHCDEV- Edit Form -->
34
+
35
+ </div>
36
+ <!-- -PHCDEV- Panel - Body -->
37
+
38
+ </div>
39
+ <!-- -PHCDEV- Panel -->
@@ -1,54 +1,54 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
- <p>
4
- <strong>Page Title:</strong>
5
- <%= @marketing_optimization.marketing_optimization_page_title %>
6
- </p>
7
-
8
- <p>
9
- <strong>Page Description:</strong>
10
- <%= @marketing_optimization.marketing_optimization_page_description %>
11
- </p>
12
-
13
- <p>
14
- <strong>Open Graph Title:</strong>
15
- <%= @marketing_optimization.marketing_optimization_og_title %>
16
- </p>
17
-
18
- <p>
19
- <strong>Open Graph Description:</strong>
20
- <%= @marketing_optimization.marketing_optimization_og_description %>
21
- </p>
22
-
23
- <p>
24
- <strong>Open Graph Type:</strong>
25
- <%= @marketing_optimization.marketing_optimization_og_type %>
26
- </p>
27
-
28
- <p>
29
- <strong>Open Graph URL:</strong>
30
- <%= @marketing_optimization.marketing_optimization_og_url %>
31
- </p>
32
-
33
- <p>
34
- <strong>Twitter Title:</strong>
35
- <%= @marketing_optimization.marketing_optimization_twitter_title %>
36
- </p>
37
-
38
- <p>
39
- <strong>Twitter Description:</strong>
40
- <%= @marketing_optimization.marketing_optimization_twitter_description %>
41
- </p>
42
-
43
- <p>
44
- <strong>Twitter Type:</strong>
45
- <%= @marketing_optimization.marketing_optimization_twitter_type %>
46
- </p>
47
-
48
- <p>
49
- <strong>Twitter URL:</strong>
50
- <%= @marketing_optimization.marketing_optimization_twitter_url %>
51
- </p>
52
-
53
- <%= link_to 'Edit', edit_marketing_optimization_path(@marketing_optimization) %> |
54
- <%= link_to 'Back', marketing_optimizations_path %>
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <p>
4
+ <strong>Page Title:</strong>
5
+ <%= @marketing_optimization.marketing_optimization_page_title %>
6
+ </p>
7
+
8
+ <p>
9
+ <strong>Page Description:</strong>
10
+ <%= @marketing_optimization.marketing_optimization_page_description %>
11
+ </p>
12
+
13
+ <p>
14
+ <strong>Open Graph Title:</strong>
15
+ <%= @marketing_optimization.marketing_optimization_og_title %>
16
+ </p>
17
+
18
+ <p>
19
+ <strong>Open Graph Description:</strong>
20
+ <%= @marketing_optimization.marketing_optimization_og_description %>
21
+ </p>
22
+
23
+ <p>
24
+ <strong>Open Graph Type:</strong>
25
+ <%= @marketing_optimization.marketing_optimization_og_type %>
26
+ </p>
27
+
28
+ <p>
29
+ <strong>Open Graph URL:</strong>
30
+ <%= @marketing_optimization.marketing_optimization_og_url %>
31
+ </p>
32
+
33
+ <p>
34
+ <strong>Twitter Title:</strong>
35
+ <%= @marketing_optimization.marketing_optimization_twitter_title %>
36
+ </p>
37
+
38
+ <p>
39
+ <strong>Twitter Description:</strong>
40
+ <%= @marketing_optimization.marketing_optimization_twitter_description %>
41
+ </p>
42
+
43
+ <p>
44
+ <strong>Twitter Type:</strong>
45
+ <%= @marketing_optimization.marketing_optimization_twitter_type %>
46
+ </p>
47
+
48
+ <p>
49
+ <strong>Twitter URL:</strong>
50
+ <%= @marketing_optimization.marketing_optimization_twitter_url %>
51
+ </p>
52
+
53
+ <%= link_to 'Edit', edit_marketing_optimization_path(@marketing_optimization) %> |
54
+ <%= link_to 'Back', marketing_optimizations_path %>
@@ -1,22 +1,22 @@
1
- <!-- Form - Category -->
2
- <%= form_with(model: post_category, local: true) do |form| %>
3
-
4
- <!-- PHCNotifi Render Validation -->
5
- <%= render "phcdevworks_notifications/bootstrap/validations", :object => @post_category %>
6
- <!-- PHCNotifi Render Validation -->
7
-
8
- <!-- Form Input Fields -->
9
- <div class="form-group">
10
- <%= form.label :post_category_name, "Category Name" %>
11
- <%= form.text_field :post_category_name, class: "form-control" %>
12
- </div>
13
- <!-- Form Input Fields -->
14
-
15
- <!-- Form Submition Button -->
16
- <div class="actions">
17
- <%= form.submit class: "btn btn-primary" %>
18
- </div>
19
- <!-- For Submition Button -->
20
-
21
- <% end %>
22
- <!-- Form - Category -->
1
+ <!-- Form - Category - Post -->
2
+ <%= form_with(model: post_category, local: true) do |form| %>
3
+
4
+ <!-- PHCNotifi Render Validation -->
5
+ <%= render "phcdevworks_notifications/bootstrap/validations", :object => @post_category %>
6
+ <!-- PHCNotifi Render Validation -->
7
+
8
+ <!-- Form Input Fields -->
9
+ <div class="mb-3">
10
+ <%= form.label :post_category_name, "Category Name", class: "form-label" %>
11
+ <%= form.text_field :post_category_name, class: "form-control" %>
12
+ </div>
13
+ <!-- Form Input Fields -->
14
+
15
+ <!-- Form Submition Button -->
16
+ <div class="actions">
17
+ <%= form.submit class: "btn btn-primary" %>
18
+ </div>
19
+ <!-- For Submition Button -->
20
+
21
+ <% end %>
22
+ <!-- Form - Category - Post -->
@@ -1,47 +1,39 @@
1
- <!-- PHCTitleSEO Title Variables -->
2
- <% phc_title "Category Manager" %>
3
- <% phc_title_tagline "Update Category" %>
4
- <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
- <% phc_breadcrumb_two link_to "Category Index", phcdevworks_core_modules.post_categories_path %>
6
- <!-- PHCTitleSEO Title Variables -->
7
-
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
10
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
- </ol>
13
- <!-- Page Bradcrumbs -->
14
-
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
18
-
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
22
-
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 -->
38
-
39
- </div>
40
- <!-- Panel - Body -->
41
-
42
- </div>
43
- <!-- Panel -->
44
-
45
- </div>
46
- </div>
47
- <!-- Page Content -->
1
+ <!-- -PHCDEV- Title Variables -->
2
+ <% phc_title "Category Manager" %>
3
+ <% phc_title_tagline "Update Category" %>
4
+ <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
+ <% phc_breadcrumb_two link_to "Category Index", phcdevworks_core_modules.post_categories_path %>
6
+ <!-- -PHCDEV- Title Variables -->
7
+
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
+ </ol>
13
+ <!-- -PHCDEV- Bradcrumbs -->
14
+
15
+ <!-- -PHCDEV- Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- -PHCDEV- Header -->
18
+
19
+ <!-- -PHCDEV- Panel -->
20
+ <div class="panel panel-inverse">
21
+
22
+ <!-- -PHCDEV- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- -PHCDEV- Panel - Heading -->
27
+
28
+ <!-- -PHCDEV- Panel - Body -->
29
+ <div class="panel-body">
30
+
31
+ <!-- -PHCDEV- Edit Form -->
32
+ <%= render 'form', post_category: @post_category %>
33
+ <!-- -PHCDEV- Edit Form -->
34
+
35
+ </div>
36
+ <!-- -PHCDEV- Panel - Body -->
37
+
38
+ </div>
39
+ <!-- -PHCDEV- Panel -->