phcdevworks_tutorials 12.2.0 → 13.0.0

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 +28 -79
  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
@@ -6,69 +6,61 @@
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
- <!-- Index - Table -->
36
- <div class="table-responsive">
37
- <table class="table table-striped table-bordered">
38
-
39
- <thead>
40
- <tr>
41
- <th>Command Item Title</th>
42
- <th>Command Item Description</th>
43
- </tr>
44
- </thead>
22
+ <!-- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- Panel - Heading -->
45
27
 
46
- <tbody>
47
- <% @command_post.items.order('command_item_title ASC').each do |command_item| %>
48
- <tr>
49
- <td><%= command_item.command_item_title %></td>
50
- <td><%= command_item.command_item_text %></td>
51
- </tr>
52
- <% end %>
53
- </tbody>
28
+ <!-- Panel - Body -->
29
+ <div class="panel-body">
54
30
 
55
- </table>
56
- </div>
57
- <!-- Index - Table -->
31
+ <!-- Index - Table -->
32
+ <div class="table-responsive">
33
+ <table class="table table-striped table-bordered">
58
34
 
59
- <!-- New Button -->
60
- <%= link_to phcdevworks_tutorials.command_post_items_path(@command_post), class: "btn btn-primary btn-sm" do %>
61
- <i class="fad fa-plus-circle"></i>
62
- Add or Update Command Items
63
- <% end %>
64
- <!-- New Button -->
35
+ <thead>
36
+ <tr>
37
+ <th>Command Item Title</th>
38
+ <th>Command Item Description</th>
39
+ </tr>
40
+ </thead>
65
41
 
66
- </div>
67
- <!-- Panel - Body -->
42
+ <tbody>
43
+ <% @command_post.items.order('command_item_title ASC').each do |command_item| %>
44
+ <tr>
45
+ <td><%= command_item.command_item_title %></td>
46
+ <td><%= command_item.command_item_text %></td>
47
+ </tr>
48
+ <% end %>
49
+ </tbody>
68
50
 
51
+ </table>
69
52
  </div>
70
- <!-- Panel -->
53
+ <!-- Index - Table -->
54
+
55
+ <!-- New Button -->
56
+ <%= link_to phcdevworks_tutorials.command_post_items_path(@command_post), class: "btn btn-primary btn-sm" do %>
57
+ <i class="fad fa-plus-circle"></i>
58
+ Add or Update Command Items
59
+ <% end %>
60
+ <!-- New Button -->
71
61
 
72
62
  </div>
63
+ <!-- Panel - Body -->
64
+
73
65
  </div>
74
- <!-- Page Content -->
66
+ <!-- Panel -->
@@ -1,36 +1,36 @@
1
- <!-- Form - Tutorial - Posts -->
1
+ <!-- -PHCDEV- Form - Tutorial - Posts -->
2
2
  <%= form_with(model: tutorial_post, local: true) do |form| %>
3
3
 
4
- <!-- PHCNotifi Render Validation -->
4
+ <!-- -PHCDEV- Form Validation -->
5
5
  <%= render "phcdevworks_notifications/bootstrap/validations", :object => @tutorial_post %>
6
- <!-- PHCNotifi Render Validation -->
6
+ <!-- -PHCDEV- Form Validation -->
7
7
 
8
- <!-- Form Input Fields -->
9
- <div class="form-group">
10
- <%= form.label :tutorial_post_title, "Tutorial Title" %>
8
+ <!-- -PHCDEV- Form Input Fields -->
9
+ <div class="mb-3">
10
+ <%= form.label :tutorial_post_title, "Tutorial Title", class: "form-label" %>
11
11
  <%= form.text_field :tutorial_post_title, placeholder: "Tutorial Title", class: "form-control" %>
12
12
  </div>
13
13
 
14
- <div class="form-group">
15
- <%= form.label :tutorial_post_text, "Tutorial Description" %>
14
+ <div class="mb-3">
15
+ <%= form.label :tutorial_post_text, "Tutorial Description", class: "form-label" %>
16
16
  <%= form.text_area :tutorial_post_text, class: "form-control editor" %>
17
17
  <div id="word-count" class="mt-3"></div>
18
18
  </div>
19
19
 
20
- <div class="form-group">
21
- <%= form.label :tutorial_post_status, "Tutorial Status" %>
20
+ <div class="mb-3">
21
+ <%= form.label :tutorial_post_status, "Tutorial Status", class: "form-label" %>
22
22
  <%= form.select( :tutorial_post_status, [["Draft","draft"],["Published","published"],["Review","review"]], {}, {class: "form-control"}) %>
23
23
  </div>
24
24
 
25
- <div class="form-group">
26
- <%= form.label :tutorial_post_image, "Featured Image" %>
25
+ <div class="mb-3">
26
+ <%= form.label :tutorial_post_image, "Featured Image", class: "form-label" %>
27
27
  <%= form.file_field :tutorial_post_image, class: "form-control" %>
28
28
  </div>
29
29
  <% if form.object.tutorial_post_image.attached? %>
30
30
  <%= image_tag main_app.url_for(form.object.tutorial_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,17 +40,17 @@
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(:tutorial_post, :optimization_id, PhcdevworksCoreModules::Marketing::Optimization.order("marketing_optimization_page_title"), :id, :marketing_optimization_page_title, {}, {class: "form-control"}) %>
46
46
  </div>
47
- <!-- Form Input Fields -->
47
+ <!-- -PHCDEV- Form Input Fields -->
48
48
 
49
- <!-- Form Submition Button -->
49
+ <!-- -PHCDEV- Form Submition Button -->
50
50
  <div class="actions">
51
51
  <%= form.submit class: "btn btn-primary" %>
52
52
  </div>
53
- <!-- For Submition Button -->
53
+ <!-- -PHCDEV- For Submition Button -->
54
54
 
55
55
  <% end %>
56
- <!-- Form - Tutorial - Posts -->
56
+ <!-- -PHCDEV- Form - Tutorial - Posts -->
@@ -1,47 +1,39 @@
1
- <!-- PHCTitleSEO Title Variables -->
1
+ <!-- -PHCDEV- Title Variables -->
2
2
  <% phc_title "Tutorial Post Manager" %>
3
3
  <% phc_title_tagline "Update Tutorial Information" %>
4
4
  <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
5
  <% phc_breadcrumb_two link_to "Tutorial Index", phcdevworks_tutorials.tutorial_posts_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", tutorial_post: @tutorial_post %>
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", tutorial_post: @tutorial_post %>
33
+ <!-- -PHCDEV- Edit Form -->
44
34
 
45
35
  </div>
36
+ <!-- -PHCDEV- Panel - Body -->
37
+
46
38
  </div>
47
- <!-- Page Content -->
39
+ <!-- -PHCDEV- Panel -->
@@ -1,85 +1,76 @@
1
- <!-- PHCTitleSEO Title Variables -->
1
+ <!-- -PHCDEV- Title Variables -->
2
2
  <% phc_title "Tutorial Post Manager" %>
3
3
  <% phc_title_tagline "Tutorial Index" %>
4
4
  <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
5
  <% phc_breadcrumb_two link_to "Tutorial Index", phcdevworks_tutorials.tutorial_posts_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
- <!-- Index - Table -->
36
- <div class="table-responsive">
37
- <table class="table table-striped table-bordered">
38
-
39
- <thead>
40
- <tr>
41
- <th>Tutorial Title</th>
42
- <th>Tutorial Description</th>
43
- <th>Tutorial Status</th>
44
- <th></th>
45
- </tr>
46
- </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 -->
47
27
 
48
- <tbody>
49
- <% @tutorial_posts.each do |tutorial_post| %>
50
- <tr>
51
- <td><%= tutorial_post.tutorial_post_title %></td>
52
- <td><%= truncate(tutorial_post.tutorial_post_text, :length => 80, :escape => false) %></td>
53
- <td><%= tutorial_post.tutorial_post_status.capitalize %></td>
54
- <td>
55
- <div class="btn-group d-flex" role="group">
56
- <%= link_to "Tutorial Details", tutorial_post, class: "btn btn-purple btn-xs" %>
57
- <%= link_to "Update Tutorial", edit_tutorial_post_path(tutorial_post), class: "btn btn-primary btn-xs" %>
58
- <%= link_to "Remove Tutorial", tutorial_post, 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>
28
+ <!-- -PHCDEV- Panel - Body -->
29
+ <div class="panel-body">
64
30
 
65
- </table>
66
- </div>
67
- <!-- Index - Table -->
31
+ <!-- -PHCDEV- Index - Table -->
32
+ <div class="table-responsive">
33
+ <table class="table table-striped table-bordered">
68
34
 
69
- <!-- New Button -->
70
- <%= link_to phcdevworks_tutorials.new_tutorial_post_path, class: "btn btn-primary btn-sm" do %>
71
- <i class="fad fa-plus-circle"></i>
72
- Add a New Tutorial
73
- <% end %>
74
- <!-- New Button -->
35
+ <thead>
36
+ <tr>
37
+ <th>Tutorial Title</th>
38
+ <th>Tutorial Description</th>
39
+ <th>Tutorial Status</th>
40
+ <th></th>
41
+ </tr>
42
+ </thead>
75
43
 
76
- </div>
77
- <!-- Panel - Body -->
44
+ <tbody>
45
+ <% @tutorial_posts.each do |tutorial_post| %>
46
+ <tr>
47
+ <td><%= tutorial_post.tutorial_post_title %></td>
48
+ <td><%= truncate(tutorial_post.tutorial_post_text, :length => 80, :escape => false) %></td>
49
+ <td><%= tutorial_post.tutorial_post_status.capitalize %></td>
50
+ <td>
51
+ <div class="btn-group d-flex" role="group">
52
+ <%= link_to "Tutorial Details", tutorial_post, class: "btn btn-purple btn-xs" %>
53
+ <%= link_to "Update Tutorial", edit_tutorial_post_path(tutorial_post), class: "btn btn-primary btn-xs" %>
54
+ <%= link_to "Remove Tutorial", tutorial_post, 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>
78
60
 
61
+ </table>
79
62
  </div>
80
- <!-- Panel -->
63
+ <!-- -PHCDEV- Index - Table -->
64
+
65
+ <!-- -PHCDEV- New Button -->
66
+ <%= link_to phcdevworks_tutorials.new_tutorial_post_path, class: "btn btn-primary btn-sm" do %>
67
+ <i class="fad fa-plus-circle"></i>
68
+ Add a New Tutorial
69
+ <% end %>
70
+ <!-- -PHCDEV- New Button -->
81
71
 
82
72
  </div>
83
- </div>
84
- <!-- Page Content -->
73
+ <!-- -PHCDEV- Panel - Body -->
85
74
 
75
+ </div>
76
+ <!-- -PHCDEV- Panel -->
@@ -1,47 +1,39 @@
1
- <!-- PHCTitleSEO Title Variables -->
1
+ <!-- -PHCDEV- Title Variables -->
2
2
  <% phc_title "Tutorial Post Manager" %>
3
3
  <% phc_title_tagline "Add a New Tutorial" %>
4
4
  <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
5
  <% phc_breadcrumb_two link_to "Tutorial Index", phcdevworks_tutorials.tutorial_posts_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
- <!-- New Form -->
36
- <%= render "form", tutorial_post: @tutorial_post %>
37
- <!-- New 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", tutorial_post: @tutorial_post %>
33
+ <!-- -PHCDEV- New Form -->
44
34
 
45
35
  </div>
36
+ <!-- -PHCDEV- Panel - Body -->
37
+
46
38
  </div>
47
- <!-- Page Content -->
39
+ <!-- -PHCDEV- Panel -->
@@ -1,76 +1,68 @@
1
- <!-- PHCTitleSEO Title Variables -->
1
+ <!-- -PHCDEV- Title Variables -->
2
2
  <% phc_title "Tutorial Post Manager" %>
3
3
  <% phc_title_tagline "Detailed Tutorial Information & Steps" %>
4
4
  <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
5
  <% phc_breadcrumb_two link_to "Tutorial Index", phcdevworks_tutorials.tutorial_posts_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
- <!-- Index - Table -->
36
- <div class="table-responsive">
37
- <table class="table table-striped table-bordered">
38
-
39
- <thead>
40
- <tr>
41
- <th>Tutorial Step Number</th>
42
- <th>Tutorial Step Title</th>
43
- <th>Tutorial Description</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
- <% @tutorial_post.steps.each do |tutorial_step| %>
49
- <tr>
50
- <td><%= tutorial_step.tutorial_step_number %></td>
51
- <td><%= tutorial_step.tutorial_step_title %></td>
52
- <td><%= tutorial_step.tutorial_step_text %></td>
53
- </tr>
54
- <% end %>
55
- </tbody>
28
+ <!-- -PHCDEV- Panel - Body -->
29
+ <div class="panel-body">
56
30
 
57
- </table>
58
- </div>
59
- <!-- Index - Table -->
31
+ <!-- -PHCDEV- Index - Table -->
32
+ <div class="table-responsive">
33
+ <table class="table table-striped table-bordered">
60
34
 
61
- <!-- New Button -->
62
- <%= link_to phcdevworks_tutorials.tutorial_post_steps_path(@tutorial_post), class: "btn btn-primary btn-sm" do %>
63
- <i class="fad fa-plus-circle"></i>
64
- Add or Update Tutorial Steps
65
- <% end %>
66
- <!-- New Button -->
35
+ <thead>
36
+ <tr>
37
+ <th>Tutorial Step Number</th>
38
+ <th>Tutorial Step Title</th>
39
+ <th>Tutorial Description</th>
40
+ </tr>
41
+ </thead>
67
42
 
68
- </div>
69
- <!-- Panel - Body -->
43
+ <tbody>
44
+ <% @tutorial_post.steps.each do |tutorial_step| %>
45
+ <tr>
46
+ <td><%= tutorial_step.tutorial_step_number %></td>
47
+ <td><%= tutorial_step.tutorial_step_title %></td>
48
+ <td><%= tutorial_step.tutorial_step_text %></td>
49
+ </tr>
50
+ <% end %>
51
+ </tbody>
70
52
 
53
+ </table>
71
54
  </div>
72
- <!-- Panel -->
55
+ <!-- -PHCDEV- Index - Table -->
56
+
57
+ <!-- -PHCDEV- New Button -->
58
+ <%= link_to phcdevworks_tutorials.tutorial_post_steps_path(@tutorial_post), class: "btn btn-primary btn-sm" do %>
59
+ <i class="fad fa-plus-circle"></i>
60
+ Add or Update Tutorial Steps
61
+ <% end %>
62
+ <!-- -PHCDEV- New Button -->
73
63
 
74
64
  </div>
65
+ <!-- -PHCDEV- Panel - Body -->
66
+
75
67
  </div>
76
- <!-- Page Content -->
68
+ <!-- -PHCDEV- Panel -->