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.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -20
- data/README.md +0 -0
- data/Rakefile +8 -8
- data/app/assets/config/phcdevworks_tutorials_manifest.js +2 -3
- data/app/controllers/phcdevworks_tutorials/application_controller.rb +0 -0
- data/app/controllers/phcdevworks_tutorials/blog/commands_controller.rb +0 -0
- data/app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb +0 -0
- data/app/controllers/phcdevworks_tutorials/command/items_controller.rb +0 -0
- data/app/controllers/phcdevworks_tutorials/command/posts_controller.rb +0 -0
- data/app/controllers/phcdevworks_tutorials/tutorial/posts_controller.rb +0 -0
- data/app/controllers/phcdevworks_tutorials/tutorial/steps_controller.rb +0 -0
- data/app/helpers/phcdevworks_tutorials/application_helper.rb +0 -0
- data/app/helpers/phcdevworks_tutorials/blog/commands_helper.rb +0 -0
- data/app/helpers/phcdevworks_tutorials/blog/tutorials_helper.rb +0 -0
- data/app/helpers/phcdevworks_tutorials/command/items_helper.rb +0 -0
- data/app/helpers/phcdevworks_tutorials/command/posts_helper.rb +0 -0
- data/app/helpers/phcdevworks_tutorials/tutorial/posts_helper.rb +0 -0
- data/app/helpers/phcdevworks_tutorials/tutorial/steps_helper.rb +0 -0
- data/app/jobs/phcdevworks_tutorials/application_job.rb +0 -0
- data/app/mailers/phcdevworks_tutorials/application_mailer.rb +0 -0
- data/app/models/phcdevworks_tutorials/application_record.rb +0 -0
- data/app/models/phcdevworks_tutorials/command/item.rb +1 -1
- data/app/models/phcdevworks_tutorials/command/post.rb +1 -1
- data/app/models/phcdevworks_tutorials/command.rb +0 -0
- data/app/models/phcdevworks_tutorials/command_item_versions.rb +0 -0
- data/app/models/phcdevworks_tutorials/command_post_versions.rb +0 -0
- data/app/models/phcdevworks_tutorials/tutorial/post.rb +1 -1
- data/app/models/phcdevworks_tutorials/tutorial/step.rb +1 -1
- data/app/models/phcdevworks_tutorials/tutorial.rb +0 -0
- data/app/models/phcdevworks_tutorials/tutorial_post_versions.rb +0 -0
- data/app/models/phcdevworks_tutorials/tutorial_step_versions.rb +0 -0
- data/app/views/layouts/phcdevworks_tutorials/application.html.erb +73 -131
- data/app/views/layouts/phcdevworks_tutorials/components/backend/footer/_footer.html.erb +10 -9
- data/app/views/layouts/phcdevworks_tutorials/components/backend/navigation/_top_menu.html.erb +26 -25
- data/app/views/layouts/phcdevworks_tutorials/components/backend/sidebars/_side_menu.html.erb +491 -349
- data/app/views/phcdevworks_tutorials/blog/commands/index.html.erb +0 -0
- data/app/views/phcdevworks_tutorials/blog/commands/show.html.erb +0 -0
- data/app/views/phcdevworks_tutorials/blog/tutorials/index.html.erb +0 -0
- data/app/views/phcdevworks_tutorials/blog/tutorials/show.html.erb +0 -0
- data/app/views/phcdevworks_tutorials/command/items/_form.html.erb +16 -16
- data/app/views/phcdevworks_tutorials/command/items/edit.html.erb +23 -31
- data/app/views/phcdevworks_tutorials/command/items/index.html.erb +54 -62
- data/app/views/phcdevworks_tutorials/command/items/new.html.erb +23 -31
- data/app/views/phcdevworks_tutorials/command/items/show.html.erb +0 -0
- data/app/views/phcdevworks_tutorials/command/posts/_form.html.erb +11 -11
- data/app/views/phcdevworks_tutorials/command/posts/edit.html.erb +17 -25
- data/app/views/phcdevworks_tutorials/command/posts/index.html.erb +48 -56
- data/app/views/phcdevworks_tutorials/command/posts/new.html.erb +17 -25
- data/app/views/phcdevworks_tutorials/command/posts/show.html.erb +40 -48
- data/app/views/phcdevworks_tutorials/tutorial/posts/_form.html.erb +19 -19
- data/app/views/phcdevworks_tutorials/tutorial/posts/edit.html.erb +23 -31
- data/app/views/phcdevworks_tutorials/tutorial/posts/index.html.erb +56 -65
- data/app/views/phcdevworks_tutorials/tutorial/posts/new.html.erb +23 -31
- data/app/views/phcdevworks_tutorials/tutorial/posts/show.html.erb +48 -56
- data/app/views/phcdevworks_tutorials/tutorial/steps/_form.html.erb +20 -20
- data/app/views/phcdevworks_tutorials/tutorial/steps/edit.html.erb +23 -31
- data/app/views/phcdevworks_tutorials/tutorial/steps/index.html.erb +54 -62
- data/app/views/phcdevworks_tutorials/tutorial/steps/new.html.erb +23 -31
- data/config/routes.rb +0 -4
- data/config/spring.rb +0 -0
- data/db/migrate/20191017235259_create_phcdevworks_tutorials_tutorial_posts.rb +1 -1
- data/db/migrate/20191017235421_create_phcdevworks_tutorials_tutorial_steps.rb +1 -1
- data/db/migrate/20191024232406_create_phcdevworks_tutorials_tutorial_categories_posts.rb +1 -1
- data/db/migrate/20191102093129_create_phcdevworks_tutorials_tutorial_post_versions.rb +1 -1
- data/db/migrate/20191102093146_create_phcdevworks_tutorials_tutorial_step_versions.rb +1 -1
- data/db/migrate/20200320110115_create_phcdevworks_tutorials_command_posts.rb +1 -1
- data/db/migrate/20200320110553_create_phcdevworks_tutorials_command_items.rb +1 -1
- data/db/migrate/20200321122525_create_phcdevworks_tutorials_command_item_versions.rb +1 -1
- data/db/migrate/20200321122606_create_phcdevworks_tutorials_command_post_versions.rb +1 -1
- data/db/migrate/20200328012248_create_phcdevworks_tutorials_command_categories_posts.rb +1 -1
- data/lib/phcdevworks_tutorials/engine.rb +47 -47
- data/lib/phcdevworks_tutorials/version.rb +1 -1
- data/lib/phcdevworks_tutorials.rb +6 -6
- data/lib/tasks/phcdevworks_tutorials_tasks.rake +4 -4
- metadata +28 -79
- data/app/assets/stylesheets/phcdevworks_tutorials/application.scss +0 -0
- data/app/assets/stylesheets/phcdevworks_tutorials/blog/commands.scss +0 -3
- data/app/assets/stylesheets/phcdevworks_tutorials/blog/tutorials.scss +0 -3
- data/app/assets/stylesheets/phcdevworks_tutorials/command/items.scss +0 -3
- data/app/assets/stylesheets/phcdevworks_tutorials/command/posts.scss +0 -3
- data/app/assets/stylesheets/phcdevworks_tutorials/tutorial/posts.css +0 -4
- data/app/assets/stylesheets/phcdevworks_tutorials/tutorial/steps.css +0 -4
- data/app/views/layouts/phcdevworks_tutorials/frontend.html.erb +0 -0
@@ -1,48 +1,48 @@
|
|
1
|
-
<!-- Form - Tutorial - Posts -->
|
1
|
+
<!-- -PHCDEV- Form - Tutorial - Posts -->
|
2
2
|
<%= form_with(model: [@tutorial_post, @tutorial_step], url: form_url, local: true) do |form| %>
|
3
3
|
|
4
|
-
<!--
|
4
|
+
<!-- -PHCDEV- Form Validation -->
|
5
5
|
<%= render "phcdevworks_notifications/bootstrap/validations", :object => @tutorial_step %>
|
6
|
-
<!--
|
6
|
+
<!-- -PHCDEV- Form Validation -->
|
7
7
|
|
8
|
-
<!-- Form Input Fields -->
|
9
|
-
<div class="
|
10
|
-
<%= form.label :tutorial_step_number, "Tutorial Step" %>
|
8
|
+
<!-- -PHCDEV- Form Input Fields -->
|
9
|
+
<div class="mb-3">
|
10
|
+
<%= form.label :tutorial_step_number, "Tutorial Step", class: "form-label" %>
|
11
11
|
<%= form.select( :tutorial_step_number, [["01","01"],["02","02"],["03","03"],["04","04"],["05","05"],["06","06"],["07","07"],["08","08"],["09","09"],["10","10"],["11","11"],["12","12"],["13","13"],["14","14"],["15","15"],["16","16"],["17","17"],["18","18"],["19","19"],["20","20"]], {}, {class: "form-control"}) %>
|
12
12
|
</div>
|
13
13
|
|
14
|
-
<div class="
|
15
|
-
<%= form.label :tutorial_step_title, placeholder: "Step Title" %>
|
14
|
+
<div class="mb-3">
|
15
|
+
<%= form.label :tutorial_step_title, placeholder: "Step Title", class: "form-label" %>
|
16
16
|
<%= form.text_field :tutorial_step_title, class: "form-control" %>
|
17
17
|
</div>
|
18
18
|
|
19
|
-
<div class="
|
20
|
-
<%= form.label :tutorial_step_text, "Step Text" %>
|
19
|
+
<div class="mb-3">
|
20
|
+
<%= form.label :tutorial_step_text, "Step Text", class: "form-label" %>
|
21
21
|
<%= form.text_area :tutorial_step_text, class: "form-control", class: "editor", rows: "10" %>
|
22
22
|
<div id="word-count" class="mt-3"></div>
|
23
23
|
</div>
|
24
24
|
|
25
|
-
<div class="
|
26
|
-
<%= form.label :tutorial_step_copy_instruction, "Step Instructions (to Copy)" %>
|
25
|
+
<div class="mb-3">
|
26
|
+
<%= form.label :tutorial_step_copy_instruction, "Step Instructions (to Copy)", class: "form-label" %>
|
27
27
|
<%= form.text_area :tutorial_step_copy_instruction, class: "form-control" %>
|
28
28
|
</div>
|
29
29
|
|
30
|
-
<div class="
|
31
|
-
<%= form.label :tutorial_step_image, "Step Image" %>
|
30
|
+
<div class="mb-3">
|
31
|
+
<%= form.label :tutorial_step_image, "Step Image", class: "form-label" %>
|
32
32
|
<%= form.file_field :tutorial_step_image, class: "form-control" %>
|
33
33
|
</div>
|
34
34
|
|
35
|
-
<div class="
|
36
|
-
<label>Attach SEO Data</label>
|
35
|
+
<div class="mb-3">
|
36
|
+
<label class="form-label">Attach SEO Data</label>
|
37
37
|
<%= collection_select(:tutorial_step, :optimization_id, PhcdevworksCoreModules::Marketing::Optimization.order("marketing_optimization_page_title"), :id, :marketing_optimization_page_title, {}, {class: "form-control"}) %>
|
38
38
|
</div>
|
39
|
-
<!-- Form Input Fields -->
|
39
|
+
<!-- -PHCDEV- Form Input Fields -->
|
40
40
|
|
41
|
-
<!-- Form Submition Button -->
|
41
|
+
<!-- -PHCDEV- Form Submition Button -->
|
42
42
|
<div class="actions">
|
43
43
|
<%= form.submit class: "btn btn-primary" %>
|
44
44
|
</div>
|
45
|
-
<!-- For Submition Button -->
|
45
|
+
<!-- -PHCDEV- For Submition Button -->
|
46
46
|
|
47
47
|
<% end %>
|
48
|
-
<!-- Form - Tutorial - Posts -->
|
48
|
+
<!-- -PHCDEV- Form - Tutorial - Posts -->
|
@@ -1,47 +1,39 @@
|
|
1
|
-
<!--
|
1
|
+
<!-- -PHCDEV- Title Variables -->
|
2
2
|
<% phc_title "Tutorial Post Manager" %>
|
3
3
|
<% phc_title_tagline "Update Tutorial Step" %>
|
4
4
|
<% phc_breadcrumb_one yield(:phc_title_tagline) %>
|
5
5
|
<% phc_breadcrumb_two link_to "Tutorial Step Index", phcdevworks_tutorials.tutorial_post_steps_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", { form_url: tutorial_post_step_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
|
-
|
40
|
-
|
28
|
+
<!-- -PHCDEV- Panel - Body -->
|
29
|
+
<div class="panel-body">
|
41
30
|
|
42
|
-
|
43
|
-
|
31
|
+
<!-- -PHCDEV- Edit Form -->
|
32
|
+
<%= render "form", { form_url: tutorial_post_step_path } %>
|
33
|
+
<!-- -PHCDEV- Edit Form -->
|
44
34
|
|
45
35
|
</div>
|
36
|
+
<!-- -PHCDEV- Panel - Body -->
|
37
|
+
|
46
38
|
</div>
|
47
|
-
<!--
|
39
|
+
<!-- -PHCDEV- Panel -->
|
@@ -1,82 +1,74 @@
|
|
1
|
-
<!--
|
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
|
-
<!--
|
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>Tutorial Step Number</th>
|
42
|
-
<th>Tutorial Step Title</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
|
-
|
48
|
-
|
49
|
-
<tr>
|
50
|
-
<td><%= tutorial_step.tutorial_step_number %></td>
|
51
|
-
<td><%= tutorial_step.tutorial_step_title %></td>
|
52
|
-
<td><%= truncate(tutorial_step.tutorial_step_text, :length => 80, :escape => false) %></td>
|
53
|
-
<td>
|
54
|
-
<div class="btn-group d-flex" role="group">
|
55
|
-
<%= link_to "Update Step", edit_tutorial_post_step_path(tutorial_step.post, tutorial_step), class: "btn btn-primary btn-xs" %>
|
56
|
-
<%= link_to "Remove Step", tutorial_post_step_path(tutorial_step.post, tutorial_step), 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>
|
28
|
+
<!-- -PHCDEV- Panel - Body -->
|
29
|
+
<div class="panel-body">
|
62
30
|
|
63
|
-
|
64
|
-
|
65
|
-
|
31
|
+
<!-- -PHCDEV- Index - Table -->
|
32
|
+
<div class="table-responsive">
|
33
|
+
<table class="table table-striped table-bordered">
|
66
34
|
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
35
|
+
<thead>
|
36
|
+
<tr>
|
37
|
+
<th>Tutorial Step Number</th>
|
38
|
+
<th>Tutorial Step Title</th>
|
39
|
+
<th></th>
|
40
|
+
</tr>
|
41
|
+
</thead>
|
73
42
|
|
74
|
-
|
75
|
-
|
43
|
+
<tbody>
|
44
|
+
<% @tutorial_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><%= truncate(tutorial_step.tutorial_step_text, :length => 80, :escape => false) %></td>
|
49
|
+
<td>
|
50
|
+
<div class="btn-group d-flex" role="group">
|
51
|
+
<%= link_to "Update Step", edit_tutorial_post_step_path(tutorial_step.post, tutorial_step), class: "btn btn-primary btn-xs" %>
|
52
|
+
<%= link_to "Remove Step", tutorial_post_step_path(tutorial_step.post, tutorial_step), method: :delete, data: { confirm: "Are you sure? This Action Cannot be Reversed." }, class: "btn btn-danger btn-xs" %>
|
53
|
+
</div>
|
54
|
+
</td>
|
55
|
+
</tr>
|
56
|
+
<% end %>
|
57
|
+
</tbody>
|
76
58
|
|
59
|
+
</table>
|
77
60
|
</div>
|
78
|
-
<!--
|
61
|
+
<!-- -PHCDEV- Index - Table -->
|
62
|
+
|
63
|
+
<!-- -PHCDEV- New Button -->
|
64
|
+
<%= link_to phcdevworks_tutorials.new_tutorial_post_step_path, class: "btn btn-primary btn-sm" do %>
|
65
|
+
<i class="fad fa-plus-circle"></i>
|
66
|
+
Add a New Step for Tutorial
|
67
|
+
<% end %>
|
68
|
+
<!-- -PHCDEV- New Button -->
|
79
69
|
|
80
70
|
</div>
|
71
|
+
<!-- -PHCDEV- Panel - Body -->
|
72
|
+
|
81
73
|
</div>
|
82
|
-
<!--
|
74
|
+
<!-- -PHCDEV- Panel -->
|
@@ -1,47 +1,39 @@
|
|
1
|
-
<!--
|
1
|
+
<!-- -PHCDEV- Title Variables -->
|
2
2
|
<% phc_title "Tutorial Post Manager" %>
|
3
3
|
<% phc_title_tagline "Add a New Step" %>
|
4
4
|
<% phc_breadcrumb_one yield(:phc_title_tagline) %>
|
5
5
|
<% phc_breadcrumb_two link_to "Tutorial Step Index", phcdevworks_tutorials.tutorial_post_steps_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", { form_url: tutorial_post_steps_path } %>
|
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
|
-
|
40
|
-
|
28
|
+
<!-- -PHCDEV- Panel - Body -->
|
29
|
+
<div class="panel-body">
|
41
30
|
|
42
|
-
|
43
|
-
|
31
|
+
<!-- -PHCDEV- New Form -->
|
32
|
+
<%= render "form", { form_url: tutorial_post_steps_path } %>
|
33
|
+
<!-- -PHCDEV- New Form -->
|
44
34
|
|
45
35
|
</div>
|
36
|
+
<!-- -PHCDEV- Panel - Body -->
|
37
|
+
|
46
38
|
</div>
|
47
|
-
<!--
|
39
|
+
<!-- -PHCDEV- Panel -->
|
data/config/routes.rb
CHANGED
data/config/spring.rb
CHANGED
File without changes
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class CreatePhcdevworksTutorialsTutorialPostVersions < ActiveRecord::Migration[
|
1
|
+
class CreatePhcdevworksTutorialsTutorialPostVersions < ActiveRecord::Migration[7.0]
|
2
2
|
TEXT_BYTES = 1_073_741_823
|
3
3
|
def change
|
4
4
|
create_table :phcdevworks_tutorials_tutorial_post_versions do |t|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class CreatePhcdevworksTutorialsTutorialStepVersions < ActiveRecord::Migration[
|
1
|
+
class CreatePhcdevworksTutorialsTutorialStepVersions < ActiveRecord::Migration[7.0]
|
2
2
|
TEXT_BYTES = 1_073_741_823
|
3
3
|
def change
|
4
4
|
create_table :phcdevworks_tutorials_tutorial_step_versions do |t|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class CreatePhcdevworksTutorialsCommandItemVersions < ActiveRecord::Migration[
|
1
|
+
class CreatePhcdevworksTutorialsCommandItemVersions < ActiveRecord::Migration[7.0]
|
2
2
|
TEXT_BYTES = 1_073_741_823
|
3
3
|
def change
|
4
4
|
create_table :phcdevworks_tutorials_command_item_versions do |t|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class CreatePhcdevworksTutorialsCommandPostVersions < ActiveRecord::Migration[
|
1
|
+
class CreatePhcdevworksTutorialsCommandPostVersions < ActiveRecord::Migration[7.0]
|
2
2
|
TEXT_BYTES = 1_073_741_823
|
3
3
|
def change
|
4
4
|
create_table :phcdevworks_tutorials_command_post_versions do |t|
|
@@ -1,47 +1,47 @@
|
|
1
|
-
module PhcdevworksTutorials
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
end
|
1
|
+
module PhcdevworksTutorials
|
2
|
+
class Engine < ::Rails::Engine
|
3
|
+
|
4
|
+
# Load Main Dependencies
|
5
|
+
require "jbuilder"
|
6
|
+
require "paper_trail"
|
7
|
+
require "friendly_id"
|
8
|
+
|
9
|
+
# Load Theme Dependencies
|
10
|
+
require "phcthemes_admin_panel_pack"
|
11
|
+
require "phcthemes_web_theme_pack"
|
12
|
+
|
13
|
+
# Load Helper Dependencies
|
14
|
+
require "phcdevworks_core"
|
15
|
+
require "phcdevworks_active_menus"
|
16
|
+
require "phcdevworks_notifications"
|
17
|
+
require "phcdevworks_titleseo"
|
18
|
+
|
19
|
+
# Load Upload Dependencies
|
20
|
+
require "aws-sdk-s3"
|
21
|
+
require "google-cloud-storage"
|
22
|
+
require "mini_magick"
|
23
|
+
|
24
|
+
# Frontend Dependencies
|
25
|
+
require "wicked"
|
26
|
+
require "gravtastic"
|
27
|
+
require "friendly_id"
|
28
|
+
|
29
|
+
# Mailer Dependencies
|
30
|
+
require "mail_form"
|
31
|
+
|
32
|
+
# PHCDevworks Plugins
|
33
|
+
require "phcdevworks_core_modules"
|
34
|
+
|
35
|
+
# Engine Namespace
|
36
|
+
isolate_namespace PhcdevworksTutorials
|
37
|
+
|
38
|
+
# Rspec Generators
|
39
|
+
config.generators do |g|
|
40
|
+
g.test_framework :rspec
|
41
|
+
g.fixture_replacement :factory_bot
|
42
|
+
g.factory_bot dir: 'spec/factories'
|
43
|
+
g.factory_bot suffix: "factory"
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
require "phcdevworks_tutorials/version"
|
2
|
-
require "phcdevworks_tutorials/engine"
|
3
|
-
|
4
|
-
module PhcdevworksTutorials
|
5
|
-
# Your code goes here...
|
6
|
-
end
|
1
|
+
require "phcdevworks_tutorials/version"
|
2
|
+
require "phcdevworks_tutorials/engine"
|
3
|
+
|
4
|
+
module PhcdevworksTutorials
|
5
|
+
# Your code goes here...
|
6
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# desc "Explaining what the task does"
|
2
|
-
# task :phcdevworks_tutorials do
|
3
|
-
# # Task goes here
|
4
|
-
# end
|
1
|
+
# desc "Explaining what the task does"
|
2
|
+
# task :phcdevworks_tutorials do
|
3
|
+
# # Task goes here
|
4
|
+
# end
|