phcdevworks_tutorials 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/phcdevworks_tutorials/tutorial/steps/_form.html.erb +15 -0
- data/app/views/phcdevworks_tutorials/tutorial/steps/index.html.erb +52 -42
- data/app/views/phcdevworks_tutorials/tutorial/steps/show.html.erb +0 -14
- data/db/migrate/20191002093451_add_image_to_phcdevworks_tutorials_tutorial_posts.rb +1 -1
- data/db/migrate/20191006054657_add_tittle_to_phcdevworks_tutorials_tutorial_steps.rb +7 -0
- data/lib/phcdevworks_tutorials/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d32d9df3aa7d8e9298f25416c9fc115b1734fa3830ef6a9c4ee7918d1501d80
|
4
|
+
data.tar.gz: 18dcdb6180462edf1100626b8f40c7405033d4159df62962b22993a1f842fda9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0731f199c9c95af142ed37ac488b98e6c6cf2ecd8e85818ae6868018b5edbade8d8961c5bf39ac8a62fc8df6193ecd46941bec0270eb1df7564daaef7cdea02
|
7
|
+
data.tar.gz: 9a72615547581a12636bd835cd6197ad65637bf8a653095e188fb7a23522889837cbe9f901f9b0bc6af2e97a4dbd03e38dd225cb3eee3ed15db25f7015aa9df9
|
@@ -10,11 +10,26 @@
|
|
10
10
|
<%= form.select( :tutorial_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"}) %>
|
11
11
|
</div>
|
12
12
|
|
13
|
+
<div class="form-group field_with_errors">
|
14
|
+
<%= form.label :tutorial_step_title, "Step Title" %>
|
15
|
+
<%= form.text_area :tutorial_step_title, class: "form-control", rows: "10" %>
|
16
|
+
</div>
|
17
|
+
|
13
18
|
<div class="form-group field_with_errors">
|
14
19
|
<%= form.label :tutorial_step_body, "Step Text" %>
|
15
20
|
<%= form.text_area :tutorial_step_body, class: "form-control", rows: "10" %>
|
16
21
|
</div>
|
17
22
|
|
23
|
+
<div class="form-group field_with_errors">
|
24
|
+
<div class="form-group field_with_errors">
|
25
|
+
<%= form.label :tutorial_step_image, "Step Image" %>
|
26
|
+
<%= form.file_field :tutorial_step_image, class: "form-control" %>
|
27
|
+
</div>
|
28
|
+
<% if form.object.tutorial_step_image.attached? %>
|
29
|
+
<%= image_tag main_app.url_for(form.object.tutorial_step_image), class: "img-responsive img-thumbnail" %>
|
30
|
+
<% end %>
|
31
|
+
</div>
|
32
|
+
|
18
33
|
<div class="form-group field_with_errors">
|
19
34
|
<div class="form-group field_with_errors">
|
20
35
|
<%= form.label :tutorial_step_image, "Step Image" %>
|
@@ -7,8 +7,8 @@
|
|
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
|
|
@@ -18,50 +18,60 @@
|
|
18
18
|
|
19
19
|
<!-- Page & Panel Content -->
|
20
20
|
<div class="panel panel-inverse">
|
21
|
-
|
22
|
-
|
23
|
-
<div class="panel-heading
|
24
|
-
|
25
|
-
|
26
|
-
|
21
|
+
|
22
|
+
<!-- Panel Heading -->
|
23
|
+
<div class="panel-heading">
|
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>
|
27
30
|
</div>
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
31
|
+
<!-- Panel Heading -->
|
32
|
+
|
33
|
+
<!-- Panel Body -->
|
34
|
+
<div class="panel-body">
|
35
|
+
|
36
|
+
<!-- Table - Snippet Index -->
|
37
|
+
<div class="table-responsive">
|
38
|
+
<table class="table table-striped table-bordered">
|
36
39
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
40
|
+
<thead>
|
41
|
+
<tr>
|
42
|
+
<th>Tutorial Step Number</th>
|
43
|
+
<th>Tutorial Step Title</th>
|
44
|
+
<th></th>
|
45
|
+
</tr>
|
46
|
+
</thead>
|
44
47
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
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
|
+
</tr>
|
62
|
+
<% end %>
|
63
|
+
</tbody>
|
64
|
+
|
65
|
+
</table>
|
66
|
+
<%= link_to phcdevworks_tutorials.new_tutorial_post_step_path, class: "btn btn-primary btn-sm" do %>
|
67
|
+
<i class="fas fa-plus-circle"></i>
|
68
|
+
Add a New Step for Tutorial
|
69
|
+
<% end %>
|
70
|
+
</div>
|
71
|
+
<!-- Table - Snippet Index -->
|
56
72
|
|
57
|
-
</table>
|
58
|
-
<%= link_to phcdevworks_tutorials.new_tutorial_post_step_path, class: "btn btn-primary btn-sm" do %>
|
59
|
-
<i class="fas fa-plus-circle"></i>
|
60
|
-
Add a New Step for Tutorial
|
61
|
-
<% end %>
|
62
73
|
</div>
|
63
|
-
<!--
|
64
|
-
|
65
|
-
<!-- Panel Body -->
|
74
|
+
<!-- Panel Body -->
|
75
|
+
|
66
76
|
</div>
|
67
77
|
<!-- Page & Panel Content -->
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<p id="notice"><%= notice %></p>
|
2
|
-
|
3
|
-
<p>
|
4
|
-
<strong>Tutorial step number:</strong>
|
5
|
-
<%= @tutorial_step.tutorial_step_number %>
|
6
|
-
</p>
|
7
|
-
|
8
|
-
<p>
|
9
|
-
<strong>Tutorial step body:</strong>
|
10
|
-
<%= @tutorial_step.tutorial_step_body %>
|
11
|
-
</p>
|
12
|
-
|
13
|
-
<%= link_to 'Edit', edit_tutorial_step_path(@tutorial_step) %> |
|
14
|
-
<%= link_to 'Back', tutorial_steps_path %>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcdevworks_tutorials
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PHCDevworks
|
@@ -290,6 +290,7 @@ files:
|
|
290
290
|
- db/migrate/20190929044505_add_info_to_phcdevworks_tutorials_tutorial_steps.rb
|
291
291
|
- db/migrate/20191002093451_add_image_to_phcdevworks_tutorials_tutorial_posts.rb
|
292
292
|
- db/migrate/20191003235303_create_join_table_categories_posts.rb
|
293
|
+
- db/migrate/20191006054657_add_tittle_to_phcdevworks_tutorials_tutorial_steps.rb
|
293
294
|
- lib/phcdevworks_tutorials.rb
|
294
295
|
- lib/phcdevworks_tutorials/engine.rb
|
295
296
|
- lib/phcdevworks_tutorials/version.rb
|