phcdevworks_tutorials 2.0.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -27
- data/app/assets/config/phcdevworks_tutorials_manifest.js +1 -1
- data/app/assets/stylesheets/phcdevworks_tutorials/category/posts.css +4 -0
- data/app/assets/stylesheets/phcdevworks_tutorials/tutorial/posts.css +4 -0
- data/app/assets/stylesheets/phcdevworks_tutorials/tutorial/steps.css +4 -0
- data/app/controllers/phcdevworks_tutorials/tutorial/categories_controller.rb +2 -3
- data/app/controllers/phcdevworks_tutorials/tutorial/posts_controller.rb +5 -6
- data/app/controllers/phcdevworks_tutorials/tutorial/steps_controller.rb +6 -12
- data/app/models/phcdevworks_tutorials/category.rb +7 -0
- data/app/models/phcdevworks_tutorials/tutorial/category.rb +3 -3
- data/app/models/phcdevworks_tutorials/tutorial/post.rb +8 -8
- data/app/models/phcdevworks_tutorials/tutorial/step.rb +1 -1
- data/app/views/layouts/phcdevworks_tutorials/application.html.erb +62 -77
- data/app/views/layouts/phcdevworks_tutorials/components/backend/footer/_footer.html.erb +7 -7
- data/app/views/layouts/phcdevworks_tutorials/components/backend/navigation/_top_menu.html.erb +37 -37
- data/app/views/layouts/phcdevworks_tutorials/components/backend/sidebars/_side_menu.html.erb +257 -239
- data/app/views/layouts/phcdevworks_tutorials/frontend.html.erb +0 -5
- data/app/views/phcdevworks_tutorials/tutorial/categories/_form.html.erb +16 -14
- data/app/views/phcdevworks_tutorials/tutorial/categories/edit.html.erb +31 -23
- data/app/views/phcdevworks_tutorials/tutorial/categories/index.html.erb +63 -52
- data/app/views/phcdevworks_tutorials/tutorial/categories/new.html.erb +31 -23
- data/app/views/phcdevworks_tutorials/tutorial/categories/show.html.erb +1 -1
- data/app/views/phcdevworks_tutorials/tutorial/posts/_form.html.erb +46 -46
- data/app/views/phcdevworks_tutorials/tutorial/posts/edit.html.erb +31 -23
- data/app/views/phcdevworks_tutorials/tutorial/posts/index.html.erb +68 -56
- data/app/views/phcdevworks_tutorials/tutorial/posts/new.html.erb +31 -23
- data/app/views/phcdevworks_tutorials/tutorial/steps/_form.html.erb +36 -48
- data/app/views/phcdevworks_tutorials/tutorial/steps/edit.html.erb +31 -23
- data/app/views/phcdevworks_tutorials/tutorial/steps/index.html.erb +57 -52
- data/app/views/phcdevworks_tutorials/tutorial/steps/new.html.erb +31 -23
- data/config/routes.rb +3 -3
- data/db/migrate/{20190911225813_create_phcdevworks_tutorials_tutorial_posts.rb → 20191017235259_create_phcdevworks_tutorials_tutorial_posts.rb} +4 -6
- data/db/migrate/{20190923113101_create_phcdevworks_tutorials_tutorial_steps.rb → 20191017235421_create_phcdevworks_tutorials_tutorial_steps.rb} +4 -6
- data/db/migrate/{20190911225925_create_phcdevworks_tutorials_tutorial_categories.rb → 20191018124910_create_phcdevworks_tutorials_tutorial_categories.rb} +1 -1
- data/db/migrate/20191024232406_create_phcdevworks_tutorials_categories_posts.rb +8 -0
- data/lib/phcdevworks_tutorials/engine.rb +6 -8
- data/lib/phcdevworks_tutorials/version.rb +1 -1
- metadata +36 -18
- data/app/assets/javascripts/phcdevworks_tutorials/tutorial/posts.coffee +0 -3
- data/app/assets/javascripts/phcdevworks_tutorials/tutorial/steps.coffee +0 -3
- data/app/assets/stylesheets/phcdevworks_tutorials/tutorial/posts.scss +0 -3
- data/app/assets/stylesheets/phcdevworks_tutorials/tutorial/steps.scss +0 -3
- data/app/assets/stylesheets/scaffolds.scss +0 -65
- data/config/initializers/friendly_id.rb +0 -107
- data/db/migrate/20191003235303_create_join_table_categories_posts.rb +0 -10
@@ -1,73 +1,85 @@
|
|
1
|
-
<!-- Title
|
1
|
+
<!-- PHCTitleSEO 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
|
-
<!-- Title
|
6
|
+
<!-- PHCTitleSEO Title Variables -->
|
7
7
|
|
8
8
|
<!-- Page Bradcrumbs -->
|
9
9
|
<ol class="breadcrumb pull-right">
|
10
|
-
|
11
|
-
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
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
|
-
<
|
16
|
+
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
17
17
|
<!-- Page Header -->
|
18
18
|
|
19
|
-
<!-- Page
|
20
|
-
<div class="
|
21
|
-
|
22
|
-
<div class="panel-heading">
|
23
|
-
<div class="panel-heading-btn">
|
24
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
|
25
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
|
26
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
|
27
|
-
</div>
|
28
|
-
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
|
29
|
-
</div>
|
30
|
-
<!-- Panel Heading -->
|
31
|
-
<!-- Panel Body -->
|
32
|
-
<div class="panel-body">
|
33
|
-
<!-- Table - Snippet Index -->
|
34
|
-
<div class="table-responsive">
|
35
|
-
<table class="table table-striped table-bordered">
|
19
|
+
<!-- Page Content -->
|
20
|
+
<div class="row">
|
21
|
+
<div class="col-lg-12">
|
36
22
|
|
37
|
-
|
38
|
-
|
39
|
-
<th>Tutorial Title</th>
|
40
|
-
<th>Tutorial Description</th>
|
41
|
-
<th>Tutorial Status</th>
|
42
|
-
<th></th>
|
43
|
-
</tr>
|
44
|
-
</thead>
|
23
|
+
<!-- Panel -->
|
24
|
+
<div class="panel panel-inverse">
|
45
25
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
<td><%= tutorial_post.tutorial_post_status %></td>
|
52
|
-
<td>
|
53
|
-
<div class="btn-group d-flex" role="group">
|
54
|
-
<%= link_to "Details", tutorial_post, class: "btn btn-purple btn-xs" %>
|
55
|
-
<%= link_to "Update", edit_tutorial_post_path(tutorial_post), class: "btn btn-primary btn-xs" %>
|
56
|
-
<%= link_to "Remove", tutorial_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>
|
26
|
+
<!-- Panel - Heading -->
|
27
|
+
<div class="panel-heading">
|
28
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
29
|
+
</div>
|
30
|
+
<!-- Panel - Heading -->
|
62
31
|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
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>
|
47
|
+
|
48
|
+
<tbody>
|
49
|
+
<% @tutorial_posts.each do |tutorial_post| %>
|
50
|
+
<tr>
|
51
|
+
<td><%= tutorial_post.post_title %></td>
|
52
|
+
<td><%= tutorial_post.post_description %></td>
|
53
|
+
<td><%= tutorial_post.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>
|
64
|
+
|
65
|
+
</table>
|
66
|
+
</div>
|
67
|
+
<!-- Index - Table -->
|
68
|
+
|
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 -->
|
75
|
+
|
76
|
+
</div>
|
77
|
+
<!-- Panel - Body -->
|
78
|
+
|
79
|
+
</div>
|
80
|
+
<!-- Panel -->
|
81
|
+
|
82
|
+
</div>
|
72
83
|
</div>
|
73
|
-
<!-- Page
|
84
|
+
<!-- Page Content -->
|
85
|
+
|
@@ -1,39 +1,47 @@
|
|
1
|
-
<!-- Title
|
1
|
+
<!-- PHCTitleSEO 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 "Category Index", phcdevworks_tutorials.tutorial_categories_path %>
|
6
|
-
<!-- Title
|
6
|
+
<!-- PHCTitleSEO Title Variables -->
|
7
7
|
|
8
8
|
<!-- Page Bradcrumbs -->
|
9
9
|
<ol class="breadcrumb pull-right">
|
10
|
-
|
11
|
-
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
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
|
-
<
|
16
|
+
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
17
17
|
<!-- Page Header -->
|
18
18
|
|
19
|
-
<!-- Page
|
20
|
-
<div class="
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
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", tutorial_post: @tutorial_post %>
|
37
|
+
<!-- New Form -->
|
38
|
+
|
39
|
+
</div>
|
40
|
+
<!-- Panel - Body -->
|
41
|
+
|
27
42
|
</div>
|
28
|
-
|
29
|
-
|
30
|
-
<!-- Panel Heading -->
|
31
|
-
<!-- Panel Body -->
|
32
|
-
<div class="panel-body">
|
33
|
-
<!-- Form for New Tutorial Post -->
|
34
|
-
<%= render 'form', tutorial_post: @tutorial_post %>
|
35
|
-
<!-- Form for New Script Snippet -->
|
43
|
+
<!-- Panel -->
|
44
|
+
|
36
45
|
</div>
|
37
|
-
<!-- Panel Body -->
|
38
46
|
</div>
|
39
|
-
<!-- Page
|
47
|
+
<!-- Page Content -->
|
@@ -1,50 +1,38 @@
|
|
1
|
-
|
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
|
-
<%= form.file_field :tutorial_step_image, class: "form-control" %>
|
37
|
-
</div>
|
38
|
-
<% if form.object.tutorial_step_image.attached? %>
|
39
|
-
<%= image_tag main_app.url_for(form.object.tutorial_step_image), class: "img-responsive img-thumbnail" %>
|
40
|
-
<% end %>
|
41
|
-
</div>
|
42
|
-
<!-- Form Input Fields -->
|
43
|
-
|
44
|
-
<!-- Form Submition Button -->
|
45
|
-
<div class="actions">
|
46
|
-
<%= form.submit class: "btn btn-primary" %>
|
47
|
-
</div>
|
48
|
-
<!-- For Submition Button -->
|
1
|
+
<!-- Form - Tutorial - Posts -->
|
2
|
+
<%= form_with(model: [@tutorial_post, @tutorial_step], url: form_url, local: true) do |form| %>
|
3
|
+
|
4
|
+
<!-- PHCNotifi Render Validation -->
|
5
|
+
<%= render "phcdevworks_notifications/bootstrap/validations", :object => @tutorial_step %>
|
6
|
+
<!-- PHCNotifi Render Validation -->
|
7
|
+
|
8
|
+
<!-- Form Input Fields -->
|
9
|
+
<div class="form-group field_with_errors">
|
10
|
+
<%= form.label :step_number, "Tutorial Step" %>
|
11
|
+
<%= form.select( :step_number, [["1","1"],["2","2"],["3","3"],["4","4"],["5","5"],["6","6"],["7","7"],["8","8"],["9","9"],["10","10"],["11","11"],["12","12"],["13","13"],["14","14"]], {}, {class: "form-control"}) %>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
<div class="form-group field_with_errors">
|
15
|
+
<%= form.label :step_title, placeholder: "Step Title" %>
|
16
|
+
<%= form.text_field :step_title, class: "form-control", rows: "10" %>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<div class="form-group field_with_errors">
|
20
|
+
<%= form.label :step_description, "Step Text" %>
|
21
|
+
<%= form.text_area :step_description, class: "form-control", rows: "10" %>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<div class="form-group field_with_errors">
|
25
|
+
<%= form.label :step_image, "Step Image" %>
|
26
|
+
<%= form.file_field :step_image, class: "form-control" %>
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<!-- Form Input Fields -->
|
30
|
+
|
31
|
+
<!-- Form Submition Button -->
|
32
|
+
<div class="actions">
|
33
|
+
<%= form.submit class: "btn btn-primary" %>
|
34
|
+
</div>
|
35
|
+
<!-- For Submition Button -->
|
49
36
|
|
50
37
|
<% end %>
|
38
|
+
<!-- Form - Tutorial - Posts -->
|
@@ -1,39 +1,47 @@
|
|
1
|
-
<!-- Title
|
1
|
+
<!-- PHCTitleSEO 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 "Step Index", phcdevworks_tutorials.tutorial_categories_path %>
|
6
|
-
<!-- Title
|
6
|
+
<!-- PHCTitleSEO Title Variables -->
|
7
7
|
|
8
8
|
<!-- Page Bradcrumbs -->
|
9
9
|
<ol class="breadcrumb pull-right">
|
10
|
-
|
11
|
-
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
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
|
-
<
|
16
|
+
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
17
17
|
<!-- Page Header -->
|
18
18
|
|
19
|
-
<!-- Page
|
20
|
-
<div class="
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
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", { form_url: tutorial_post_step_path } %>
|
37
|
+
<!-- Edit Form -->
|
38
|
+
|
39
|
+
</div>
|
40
|
+
<!-- Panel - Body -->
|
41
|
+
|
27
42
|
</div>
|
28
|
-
|
29
|
-
|
30
|
-
<!-- Panel Heading -->
|
31
|
-
<!-- Panel Body -->
|
32
|
-
<div class="panel-body">
|
33
|
-
<!-- Form to Edit Member Address -->
|
34
|
-
<%= render "form", { form_url: tutorial_post_steps_path } %>
|
35
|
-
<!-- Form to Edit Member Address -->
|
43
|
+
<!-- Panel -->
|
44
|
+
|
36
45
|
</div>
|
37
|
-
<!-- Panel Body -->
|
38
46
|
</div>
|
39
|
-
<!-- Page
|
47
|
+
<!-- Page Content -->
|
@@ -1,77 +1,82 @@
|
|
1
|
-
<!-- Title
|
1
|
+
<!-- PHCTitleSEO 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_post_steps_path %>
|
6
|
-
<!-- Title
|
6
|
+
<!-- PHCTitleSEO Title Variables -->
|
7
7
|
|
8
8
|
<!-- Page Bradcrumbs -->
|
9
9
|
<ol class="breadcrumb pull-right">
|
10
|
-
|
11
|
-
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
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
|
-
<
|
16
|
+
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
17
17
|
<!-- Page Header -->
|
18
18
|
|
19
|
-
<!-- Page
|
20
|
-
<div class="
|
19
|
+
<!-- Page Content -->
|
20
|
+
<div class="row">
|
21
|
+
<div class="col-lg-12">
|
21
22
|
|
22
|
-
|
23
|
-
|
24
|
-
<div class="panel-heading-btn">
|
25
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
|
26
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
|
27
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
|
28
|
-
</div>
|
29
|
-
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
|
30
|
-
</div>
|
31
|
-
<!-- Panel Heading -->
|
23
|
+
<!-- Panel -->
|
24
|
+
<div class="panel panel-inverse">
|
32
25
|
|
33
|
-
|
34
|
-
|
26
|
+
<!-- Panel - Heading -->
|
27
|
+
<div class="panel-heading">
|
28
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
29
|
+
</div>
|
30
|
+
<!-- Panel - Heading -->
|
35
31
|
|
36
|
-
|
37
|
-
|
38
|
-
<table class="table table-striped table-bordered">
|
32
|
+
<!-- Panel - Body -->
|
33
|
+
<div class="panel-body">
|
39
34
|
|
40
|
-
|
41
|
-
|
35
|
+
<!-- Index - Table -->
|
36
|
+
<div class="table-responsive">
|
37
|
+
<table class="table table-striped table-bordered">
|
38
|
+
|
39
|
+
<thead>
|
40
|
+
<tr>
|
42
41
|
<th>Tutorial Step Number</th>
|
43
42
|
<th>Tutorial Step Title</th>
|
44
43
|
<th></th>
|
45
|
-
</tr>
|
46
|
-
</thead>
|
47
|
-
|
48
|
-
<tbody>
|
49
|
-
<% @tutorial_steps.each do |tutorial_step| %>
|
50
|
-
<tr>
|
51
|
-
<td><%= tutorial_step.tutorial_step_number %></td>
|
52
|
-
<td><%= tutorial_step.tutorial_step_title %></td>
|
53
|
-
<td>
|
54
|
-
<div class="btn-group d-flex" role="group">
|
55
|
-
<%= link_to 'Show', tutorial_post_step_path(tutorial_step.post, tutorial_step), class: "btn btn-purple btn-xs" %>
|
56
|
-
<%= link_to 'Update', edit_tutorial_post_step_path(tutorial_step.post, tutorial_step), class: "btn btn-primary btn-xs" %>
|
57
|
-
<%= link_to "Update", edit_tutorial_post_path(tutorial_post) %>
|
58
|
-
<%= link_to 'Destroy', 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" %>
|
59
|
-
</div>
|
60
|
-
</td>
|
61
44
|
</tr>
|
62
|
-
|
63
|
-
|
45
|
+
</thead>
|
46
|
+
|
47
|
+
<tbody>
|
48
|
+
<% @tutorial_steps.each do |tutorial_step| %>
|
49
|
+
<tr>
|
50
|
+
<td><%= tutorial_step.step_number %></td>
|
51
|
+
<td><%= tutorial_step.step_title %></td>
|
52
|
+
<td>
|
53
|
+
<div class="btn-group d-flex" role="group">
|
54
|
+
<%= link_to "Step Details", tutorial_post_step_path(tutorial_step.post, tutorial_step), class: "btn btn-purple btn-xs" %>
|
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>
|
62
|
+
|
63
|
+
</table>
|
64
|
+
</div>
|
65
|
+
<!-- Index - Table -->
|
66
|
+
|
67
|
+
<!-- New Button -->
|
68
|
+
<%= link_to phcdevworks_tutorials.new_tutorial_post_step_path, class: "btn btn-primary btn-sm" do %>
|
69
|
+
<i class="fad fa-plus-circle"></i>
|
70
|
+
Add a New Step for Tutorial
|
71
|
+
<% end %>
|
72
|
+
<!-- New Button -->
|
64
73
|
|
65
|
-
|
66
|
-
|
67
|
-
<i class="fas fa-plus-circle"></i>
|
68
|
-
Add a New Step for Tutorial
|
69
|
-
<% end %>
|
70
|
-
</div>
|
71
|
-
<!-- Table - Snippet Index -->
|
74
|
+
</div>
|
75
|
+
<!-- Panel - Body -->
|
72
76
|
|
73
|
-
|
74
|
-
|
77
|
+
</div>
|
78
|
+
<!-- Panel -->
|
75
79
|
|
80
|
+
</div>
|
76
81
|
</div>
|
77
|
-
<!-- Page
|
82
|
+
<!-- Page Content -->
|