phcdevworks_press 8.3.1 → 8.4.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 +33 -33
- data/Rakefile +8 -8
- data/app/assets/config/phcdevworks_press_manifest.js +3 -3
- data/app/assets/stylesheets/phcdevworks_press/application.scss +0 -0
- data/app/assets/stylesheets/phcdevworks_press/article/posts.scss +0 -0
- data/app/assets/stylesheets/phcdevworks_press/blog/articles.scss +0 -0
- data/app/assets/stylesheets/phcdevworks_press/list/items.scss +3 -3
- data/app/assets/stylesheets/phcdevworks_press/list/posts.scss +3 -3
- data/app/assets/stylesheets/phcdevworks_press/review/posts.scss +3 -3
- data/app/controllers/phcdevworks_press/application_controller.rb +13 -13
- data/app/controllers/phcdevworks_press/article/posts_controller.rb +83 -83
- data/app/controllers/phcdevworks_press/blog/articles_controller.rb +29 -29
- data/app/controllers/phcdevworks_press/blog/lists_controller.rb +29 -29
- data/app/controllers/phcdevworks_press/blog/reviews_controller.rb +29 -29
- data/app/controllers/phcdevworks_press/list/items_controller.rb +89 -89
- data/app/controllers/phcdevworks_press/list/posts_controller.rb +82 -82
- data/app/controllers/phcdevworks_press/review/posts_controller.rb +82 -82
- data/app/helpers/phcdevworks_press/application_helper.rb +4 -4
- data/app/helpers/phcdevworks_press/article/posts_helper.rb +4 -4
- data/app/helpers/phcdevworks_press/blog/articles_helper.rb +4 -4
- data/app/helpers/phcdevworks_press/list/items_helper.rb +4 -4
- data/app/helpers/phcdevworks_press/list/posts_helper.rb +4 -4
- data/app/helpers/phcdevworks_press/review/posts_helper.rb +4 -4
- data/app/jobs/phcdevworks_press/application_job.rb +4 -4
- data/app/mailers/phcdevworks_press/application_mailer.rb +6 -6
- data/app/models/phcdevworks_press/application_record.rb +5 -5
- data/app/models/phcdevworks_press/article/post.rb +34 -34
- data/app/models/phcdevworks_press/article.rb +7 -7
- data/app/models/phcdevworks_press/article_post_versions.rb +0 -0
- data/app/models/phcdevworks_press/list/item.rb +33 -33
- data/app/models/phcdevworks_press/list/post.rb +34 -34
- data/app/models/phcdevworks_press/list.rb +7 -7
- data/app/models/phcdevworks_press/list_item_versions.rb +0 -0
- data/app/models/phcdevworks_press/list_post_versions.rb +0 -0
- data/app/models/phcdevworks_press/review/post.rb +33 -33
- data/app/models/phcdevworks_press/review.rb +7 -7
- data/app/models/phcdevworks_press/review_post_versions.rb +0 -0
- data/app/views/layouts/phcdevworks_press/application.html.erb +131 -131
- data/app/views/layouts/phcdevworks_press/components/backend/footer/_footer.html.erb +0 -0
- data/app/views/layouts/phcdevworks_press/components/backend/navigation/_top_menu.html.erb +0 -0
- data/app/views/layouts/phcdevworks_press/components/backend/sidebars/_side_menu.html.erb +0 -0
- data/app/views/layouts/phcdevworks_press/frontend.html.erb +5 -5
- data/app/views/phcdevworks_press/article/posts/_form.html.erb +105 -105
- data/app/views/phcdevworks_press/article/posts/edit.html.erb +23 -23
- data/app/views/phcdevworks_press/article/posts/index.html.erb +83 -83
- data/app/views/phcdevworks_press/article/posts/new.html.erb +23 -23
- data/app/views/phcdevworks_press/blog/articles/index.html.erb +69 -69
- data/app/views/phcdevworks_press/blog/articles/show.html.erb +0 -0
- data/app/views/phcdevworks_press/list/items/_form.html.erb +37 -37
- data/app/views/phcdevworks_press/list/items/edit.html.erb +47 -47
- data/app/views/phcdevworks_press/list/items/index.html.erb +81 -81
- data/app/views/phcdevworks_press/list/items/new.html.erb +48 -48
- data/app/views/phcdevworks_press/list/items/show.html.erb +0 -0
- data/app/views/phcdevworks_press/list/posts/_form.html.erb +86 -86
- data/app/views/phcdevworks_press/list/posts/edit.html.erb +23 -23
- data/app/views/phcdevworks_press/list/posts/index.html.erb +84 -84
- data/app/views/phcdevworks_press/list/posts/new.html.erb +23 -23
- data/app/views/phcdevworks_press/list/posts/show.html.erb +76 -76
- data/app/views/phcdevworks_press/review/posts/_form.html.erb +90 -90
- data/app/views/phcdevworks_press/review/posts/edit.html.erb +23 -23
- data/app/views/phcdevworks_press/review/posts/index.html.erb +83 -83
- data/app/views/phcdevworks_press/review/posts/new.html.erb +23 -23
- data/app/views/phcdevworks_press/review/posts/show.html.erb +9 -9
- data/config/routes.rb +38 -38
- data/config/spring.rb +1 -1
- data/db/migrate/20170517064030_create_phcdevworks_press_article_post_versions.rb +0 -0
- data/db/migrate/20190805232522_create_phcdevworks_press_article_posts.rb +19 -19
- data/db/migrate/20191024232406_create_phcdevworks_press_article_categories_posts.rb +10 -10
- data/db/migrate/20200708231335_create_phcdevworks_press_list_post_versions.rb +18 -18
- data/db/migrate/20200708231351_create_phcdevworks_press_review_post_versions.rb +18 -18
- data/db/migrate/20200712064624_create_phcdevworks_press_list_posts.rb +19 -19
- data/db/migrate/20200712064740_create_phcdevworks_press_review_posts.rb +21 -21
- data/db/migrate/20200712064920_create_phcdevworks_press_list_items.rb +22 -22
- data/db/migrate/20200712065808_create_phcdevworks_press_list_item_versions.rb +18 -18
- data/db/migrate/20200716224648_create_phcdevworks_press_review_categories_posts.rb +10 -10
- data/db/migrate/20200716224738_create_phcdevworks_press_list_categories_posts.rb +10 -10
- data/db/migrate/20210213025633_add_affiliatelink_to_article_posts.rb +5 -5
- data/lib/phcdevworks_press/engine.rb +47 -47
- data/lib/phcdevworks_press/version.rb +3 -3
- data/lib/phcdevworks_press.rb +6 -6
- data/lib/tasks/phcdevworks_press_tasks.rake +4 -4
- metadata +33 -33
@@ -1,84 +1,84 @@
|
|
1
|
-
<!-- PHCTitleSEO Title Variables -->
|
2
|
-
<% phc_title "List Manager" %>
|
3
|
-
<% phc_title_tagline "List Index" %>
|
4
|
-
<% phc_breadcrumb_one yield(:phc_title) %>
|
5
|
-
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!-- PHCTitleSEO Title Variables -->
|
7
|
-
|
8
|
-
<!-- Page Bradcrumbs -->
|
9
|
-
<ol class="breadcrumb pull-right">
|
10
|
-
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
-
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
-
</ol>
|
13
|
-
<!-- Page Bradcrumbs -->
|
14
|
-
|
15
|
-
<!-- Page Header -->
|
16
|
-
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
17
|
-
<!-- Page Header -->
|
18
|
-
|
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
|
-
<!-- Index - Table -->
|
36
|
-
<div class="table-responsive">
|
37
|
-
<table class="table table-striped table-bordered">
|
38
|
-
|
39
|
-
<thead>
|
40
|
-
<tr>
|
41
|
-
<th>List Headline</th>
|
42
|
-
<th>Text Preview</th>
|
43
|
-
<th>List Status</th>
|
44
|
-
<th></th>
|
45
|
-
</tr>
|
46
|
-
</thead>
|
47
|
-
|
48
|
-
<tbody>
|
49
|
-
<% @list_posts.each do |list_post| %>
|
50
|
-
<tr>
|
51
|
-
<td><%= list_post.list_post_title %></td>
|
52
|
-
<td><%= truncate(list_post.list_post_text, :length => 80, :escape => false) %></td>
|
53
|
-
<td><%= list_post.list_post_status.capitalize %></td>
|
54
|
-
<td>
|
55
|
-
<div class="btn-group d-flex" role="group">
|
56
|
-
<%= link_to "List Details", list_post_path(list_post), class: "btn btn-primary btn-xs" %>
|
57
|
-
<%= link_to "Update List", edit_list_post_path(list_post), class: "btn btn-primary btn-xs" %>
|
58
|
-
<%= link_to "Remove List", list_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: "Are you sure?" } %>
|
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_press.new_list_post_path, class: "btn btn-primary" do %>
|
71
|
-
<i class="fad fa-plus-circle"></i>
|
72
|
-
<%= "Add a New Top List" %>
|
73
|
-
<% end %>
|
74
|
-
<!-- New Button -->
|
75
|
-
|
76
|
-
</div>
|
77
|
-
<!-- Panel - Body -->
|
78
|
-
|
79
|
-
</div>
|
80
|
-
<!-- Panel -->
|
81
|
-
|
82
|
-
</div>
|
83
|
-
</div>
|
84
|
-
<!-- Page Content -->
|
1
|
+
<!-- PHCTitleSEO Title Variables -->
|
2
|
+
<% phc_title "List Manager" %>
|
3
|
+
<% phc_title_tagline "List Index" %>
|
4
|
+
<% phc_breadcrumb_one yield(:phc_title) %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
+
<!-- PHCTitleSEO Title Variables -->
|
7
|
+
|
8
|
+
<!-- Page Bradcrumbs -->
|
9
|
+
<ol class="breadcrumb pull-right">
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
+
</ol>
|
13
|
+
<!-- Page Bradcrumbs -->
|
14
|
+
|
15
|
+
<!-- Page Header -->
|
16
|
+
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
17
|
+
<!-- Page Header -->
|
18
|
+
|
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
|
+
<!-- Index - Table -->
|
36
|
+
<div class="table-responsive">
|
37
|
+
<table class="table table-striped table-bordered">
|
38
|
+
|
39
|
+
<thead>
|
40
|
+
<tr>
|
41
|
+
<th>List Headline</th>
|
42
|
+
<th>Text Preview</th>
|
43
|
+
<th>List Status</th>
|
44
|
+
<th></th>
|
45
|
+
</tr>
|
46
|
+
</thead>
|
47
|
+
|
48
|
+
<tbody>
|
49
|
+
<% @list_posts.each do |list_post| %>
|
50
|
+
<tr>
|
51
|
+
<td><%= list_post.list_post_title %></td>
|
52
|
+
<td><%= truncate(list_post.list_post_text, :length => 80, :escape => false) %></td>
|
53
|
+
<td><%= list_post.list_post_status.capitalize %></td>
|
54
|
+
<td>
|
55
|
+
<div class="btn-group d-flex" role="group">
|
56
|
+
<%= link_to "List Details", list_post_path(list_post), class: "btn btn-primary btn-xs" %>
|
57
|
+
<%= link_to "Update List", edit_list_post_path(list_post), class: "btn btn-primary btn-xs" %>
|
58
|
+
<%= link_to "Remove List", list_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: "Are you sure?" } %>
|
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_press.new_list_post_path, class: "btn btn-primary" do %>
|
71
|
+
<i class="fad fa-plus-circle"></i>
|
72
|
+
<%= "Add a New Top List" %>
|
73
|
+
<% end %>
|
74
|
+
<!-- New Button -->
|
75
|
+
|
76
|
+
</div>
|
77
|
+
<!-- Panel - Body -->
|
78
|
+
|
79
|
+
</div>
|
80
|
+
<!-- Panel -->
|
81
|
+
|
82
|
+
</div>
|
83
|
+
</div>
|
84
|
+
<!-- Page Content -->
|
@@ -1,23 +1,23 @@
|
|
1
|
-
<!-- PHCTitleSEO Title Variables -->
|
2
|
-
<% phc_title "Lists Manager" %>
|
3
|
-
<% phc_title_tagline "Create a New List" %>
|
4
|
-
<% phc_breadcrumb_one yield(:phc_title) %>
|
5
|
-
<% phc_breadcrumb_two link_to "List Index", phcdevworks_press.list_posts_path %>
|
6
|
-
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
-
<!-- PHCTitleSEO Title Variables -->
|
8
|
-
|
9
|
-
<!-- Page Bradcrumbs -->
|
10
|
-
<ol class="breadcrumb pull-right">
|
11
|
-
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
|
-
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
|
-
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
|
-
</ol>
|
15
|
-
<!-- Page Bradcrumbs -->
|
16
|
-
|
17
|
-
<!-- Page Header -->
|
18
|
-
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
19
|
-
<!-- Page Header -->
|
20
|
-
|
21
|
-
<!-- New Form -->
|
22
|
-
<%= render 'form', list_post: @list_post %>
|
23
|
-
<!-- New Form -->
|
1
|
+
<!-- PHCTitleSEO Title Variables -->
|
2
|
+
<% phc_title "Lists Manager" %>
|
3
|
+
<% phc_title_tagline "Create a New List" %>
|
4
|
+
<% phc_breadcrumb_one yield(:phc_title) %>
|
5
|
+
<% phc_breadcrumb_two link_to "List Index", phcdevworks_press.list_posts_path %>
|
6
|
+
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
+
<!-- PHCTitleSEO Title Variables -->
|
8
|
+
|
9
|
+
<!-- Page Bradcrumbs -->
|
10
|
+
<ol class="breadcrumb pull-right">
|
11
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
|
+
</ol>
|
15
|
+
<!-- Page Bradcrumbs -->
|
16
|
+
|
17
|
+
<!-- Page Header -->
|
18
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
19
|
+
<!-- Page Header -->
|
20
|
+
|
21
|
+
<!-- New Form -->
|
22
|
+
<%= render 'form', list_post: @list_post %>
|
23
|
+
<!-- New Form -->
|
@@ -1,76 +1,76 @@
|
|
1
|
-
<!-- PHCTitleSEO Title Variables -->
|
2
|
-
<% phc_title "List Manager" %>
|
3
|
-
<% phc_title_tagline "List Index" %>
|
4
|
-
<% phc_breadcrumb_one yield(:phc_title) %>
|
5
|
-
<% phc_breadcrumb_two link_to "List Index", phcdevworks_press.list_posts_path %>
|
6
|
-
<!-- PHCTitleSEO Title Variables -->
|
7
|
-
|
8
|
-
<!-- Page Bradcrumbs -->
|
9
|
-
<ol class="breadcrumb pull-right">
|
10
|
-
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
-
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
-
</ol>
|
13
|
-
<!-- Page Bradcrumbs -->
|
14
|
-
|
15
|
-
<!-- Page Header -->
|
16
|
-
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
17
|
-
<!-- Page Header -->
|
18
|
-
|
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
|
-
<!-- Index - Table -->
|
36
|
-
<div class="table-responsive">
|
37
|
-
<table class="table table-striped table-bordered">
|
38
|
-
|
39
|
-
<thead>
|
40
|
-
<tr>
|
41
|
-
<th>List Item Number</th>
|
42
|
-
<th>List Item Title</th>
|
43
|
-
<th>List Item Description</th>
|
44
|
-
</tr>
|
45
|
-
</thead>
|
46
|
-
|
47
|
-
<tbody>
|
48
|
-
<% @list_post.items.each do |list_item| %>
|
49
|
-
<tr>
|
50
|
-
<td><%= list_item.id %></td>
|
51
|
-
<td><%= list_item.list_item_title %></td>
|
52
|
-
<td><%= truncate(list_item.list_item_text, :length => 80, :escape => false) %></td>
|
53
|
-
</tr>
|
54
|
-
<% end %>
|
55
|
-
</tbody>
|
56
|
-
|
57
|
-
</table>
|
58
|
-
</div>
|
59
|
-
<!-- Index - Table -->
|
60
|
-
|
61
|
-
<!-- New Button -->
|
62
|
-
<%= link_to phcdevworks_press.list_post_items_path(@list_post), class: "btn btn-primary btn-sm" do %>
|
63
|
-
<i class="fad fa-plus-circle"></i>
|
64
|
-
Add or Update List Items
|
65
|
-
<% end %>
|
66
|
-
<!-- New Button -->
|
67
|
-
|
68
|
-
</div>
|
69
|
-
<!-- Panel - Body -->
|
70
|
-
|
71
|
-
</div>
|
72
|
-
<!-- Panel -->
|
73
|
-
|
74
|
-
</div>
|
75
|
-
</div>
|
76
|
-
<!-- Page Content -->
|
1
|
+
<!-- PHCTitleSEO Title Variables -->
|
2
|
+
<% phc_title "List Manager" %>
|
3
|
+
<% phc_title_tagline "List Index" %>
|
4
|
+
<% phc_breadcrumb_one yield(:phc_title) %>
|
5
|
+
<% phc_breadcrumb_two link_to "List Index", phcdevworks_press.list_posts_path %>
|
6
|
+
<!-- PHCTitleSEO Title Variables -->
|
7
|
+
|
8
|
+
<!-- Page Bradcrumbs -->
|
9
|
+
<ol class="breadcrumb pull-right">
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
+
</ol>
|
13
|
+
<!-- Page Bradcrumbs -->
|
14
|
+
|
15
|
+
<!-- Page Header -->
|
16
|
+
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
17
|
+
<!-- Page Header -->
|
18
|
+
|
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
|
+
<!-- Index - Table -->
|
36
|
+
<div class="table-responsive">
|
37
|
+
<table class="table table-striped table-bordered">
|
38
|
+
|
39
|
+
<thead>
|
40
|
+
<tr>
|
41
|
+
<th>List Item Number</th>
|
42
|
+
<th>List Item Title</th>
|
43
|
+
<th>List Item Description</th>
|
44
|
+
</tr>
|
45
|
+
</thead>
|
46
|
+
|
47
|
+
<tbody>
|
48
|
+
<% @list_post.items.each do |list_item| %>
|
49
|
+
<tr>
|
50
|
+
<td><%= list_item.id %></td>
|
51
|
+
<td><%= list_item.list_item_title %></td>
|
52
|
+
<td><%= truncate(list_item.list_item_text, :length => 80, :escape => false) %></td>
|
53
|
+
</tr>
|
54
|
+
<% end %>
|
55
|
+
</tbody>
|
56
|
+
|
57
|
+
</table>
|
58
|
+
</div>
|
59
|
+
<!-- Index - Table -->
|
60
|
+
|
61
|
+
<!-- New Button -->
|
62
|
+
<%= link_to phcdevworks_press.list_post_items_path(@list_post), class: "btn btn-primary btn-sm" do %>
|
63
|
+
<i class="fad fa-plus-circle"></i>
|
64
|
+
Add or Update List Items
|
65
|
+
<% end %>
|
66
|
+
<!-- New Button -->
|
67
|
+
|
68
|
+
</div>
|
69
|
+
<!-- Panel - Body -->
|
70
|
+
|
71
|
+
</div>
|
72
|
+
<!-- Panel -->
|
73
|
+
|
74
|
+
</div>
|
75
|
+
</div>
|
76
|
+
<!-- Page Content -->
|
@@ -1,90 +1,90 @@
|
|
1
|
-
<!-- Form - Review - Posts -->
|
2
|
-
<%= form_with(model: review_post, local: true) do |form| %>
|
3
|
-
|
4
|
-
<div class="row">
|
5
|
-
<div class="col-md-3">
|
6
|
-
|
7
|
-
<!-- Panel - Publishing -->
|
8
|
-
<div class="panel panel-inverse">
|
9
|
-
<div class="panel-heading">
|
10
|
-
<h4 class="panel-title">Review Publish Panel</h4>
|
11
|
-
</div>
|
12
|
-
<div class="panel-body">
|
13
|
-
<div class="form-group field_with_errors">
|
14
|
-
<%= form.label :review_post_status, "Post Status" %>
|
15
|
-
<%= form.select( :review_post_status, [["Draft","draft"],["Published","published"],["Review","review"]], {}, {class: "form-control"}) %>
|
16
|
-
</div>
|
17
|
-
<div class="actions">
|
18
|
-
<%= form.submit class: "btn btn-primary" %>
|
19
|
-
</div>
|
20
|
-
</div>
|
21
|
-
</div>
|
22
|
-
<!-- Panel - Publishing -->
|
23
|
-
|
24
|
-
<!-- Panel - Image Uploading -->
|
25
|
-
<div class="panel panel-inverse">
|
26
|
-
<div class="panel-heading">
|
27
|
-
<h4 class="panel-title">Review Images</h4>
|
28
|
-
</div>
|
29
|
-
<div class="panel-body">
|
30
|
-
<div class="form-group field_with_errors">
|
31
|
-
<%= form.label :review_post_image, "Featured Image" %>
|
32
|
-
<%= form.file_field :review_post_image, class: "form-control" %>
|
33
|
-
</div>
|
34
|
-
<% if form.object.review_post_image.attached? %>
|
35
|
-
<%= image_tag main_app.url_for(form.object.review_post_image), class: "img-responsive img-thumbnail" %>
|
36
|
-
<% end %>
|
37
|
-
</div>
|
38
|
-
</div>
|
39
|
-
<!-- Panel - Image Uploading -->
|
40
|
-
|
41
|
-
<!-- Panel - Article - Categories -->
|
42
|
-
<div class="panel panel-inverse">
|
43
|
-
<div class="panel-heading">
|
44
|
-
<h4 class="panel-title">Review Options</h4>
|
45
|
-
</div>
|
46
|
-
<div class="panel-body">
|
47
|
-
<%= form.collection_check_boxes :category_ids, PhcdevworksCoreModules::Post::Category.all, :id, :post_category_name do |post_category| %>
|
48
|
-
<%= post_category.check_box %>
|
49
|
-
<%= post_category.label %><br>
|
50
|
-
<% end %>
|
51
|
-
<div class="form-group">
|
52
|
-
<label>Attach SEO Data</label>
|
53
|
-
<%= collection_select(:review_post, :optimization_id, PhcdevworksCoreModules::Marketing::Optimization.order("marketing_optimization_page_title"), :id, :marketing_optimization_page_title, {include_blank: true}, {class: "form-control"}) %>
|
54
|
-
</div>
|
55
|
-
<div class="form-group">
|
56
|
-
<%= form.label :review_post_rating, "Review Rating" %>
|
57
|
-
<%= form.select( :review_post_rating, [["01","01"],["02","02"],["03","03"],["04","04"],["05","05"]], {}, {class: "form-control"}) %>
|
58
|
-
</div>
|
59
|
-
</div>
|
60
|
-
</div>
|
61
|
-
<!-- Panel - Article - Categories -->
|
62
|
-
|
63
|
-
</div>
|
64
|
-
<div class="col-md-9 ">
|
65
|
-
|
66
|
-
<!-- PHCNotifi Render Validation -->
|
67
|
-
<%= render "phcdevworks_notifications/bootstrap/validations", :object => @review_post %>
|
68
|
-
<!-- PHCNotifi Render Validation -->
|
69
|
-
|
70
|
-
<div class="panel panel-inverse">
|
71
|
-
<div class="panel-heading">
|
72
|
-
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
|
73
|
-
</div>
|
74
|
-
<div class="panel-body">
|
75
|
-
<div class="form-group field_with_errors">
|
76
|
-
<%= form.label :review_post_title, "Article Title" %>
|
77
|
-
<%= form.text_field :review_post_title, class: "form-control" %>
|
78
|
-
</div>
|
79
|
-
<div class="form-group ">
|
80
|
-
<%= form.text_area :review_post_text, class: "form-control editor" %>
|
81
|
-
<div id="word-count" class="mt-3"></div>
|
82
|
-
</div>
|
83
|
-
</div>
|
84
|
-
</div>
|
85
|
-
|
86
|
-
</div>
|
87
|
-
</div>
|
88
|
-
|
89
|
-
<% end %>
|
90
|
-
<!-- Form - Review - Posts -->
|
1
|
+
<!-- Form - Review - Posts -->
|
2
|
+
<%= form_with(model: review_post, local: true) do |form| %>
|
3
|
+
|
4
|
+
<div class="row">
|
5
|
+
<div class="col-md-3">
|
6
|
+
|
7
|
+
<!-- Panel - Publishing -->
|
8
|
+
<div class="panel panel-inverse">
|
9
|
+
<div class="panel-heading">
|
10
|
+
<h4 class="panel-title">Review Publish Panel</h4>
|
11
|
+
</div>
|
12
|
+
<div class="panel-body">
|
13
|
+
<div class="form-group field_with_errors">
|
14
|
+
<%= form.label :review_post_status, "Post Status" %>
|
15
|
+
<%= form.select( :review_post_status, [["Draft","draft"],["Published","published"],["Review","review"]], {}, {class: "form-control"}) %>
|
16
|
+
</div>
|
17
|
+
<div class="actions">
|
18
|
+
<%= form.submit class: "btn btn-primary" %>
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
<!-- Panel - Publishing -->
|
23
|
+
|
24
|
+
<!-- Panel - Image Uploading -->
|
25
|
+
<div class="panel panel-inverse">
|
26
|
+
<div class="panel-heading">
|
27
|
+
<h4 class="panel-title">Review Images</h4>
|
28
|
+
</div>
|
29
|
+
<div class="panel-body">
|
30
|
+
<div class="form-group field_with_errors">
|
31
|
+
<%= form.label :review_post_image, "Featured Image" %>
|
32
|
+
<%= form.file_field :review_post_image, class: "form-control" %>
|
33
|
+
</div>
|
34
|
+
<% if form.object.review_post_image.attached? %>
|
35
|
+
<%= image_tag main_app.url_for(form.object.review_post_image), class: "img-responsive img-thumbnail" %>
|
36
|
+
<% end %>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
<!-- Panel - Image Uploading -->
|
40
|
+
|
41
|
+
<!-- Panel - Article - Categories -->
|
42
|
+
<div class="panel panel-inverse">
|
43
|
+
<div class="panel-heading">
|
44
|
+
<h4 class="panel-title">Review Options</h4>
|
45
|
+
</div>
|
46
|
+
<div class="panel-body">
|
47
|
+
<%= form.collection_check_boxes :category_ids, PhcdevworksCoreModules::Post::Category.all, :id, :post_category_name do |post_category| %>
|
48
|
+
<%= post_category.check_box %>
|
49
|
+
<%= post_category.label %><br>
|
50
|
+
<% end %>
|
51
|
+
<div class="form-group">
|
52
|
+
<label>Attach SEO Data</label>
|
53
|
+
<%= collection_select(:review_post, :optimization_id, PhcdevworksCoreModules::Marketing::Optimization.order("marketing_optimization_page_title"), :id, :marketing_optimization_page_title, {include_blank: true}, {class: "form-control"}) %>
|
54
|
+
</div>
|
55
|
+
<div class="form-group">
|
56
|
+
<%= form.label :review_post_rating, "Review Rating" %>
|
57
|
+
<%= form.select( :review_post_rating, [["01","01"],["02","02"],["03","03"],["04","04"],["05","05"]], {}, {class: "form-control"}) %>
|
58
|
+
</div>
|
59
|
+
</div>
|
60
|
+
</div>
|
61
|
+
<!-- Panel - Article - Categories -->
|
62
|
+
|
63
|
+
</div>
|
64
|
+
<div class="col-md-9 ">
|
65
|
+
|
66
|
+
<!-- PHCNotifi Render Validation -->
|
67
|
+
<%= render "phcdevworks_notifications/bootstrap/validations", :object => @review_post %>
|
68
|
+
<!-- PHCNotifi Render Validation -->
|
69
|
+
|
70
|
+
<div class="panel panel-inverse">
|
71
|
+
<div class="panel-heading">
|
72
|
+
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
|
73
|
+
</div>
|
74
|
+
<div class="panel-body">
|
75
|
+
<div class="form-group field_with_errors">
|
76
|
+
<%= form.label :review_post_title, "Article Title" %>
|
77
|
+
<%= form.text_field :review_post_title, class: "form-control" %>
|
78
|
+
</div>
|
79
|
+
<div class="form-group ">
|
80
|
+
<%= form.text_area :review_post_text, class: "form-control editor" %>
|
81
|
+
<div id="word-count" class="mt-3"></div>
|
82
|
+
</div>
|
83
|
+
</div>
|
84
|
+
</div>
|
85
|
+
|
86
|
+
</div>
|
87
|
+
</div>
|
88
|
+
|
89
|
+
<% end %>
|
90
|
+
<!-- Form - Review - Posts -->
|
@@ -1,23 +1,23 @@
|
|
1
|
-
<!-- PHCTitleSEO Title Variables -->
|
2
|
-
<% phc_title "Article Manager" %>
|
3
|
-
<% phc_title_tagline "Update Review" %>
|
4
|
-
<% phc_breadcrumb_one yield(:phc_title) %>
|
5
|
-
<% phc_breadcrumb_two link_to "Review Index", phcdevworks_press.review_posts_path %>
|
6
|
-
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
-
<!-- PHCTitleSEO Title Variables -->
|
8
|
-
|
9
|
-
<!-- Page Bradcrumbs -->
|
10
|
-
<ol class="breadcrumb pull-right">
|
11
|
-
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
|
-
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
|
-
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
|
-
</ol>
|
15
|
-
<!-- Page Bradcrumbs -->
|
16
|
-
|
17
|
-
<!-- Page Header -->
|
18
|
-
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
19
|
-
<!-- Page Header -->
|
20
|
-
|
21
|
-
<!-- Edit Form -->
|
22
|
-
<%= render 'form', review_post: @review_post %>
|
23
|
-
<!-- Edit Form -->
|
1
|
+
<!-- PHCTitleSEO Title Variables -->
|
2
|
+
<% phc_title "Article Manager" %>
|
3
|
+
<% phc_title_tagline "Update Review" %>
|
4
|
+
<% phc_breadcrumb_one yield(:phc_title) %>
|
5
|
+
<% phc_breadcrumb_two link_to "Review Index", phcdevworks_press.review_posts_path %>
|
6
|
+
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
+
<!-- PHCTitleSEO Title Variables -->
|
8
|
+
|
9
|
+
<!-- Page Bradcrumbs -->
|
10
|
+
<ol class="breadcrumb pull-right">
|
11
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
|
+
</ol>
|
15
|
+
<!-- Page Bradcrumbs -->
|
16
|
+
|
17
|
+
<!-- Page Header -->
|
18
|
+
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
19
|
+
<!-- Page Header -->
|
20
|
+
|
21
|
+
<!-- Edit Form -->
|
22
|
+
<%= render 'form', review_post: @review_post %>
|
23
|
+
<!-- Edit Form -->
|