phcdevworks_tutorials 12.2.0 → 13.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +20 -20
  3. data/README.md +0 -0
  4. data/Rakefile +8 -8
  5. data/app/assets/config/phcdevworks_tutorials_manifest.js +2 -3
  6. data/app/controllers/phcdevworks_tutorials/application_controller.rb +0 -0
  7. data/app/controllers/phcdevworks_tutorials/blog/commands_controller.rb +0 -0
  8. data/app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb +0 -0
  9. data/app/controllers/phcdevworks_tutorials/command/items_controller.rb +0 -0
  10. data/app/controllers/phcdevworks_tutorials/command/posts_controller.rb +0 -0
  11. data/app/controllers/phcdevworks_tutorials/tutorial/posts_controller.rb +0 -0
  12. data/app/controllers/phcdevworks_tutorials/tutorial/steps_controller.rb +0 -0
  13. data/app/helpers/phcdevworks_tutorials/application_helper.rb +0 -0
  14. data/app/helpers/phcdevworks_tutorials/blog/commands_helper.rb +0 -0
  15. data/app/helpers/phcdevworks_tutorials/blog/tutorials_helper.rb +0 -0
  16. data/app/helpers/phcdevworks_tutorials/command/items_helper.rb +0 -0
  17. data/app/helpers/phcdevworks_tutorials/command/posts_helper.rb +0 -0
  18. data/app/helpers/phcdevworks_tutorials/tutorial/posts_helper.rb +0 -0
  19. data/app/helpers/phcdevworks_tutorials/tutorial/steps_helper.rb +0 -0
  20. data/app/jobs/phcdevworks_tutorials/application_job.rb +0 -0
  21. data/app/mailers/phcdevworks_tutorials/application_mailer.rb +0 -0
  22. data/app/models/phcdevworks_tutorials/application_record.rb +0 -0
  23. data/app/models/phcdevworks_tutorials/command/item.rb +1 -1
  24. data/app/models/phcdevworks_tutorials/command/post.rb +1 -1
  25. data/app/models/phcdevworks_tutorials/command.rb +0 -0
  26. data/app/models/phcdevworks_tutorials/command_item_versions.rb +0 -0
  27. data/app/models/phcdevworks_tutorials/command_post_versions.rb +0 -0
  28. data/app/models/phcdevworks_tutorials/tutorial/post.rb +1 -1
  29. data/app/models/phcdevworks_tutorials/tutorial/step.rb +1 -1
  30. data/app/models/phcdevworks_tutorials/tutorial.rb +0 -0
  31. data/app/models/phcdevworks_tutorials/tutorial_post_versions.rb +0 -0
  32. data/app/models/phcdevworks_tutorials/tutorial_step_versions.rb +0 -0
  33. data/app/views/layouts/phcdevworks_tutorials/application.html.erb +73 -131
  34. data/app/views/layouts/phcdevworks_tutorials/components/backend/footer/_footer.html.erb +10 -9
  35. data/app/views/layouts/phcdevworks_tutorials/components/backend/navigation/_top_menu.html.erb +26 -25
  36. data/app/views/layouts/phcdevworks_tutorials/components/backend/sidebars/_side_menu.html.erb +491 -349
  37. data/app/views/phcdevworks_tutorials/blog/commands/index.html.erb +0 -0
  38. data/app/views/phcdevworks_tutorials/blog/commands/show.html.erb +0 -0
  39. data/app/views/phcdevworks_tutorials/blog/tutorials/index.html.erb +0 -0
  40. data/app/views/phcdevworks_tutorials/blog/tutorials/show.html.erb +0 -0
  41. data/app/views/phcdevworks_tutorials/command/items/_form.html.erb +16 -16
  42. data/app/views/phcdevworks_tutorials/command/items/edit.html.erb +23 -31
  43. data/app/views/phcdevworks_tutorials/command/items/index.html.erb +54 -62
  44. data/app/views/phcdevworks_tutorials/command/items/new.html.erb +23 -31
  45. data/app/views/phcdevworks_tutorials/command/items/show.html.erb +0 -0
  46. data/app/views/phcdevworks_tutorials/command/posts/_form.html.erb +11 -11
  47. data/app/views/phcdevworks_tutorials/command/posts/edit.html.erb +17 -25
  48. data/app/views/phcdevworks_tutorials/command/posts/index.html.erb +48 -56
  49. data/app/views/phcdevworks_tutorials/command/posts/new.html.erb +17 -25
  50. data/app/views/phcdevworks_tutorials/command/posts/show.html.erb +40 -48
  51. data/app/views/phcdevworks_tutorials/tutorial/posts/_form.html.erb +19 -19
  52. data/app/views/phcdevworks_tutorials/tutorial/posts/edit.html.erb +23 -31
  53. data/app/views/phcdevworks_tutorials/tutorial/posts/index.html.erb +56 -65
  54. data/app/views/phcdevworks_tutorials/tutorial/posts/new.html.erb +23 -31
  55. data/app/views/phcdevworks_tutorials/tutorial/posts/show.html.erb +48 -56
  56. data/app/views/phcdevworks_tutorials/tutorial/steps/_form.html.erb +20 -20
  57. data/app/views/phcdevworks_tutorials/tutorial/steps/edit.html.erb +23 -31
  58. data/app/views/phcdevworks_tutorials/tutorial/steps/index.html.erb +54 -62
  59. data/app/views/phcdevworks_tutorials/tutorial/steps/new.html.erb +23 -31
  60. data/config/routes.rb +0 -4
  61. data/config/spring.rb +0 -0
  62. data/db/migrate/20191017235259_create_phcdevworks_tutorials_tutorial_posts.rb +1 -1
  63. data/db/migrate/20191017235421_create_phcdevworks_tutorials_tutorial_steps.rb +1 -1
  64. data/db/migrate/20191024232406_create_phcdevworks_tutorials_tutorial_categories_posts.rb +1 -1
  65. data/db/migrate/20191102093129_create_phcdevworks_tutorials_tutorial_post_versions.rb +1 -1
  66. data/db/migrate/20191102093146_create_phcdevworks_tutorials_tutorial_step_versions.rb +1 -1
  67. data/db/migrate/20200320110115_create_phcdevworks_tutorials_command_posts.rb +1 -1
  68. data/db/migrate/20200320110553_create_phcdevworks_tutorials_command_items.rb +1 -1
  69. data/db/migrate/20200321122525_create_phcdevworks_tutorials_command_item_versions.rb +1 -1
  70. data/db/migrate/20200321122606_create_phcdevworks_tutorials_command_post_versions.rb +1 -1
  71. data/db/migrate/20200328012248_create_phcdevworks_tutorials_command_categories_posts.rb +1 -1
  72. data/lib/phcdevworks_tutorials/engine.rb +47 -47
  73. data/lib/phcdevworks_tutorials/version.rb +1 -1
  74. data/lib/phcdevworks_tutorials.rb +6 -6
  75. data/lib/tasks/phcdevworks_tutorials_tasks.rake +4 -4
  76. metadata +34 -85
  77. data/app/assets/stylesheets/phcdevworks_tutorials/application.scss +0 -0
  78. data/app/assets/stylesheets/phcdevworks_tutorials/blog/commands.scss +0 -3
  79. data/app/assets/stylesheets/phcdevworks_tutorials/blog/tutorials.scss +0 -3
  80. data/app/assets/stylesheets/phcdevworks_tutorials/command/items.scss +0 -3
  81. data/app/assets/stylesheets/phcdevworks_tutorials/command/posts.scss +0 -3
  82. data/app/assets/stylesheets/phcdevworks_tutorials/tutorial/posts.css +0 -4
  83. data/app/assets/stylesheets/phcdevworks_tutorials/tutorial/steps.css +0 -4
  84. data/app/views/layouts/phcdevworks_tutorials/frontend.html.erb +0 -0
@@ -1,28 +1,28 @@
1
- <!-- Form - Command - Item -->
1
+ <!-- -PHCDEV- Form - Command - Item -->
2
2
  <%= form_with(model: [@command_post, @command_item], url: form_url, local: true) do |form| %>
3
3
 
4
- <!-- PHCNotifi Render Validation -->
4
+ <!-- -PHCDEV- Form Validation -->
5
5
  <%= render "phcdevworks_notifications/bootstrap/validations", :object => @command_item %>
6
- <!-- PHCNotifi Render Validation -->
6
+ <!-- -PHCDEV- Form Validation -->
7
7
 
8
- <!-- Form Input Fields -->
9
- <div class="form-group">
10
- <%= form.label :command_item_title, "Command Name" %>
8
+ <!-- -PHCDEV- Form Input Fields -->
9
+ <div class="mb-3">
10
+ <%= form.label :command_item_title, "Command Name", class: "form-label" %>
11
11
  <%= form.text_field :command_item_title, class: "form-control" %>
12
12
  </div>
13
13
 
14
- <div class="form-group">
15
- <%= form.label :command_item_text, "Command Description" %>
14
+ <div class="mb-3">
15
+ <%= form.label :command_item_text, "Command Description", class: "form-label" %>
16
16
  <%= form.text_area :command_item_text, class: "form-control" %>
17
17
  </div>
18
18
 
19
- <div class="form-group">
20
- <%= form.label :command_item_copy_command, "Copy Command" %>
19
+ <div class="mb-3">
20
+ <%= form.label :command_item_copy_command, "Copy Command", class: "form-label" %>
21
21
  <%= form.text_field :command_item_copy_command, class: "form-control" %>
22
22
  </div>
23
23
 
24
- <div class="form-group field_with_errors">
25
- <%= form.label :command_item_image, "Featured Image" %>
24
+ <div class="mb-3">
25
+ <%= form.label :command_item_image, "Featured Image", class: "form-label" %>
26
26
  <%= form.file_field :command_item_image, class: "form-control" %>
27
27
  </div>
28
28
 
@@ -30,13 +30,13 @@
30
30
  <%= image_tag main_app.url_for(form.object.command_item_image), class: "img-responsive img-thumbnail" %>
31
31
  <% end %>
32
32
 
33
- <!-- Form Input Fields -->
33
+ <!-- -PHCDEV- Form Input Fields -->
34
34
 
35
- <!-- Form Submition Button -->
35
+ <!-- -PHCDEV- Form Submition Button -->
36
36
  <div class="actions">
37
37
  <%= form.submit class: "btn btn-primary" %>
38
38
  </div>
39
- <!-- For Submition Button -->
39
+ <!-- -PHCDEV- For Submition Button -->
40
40
 
41
41
  <% end %>
42
- <!-- Form - Command - Item -->
42
+ <!-- -PHCDEV- Form - Command - Item -->
@@ -1,47 +1,39 @@
1
- <!-- PHCTitleSEO Title Variables -->
1
+ <!-- -PHCDEV- Title Variables -->
2
2
  <% phc_title "Command Item Manager" %>
3
3
  <% phc_title_tagline "Update Command Item" %>
4
4
  <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
5
  <% phc_breadcrumb_two link_to "Command Items Index", phcdevworks_tutorials.command_post_items_path %>
6
- <!-- PHCTitleSEO Title Variables -->
6
+ <!-- -PHCDEV- Title Variables -->
7
7
 
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
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
- <!-- Page Bradcrumbs -->
13
+ <!-- -PHCDEV- Bradcrumbs -->
14
14
 
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
15
+ <!-- -PHCDEV- Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- -PHCDEV- 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', { form_url: command_post_item_path } %>
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', { form_url: command_post_item_path } %>
33
+ <!-- -PHCDEV- Edit Form -->
44
34
 
45
35
  </div>
36
+ <!-- -PHCDEV- Panel - Body -->
37
+
46
38
  </div>
47
- <!-- Page Content -->
39
+ <!-- -PHCDEV- Panel -->
@@ -1,82 +1,74 @@
1
- <!-- PHCTitleSEO Title Variables -->
1
+ <!-- -PHCDEV- Title Variables -->
2
2
  <% phc_title "Command Item Manager" %>
3
3
  <% phc_title_tagline "Command Item Index" %>
4
4
  <% phc_breadcrumb_one link_to "Command List Index", phcdevworks_tutorials.command_posts_path %>
5
5
  <% phc_breadcrumb_two "Command Items" %>
6
- <!-- PHCTitleSEO Title Variables -->
6
+ <!-- -PHCDEV- Title Variables -->
7
7
 
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
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
- <!-- Page Bradcrumbs -->
13
+ <!-- -PHCDEV- Bradcrumbs -->
14
14
 
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
15
+ <!-- -PHCDEV- Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- -PHCDEV- 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>Item Name</th>
42
- <th>Description</th>
43
- <th></th>
44
- </tr>
45
- </thead>
22
+ <!-- -PHCDEV- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- -PHCDEV- Panel - Heading -->
46
27
 
47
- <tbody>
48
- <% @command_items.each do |command_item| %>
49
- <tr>
50
- <td><%= command_item.command_item_title %></td>
51
- <td><%= truncate(command_item.command_item_text, :length => 80, :escape => false) %></td>
52
- <td>
53
- <div class="btn-group d-flex" role="group">
54
- <%= link_to "Update Item", edit_command_post_item_path(command_item.post, command_item), class: "btn btn-primary btn-xs" %>
55
- <%= link_to "Remove Item", command_post_item_path(command_item.post, command_item), method: :delete, data: { confirm: "Are you sure? This Action Cannot be Reversed." }, class: "btn btn-danger btn-xs" %>
56
- </div>
57
- </td>
58
- </tr>
59
- <% end %>
60
-
61
- </tbody>
28
+ <!-- -PHCDEV- Panel - Body -->
29
+ <div class="panel-body">
62
30
 
63
- </table>
64
- </div>
65
- <!-- Index - Table -->
31
+ <!-- -PHCDEV- Index - Table -->
32
+ <div class="table-responsive">
33
+ <table class="table table-striped table-bordered">
66
34
 
67
- <!-- New Button -->
68
- <%= link_to phcdevworks_tutorials.new_command_post_item_path, class: "btn btn-primary btn-sm" do %>
69
- <i class="fad fa-plus-circle"></i>
70
- Add a New Item to Command List
71
- <% end %>
72
- <!-- New Button -->
35
+ <thead>
36
+ <tr>
37
+ <th>Item Name</th>
38
+ <th>Description</th>
39
+ <th></th>
40
+ </tr>
41
+ </thead>
73
42
 
74
- </div>
75
- <!-- Panel - Body -->
43
+ <tbody>
44
+ <% @command_items.each do |command_item| %>
45
+ <tr>
46
+ <td><%= command_item.command_item_title %></td>
47
+ <td><%= truncate(command_item.command_item_text, :length => 80, :escape => false) %></td>
48
+ <td>
49
+ <div class="btn-group d-flex" role="group">
50
+ <%= link_to "Update Item", edit_command_post_item_path(command_item.post, command_item), class: "btn btn-primary btn-xs" %>
51
+ <%= link_to "Remove Item", command_post_item_path(command_item.post, command_item), method: :delete, data: { confirm: "Are you sure? This Action Cannot be Reversed." }, class: "btn btn-danger btn-xs" %>
52
+ </div>
53
+ </td>
54
+ </tr>
55
+ <% end %>
56
+
57
+ </tbody>
76
58
 
59
+ </table>
77
60
  </div>
78
- <!-- Panel -->
61
+ <!-- -PHCDEV- Index - Table -->
62
+
63
+ <!-- -PHCDEV- New Button -->
64
+ <%= link_to phcdevworks_tutorials.new_command_post_item_path, class: "btn btn-primary btn-sm" do %>
65
+ <i class="fad fa-plus-circle"></i>
66
+ Add a New Item to Command List
67
+ <% end %>
68
+ <!-- -PHCDEV- New Button -->
79
69
 
80
70
  </div>
71
+ <!-- -PHCDEV- Panel - Body -->
72
+
81
73
  </div>
82
- <!-- Page Content -->
74
+ <!-- -PHCDEV- Panel -->
@@ -1,47 +1,39 @@
1
- <!-- PHCTitleSEO Title Variables -->
1
+ <!-- -PHCDEV- Title Variables -->
2
2
  <% phc_title "Command Item Manager" %>
3
3
  <% phc_title_tagline "Add a Command Item" %>
4
4
  <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
5
  <% phc_breadcrumb_two link_to "Command Items Index", phcdevworks_tutorials.command_post_items_path %>
6
- <!-- PHCTitleSEO Title Variables -->
6
+ <!-- -PHCDEV- Title Variables -->
7
7
 
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
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
- <!-- Page Bradcrumbs -->
13
+ <!-- -PHCDEV- Bradcrumbs -->
14
14
 
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
15
+ <!-- -PHCDEV- Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- -PHCDEV- 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', { form_url: command_post_items_path } %>
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', { form_url: command_post_items_path } %>
33
+ <!-- -PHCDEV- Edit Form -->
44
34
 
45
35
  </div>
36
+ <!-- -PHCDEV- Panel - Body -->
37
+
46
38
  </div>
47
- <!-- Page Content -->
39
+ <!-- -PHCDEV- Panel -->
@@ -6,23 +6,23 @@
6
6
  <!-- PHCNotifi Render Validation -->
7
7
 
8
8
  <!-- Form Input Fields -->
9
- <div class="form-group">
10
- <%= form.label :command_post_title, "Command List Title" %>
9
+ <div class="mb-3">
10
+ <%= form.label :command_post_title, "Command List Title", class: "form-label" %>
11
11
  <%= form.text_field :command_post_title, class: "form-control" %>
12
12
  </div>
13
13
 
14
- <div class="form-group">
15
- <%= form.label :command_post_text, "Command List Description" %>
14
+ <div class="mb-3">
15
+ <%= form.label :command_post_text, "Command List Description", class: "form-label" %>
16
16
  <%= form.text_area :command_post_text, class: "form-control editor" %>
17
17
  </div>
18
18
 
19
- <div class="form-group">
20
- <%= form.label :command_post_status, "Command List Status" %>
19
+ <div class="mb-3">
20
+ <%= form.label :command_post_status, "Command List Status", class: "form-label" %>
21
21
  <%= form.select( :command_post_status, [["Draft","draft"],["Published","published"],["Review","review"]], {}, {class: "form-control"}) %>
22
22
  </div>
23
23
 
24
- <div class="form-group">
25
- <%= form.label :command_post_image, "Featured Image" %>
24
+ <div class="mb-3">
25
+ <%= form.label :command_post_image, "Featured Image", class: "form-label" %>
26
26
  <%= form.file_field :command_post_image, class: "form-control" %>
27
27
  </div>
28
28
 
@@ -30,7 +30,7 @@
30
30
  <%= image_tag main_app.url_for(form.object.command_post_image), class: "img-responsive img-thumbnail" %>
31
31
  <% end %>
32
32
 
33
- <div class="form-group">
33
+ <div class="mb-3">
34
34
  <label>Select a Category</label>
35
35
  <div class="panel-body">
36
36
  <%= form.collection_check_boxes :category_ids, PhcdevworksCoreModules::Post::Category.all, :id, :post_category_name do |post_category| %>
@@ -40,8 +40,8 @@
40
40
  </div>
41
41
  </div>
42
42
 
43
- <div class="form-group">
44
- <label>Attach SEO Data</label>
43
+ <div class="mb-3">
44
+ <label class="form-label">Attach SEO Data</label>
45
45
  <%= collection_select(:command_post, :optimization_id, PhcdevworksCoreModules::Marketing::Optimization.order("marketing_optimization_page_title"), :id, :marketing_optimization_page_title, {}, {class: "form-control"}) %>
46
46
  </div>
47
47
  <!-- Form Input Fields -->
@@ -6,42 +6,34 @@
6
6
  <!-- PHCTitleSEO Title Variables -->
7
7
 
8
8
  <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
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
  <!-- Page Bradcrumbs -->
14
14
 
15
15
  <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
17
  <!-- Page Header -->
18
18
 
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
19
+ <!-- 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', command_post: @command_post %>
37
- <!-- Edit Form -->
22
+ <!-- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- Panel - Heading -->
38
27
 
39
- </div>
40
- <!-- Panel - Body -->
28
+ <!-- Panel - Body -->
29
+ <div class="panel-body">
41
30
 
42
- </div>
43
- <!-- Panel -->
31
+ <!-- Edit Form -->
32
+ <%= render 'form', command_post: @command_post %>
33
+ <!-- Edit Form -->
44
34
 
45
35
  </div>
36
+ <!-- Panel - Body -->
37
+
46
38
  </div>
47
- <!-- Page Content -->
39
+ <!-- Panel -->
@@ -6,76 +6,68 @@
6
6
  <!-- PHCTitleSEO Title Variables -->
7
7
 
8
8
  <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
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
  <!-- Page Bradcrumbs -->
14
14
 
15
15
  <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
17
  <!-- Page Header -->
18
18
 
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
19
+ <!-- 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">
22
+ <!-- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- Panel - Heading -->
34
27
 
35
- <!-- Index - Table -->
36
- <div class="table-responsive">
37
- <table class="table table-striped table-bordered">
28
+ <!-- Panel - Body -->
29
+ <div class="panel-body">
38
30
 
39
- <thead>
40
- <tr>
41
- <th>Post title</th>
42
- <th>Post description</th>
43
- <th colspan="3"></th>
44
- </tr>
45
- </thead>
46
-
47
- <tbody>
48
- <% @command_posts.each do |command_post| %>
49
- <tr>
50
- <td><%= command_post.command_post_title %></td>
51
- <td><%= truncate(command_post.command_post_text, :length => 80, :escape => false) %></td>
52
- <td>
53
- <div class="btn-group d-flex" role="group">
54
- <%= link_to "List Details", command_post, class: "btn btn-purple btn-xs" %>
55
- <%= link_to "Update List", edit_command_post_path(command_post), class: "btn btn-primary btn-xs" %>
56
- <%= link_to "Remove List", command_post, method: :delete, data: { confirm: "Are you sure? This action cannot be reversed." }, class: "btn btn-danger btn-xs" %>
57
- </div>
58
- </td>
59
- </tr>
60
- <% end %>
61
- </tbody>
62
- </table>
63
- </div>
64
- <!-- Index - Table -->
31
+ <!-- Index - Table -->
32
+ <div class="table-responsive">
33
+ <table class="table table-striped table-bordered">
65
34
 
66
- <!-- New Button -->
67
- <%= link_to phcdevworks_tutorials.new_command_post_path, class: "btn btn-primary btn-sm" do %>
68
- <i class="fad fa-plus-circle"></i>
69
- Add a New Command List
35
+ <thead>
36
+ <tr>
37
+ <th>Post title</th>
38
+ <th>Post description</th>
39
+ <th colspan="3"></th>
40
+ </tr>
41
+ </thead>
42
+
43
+ <tbody>
44
+ <% @command_posts.each do |command_post| %>
45
+ <tr>
46
+ <td><%= command_post.command_post_title %></td>
47
+ <td><%= truncate(command_post.command_post_text, :length => 80, :escape => false) %></td>
48
+ <td>
49
+ <div class="btn-group d-flex" role="group">
50
+ <%= link_to "List Details", command_post, class: "btn btn-purple btn-xs" %>
51
+ <%= link_to "Update List", edit_command_post_path(command_post), class: "btn btn-primary btn-xs" %>
52
+ <%= link_to "Remove List", command_post, method: :delete, data: { confirm: "Are you sure? This action cannot be reversed." }, class: "btn btn-danger btn-xs" %>
53
+ </div>
54
+ </td>
55
+ </tr>
70
56
  <% end %>
71
- <!-- New Button -->
72
-
73
- </div>
74
- <!-- Panel - Body -->
75
-
57
+ </tbody>
58
+ </table>
76
59
  </div>
77
- <!-- Panel -->
60
+ <!-- Index - Table -->
61
+
62
+ <!-- New Button -->
63
+ <%= link_to phcdevworks_tutorials.new_command_post_path, class: "btn btn-primary btn-sm" do %>
64
+ <i class="fad fa-plus-circle"></i>
65
+ Add a New Command List
66
+ <% end %>
67
+ <!-- New Button -->
78
68
 
79
69
  </div>
70
+ <!-- Panel - Body -->
71
+
80
72
  </div>
81
- <!-- Page Content -->
73
+ <!-- Panel -->
@@ -6,44 +6,36 @@
6
6
  <!-- PHCTitleSEO Title Variables -->
7
7
 
8
8
  <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
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
  <!-- Page Bradcrumbs -->
14
14
 
15
15
  <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
17
  <!-- Page Header -->
18
18
 
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
19
+ <!-- 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', command_post: @command_post %>
37
- <!-- Edit Form -->
22
+ <!-- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- Panel - Heading -->
38
27
 
39
- </div>
40
- <!-- Panel - Body -->
28
+ <!-- Panel - Body -->
29
+ <div class="panel-body">
41
30
 
42
- </div>
43
- <!-- Panel -->
31
+ <!-- Edit Form -->
32
+ <%= render 'form', command_post: @command_post %>
33
+ <!-- Edit Form -->
44
34
 
45
35
  </div>
36
+ <!-- Panel - Body -->
37
+
46
38
  </div>
47
- <!-- Page Content -->
39
+ <!-- Panel -->
48
40
 
49
41
  <%= link_to 'Back', command_posts_path %>