phcpress 9.0.1 → 9.1.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 +46 -46
- data/Rakefile +33 -33
- data/app/assets/config/phcpress_manifest.js +2 -2
- data/app/assets/javascripts/phcpress/application.js +2 -2
- data/app/assets/stylesheets/phcpress/application.scss +2 -2
- data/app/controllers/phcpress/api/v1/categories_controller.rb +15 -15
- data/app/controllers/phcpress/api/v1/posts_controller.rb +15 -15
- data/app/controllers/phcpress/application_controller.rb +12 -12
- data/app/controllers/phcpress/articles/posts_controller.rb +67 -67
- data/app/controllers/phcpress/frontend/articles_controller.rb +20 -20
- data/app/controllers/phcpress/modules/categories_controller.rb +65 -65
- data/app/controllers/phcpress/modules/connections_controller.rb +65 -65
- data/app/helpers/phcpress/application_helper.rb +14 -14
- data/app/jobs/phcpress/application_job.rb +4 -4
- data/app/mailers/phcpress/application_mailer.rb +6 -6
- data/app/models/phcpress/api/v1/category.rb +4 -4
- data/app/models/phcpress/api/v1/post.rb +4 -4
- data/app/models/phcpress/application_record.rb +5 -5
- data/app/models/phcpress/articles.rb +7 -7
- data/app/models/phcpress/articles/post.rb +30 -30
- data/app/models/phcpress/frontend.rb +7 -7
- data/app/models/phcpress/frontend/article.rb +4 -4
- data/app/models/phcpress/modules.rb +7 -7
- data/app/models/phcpress/modules/category.rb +20 -20
- data/app/models/phcpress/modules/connection.rb +15 -15
- data/app/uploaders/phcpress/pstimage_uploader.rb +30 -30
- data/app/views/layouts/components/backend/footer/_footer.html.erb +4 -4
- data/app/views/layouts/components/backend/navigation/_navigation.html.erb +48 -48
- data/app/views/layouts/components/backend/topbar/_topbar.html.erb +5 -5
- data/app/views/layouts/phcpress/application.html.erb +57 -57
- data/app/views/layouts/phcpress/frontend.html.erb +24 -24
- data/app/views/phcpress/api/v1/categories/index.json.rabl +2 -2
- data/app/views/phcpress/api/v1/posts/index.json.rabl +2 -2
- data/app/views/phcpress/articles/posts/_form.html.erb +84 -84
- data/app/views/phcpress/articles/posts/edit.html.erb +32 -32
- data/app/views/phcpress/articles/posts/index.html.erb +69 -69
- data/app/views/phcpress/articles/posts/new.html.erb +32 -32
- data/app/views/phcpress/articles/posts/show.html.erb +40 -40
- data/app/views/phcpress/frontend/articles/index.html.erb +76 -76
- data/app/views/phcpress/frontend/articles/show.html.erb +72 -72
- data/app/views/phcpress/modules/categories/_form.html.erb +20 -20
- data/app/views/phcpress/modules/categories/edit.html.erb +39 -39
- data/app/views/phcpress/modules/categories/index.html.erb +66 -66
- data/app/views/phcpress/modules/categories/new.html.erb +39 -39
- data/app/views/phcpress/modules/categories/show.html.erb +40 -40
- data/app/views/phcpress/modules/connections/_form.html.erb +24 -24
- data/app/views/phcpress/modules/connections/edit.html.erb +39 -39
- data/app/views/phcpress/modules/connections/index.html.erb +66 -66
- data/app/views/phcpress/modules/connections/new.html.erb +39 -39
- data/app/views/phcpress/modules/connections/show.html.erb +50 -50
- data/config/initializers/friendly_id.rb +92 -92
- data/config/routes.rb +27 -27
- data/config/tinymce.yml +5 -5
- data/db/migrate/20160716182848_create_phcpress_modules_categories.rb +18 -18
- data/db/migrate/20160720181307_create_phcpress_articles_posts.rb +21 -21
- data/db/migrate/20160720235314_create_phcpress_modules_connections.rb +19 -19
- data/db/migrate/20170509180858_create_friendly_id_slugs.rb +15 -15
- data/lib/phcpress.rb +4 -4
- data/lib/phcpress/engine.rb +68 -68
- data/lib/phcpress/version.rb +3 -3
- data/lib/tasks/phcpress_tasks.rake +4 -4
- metadata +23 -53
@@ -1,2 +1,2 @@
|
|
1
|
-
object @modules_categories
|
2
|
-
attributes :id, :catname
|
1
|
+
object @modules_categories
|
2
|
+
attributes :id, :catname
|
@@ -1,2 +1,2 @@
|
|
1
|
-
object @articles_posts
|
2
|
-
attributes :id, :psttitle, :psttext, :pststatus, :pstimage
|
1
|
+
object @articles_posts
|
2
|
+
attributes :id, :psttitle, :psttext, :pststatus, :pstimage
|
@@ -1,84 +1,84 @@
|
|
1
|
-
<div class="row">
|
2
|
-
<%= form_for(@articles_post, :html => {:multipart => true}) do |f| %>
|
3
|
-
|
4
|
-
<!-- PHC-Notifi Render Validation -->
|
5
|
-
<%= render 'phcnotifi/validations', :object => @articles_post %>
|
6
|
-
|
7
|
-
<div class="col-md-3">
|
8
|
-
|
9
|
-
<div class="panel panel-primary">
|
10
|
-
<div class="panel-heading">
|
11
|
-
<i class="fa fa-paper-plane-o"></i> Publish Panel
|
12
|
-
</div>
|
13
|
-
<div class="panel-body">
|
14
|
-
<div class="form-group">
|
15
|
-
<%= f.label :pststatus, "Post Status" %>
|
16
|
-
<%= f.select( :pststatus, [['Draft','draft'],['Publish','publish'],['Review','review']], {}, {class: "form-control form-control-sm"}) %>
|
17
|
-
</div>
|
18
|
-
<div class="actions">
|
19
|
-
<%= f.submit "Publish", class: "btn btn-primary btn-sm" %>
|
20
|
-
</div>
|
21
|
-
</div>
|
22
|
-
</div>
|
23
|
-
|
24
|
-
<div class="panel panel-primary">
|
25
|
-
<div class="panel-heading">
|
26
|
-
<i class="fa fa-camera-retro"></i> Post Images
|
27
|
-
</div>
|
28
|
-
<div class="panel-body">
|
29
|
-
<div class="form-group">
|
30
|
-
<%= f.label :pstimage, "Featured Image" %>
|
31
|
-
<%= f.file_field :pstimage, class: "form-control" %>
|
32
|
-
</div>
|
33
|
-
<% if f.object.pstimage? %>
|
34
|
-
<%= image_tag f.object.pstimage_url, class: "img-responsive img-thumbnail" %>
|
35
|
-
<%= f.label :remove_pstimage %>
|
36
|
-
<%= f.check_box :remove_pstimage %>
|
37
|
-
<% end %>
|
38
|
-
</div>
|
39
|
-
</div>
|
40
|
-
|
41
|
-
<div class="panel panel-primary">
|
42
|
-
<div class="panel-heading">
|
43
|
-
<i class="fa fa-sitemap"></i> Post Categories & Tags
|
44
|
-
</div>
|
45
|
-
<div class="panel-body">
|
46
|
-
<div class="form-group">
|
47
|
-
<%= f.collection_check_boxes :category_ids, Phcpress::Modules::Category.all, :id, :catname do |post_category| %>
|
48
|
-
<%= post_category.check_box %>
|
49
|
-
<%= post_category.label %></br>
|
50
|
-
<% end %>
|
51
|
-
</div>
|
52
|
-
</div>
|
53
|
-
</div>
|
54
|
-
|
55
|
-
</div>
|
56
|
-
|
57
|
-
<div class="col-md-9 ">
|
58
|
-
|
59
|
-
<div class="panel panel-primary">
|
60
|
-
<div class="panel-heading">
|
61
|
-
<i class="fa fa-pencil-square-o"></i> Blog Post Publisher
|
62
|
-
</div>
|
63
|
-
<div class="panel-body">
|
64
|
-
|
65
|
-
<%= render 'phcnotifi/validations', :object => @articles_post %>
|
66
|
-
|
67
|
-
<div class="form-group">
|
68
|
-
<%= f.label :psttext, "Post Title" %>
|
69
|
-
<%= f.text_field :psttitle, class: "form-control" %>
|
70
|
-
</div>
|
71
|
-
<div class="form-group">
|
72
|
-
<%= f.label :psttext, "Post Text" %>
|
73
|
-
<%= f.text_area :psttext, :class => "tinymce form-control", :rows => 20, :cols => 60 %>
|
74
|
-
</div>
|
75
|
-
|
76
|
-
</div>
|
77
|
-
</div>
|
78
|
-
|
79
|
-
</div>
|
80
|
-
|
81
|
-
<% end %>
|
82
|
-
</div>
|
83
|
-
|
84
|
-
<%= tinymce %>
|
1
|
+
<div class="row">
|
2
|
+
<%= form_for(@articles_post, :html => {:multipart => true}) do |f| %>
|
3
|
+
|
4
|
+
<!-- PHC-Notifi Render Validation -->
|
5
|
+
<%= render 'phcnotifi/validations', :object => @articles_post %>
|
6
|
+
|
7
|
+
<div class="col-md-3">
|
8
|
+
|
9
|
+
<div class="panel panel-primary">
|
10
|
+
<div class="panel-heading">
|
11
|
+
<i class="fa fa-paper-plane-o"></i> Publish Panel
|
12
|
+
</div>
|
13
|
+
<div class="panel-body">
|
14
|
+
<div class="form-group">
|
15
|
+
<%= f.label :pststatus, "Post Status" %>
|
16
|
+
<%= f.select( :pststatus, [['Draft','draft'],['Publish','publish'],['Review','review']], {}, {class: "form-control form-control-sm"}) %>
|
17
|
+
</div>
|
18
|
+
<div class="actions">
|
19
|
+
<%= f.submit "Publish", class: "btn btn-primary btn-sm" %>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<div class="panel panel-primary">
|
25
|
+
<div class="panel-heading">
|
26
|
+
<i class="fa fa-camera-retro"></i> Post Images
|
27
|
+
</div>
|
28
|
+
<div class="panel-body">
|
29
|
+
<div class="form-group">
|
30
|
+
<%= f.label :pstimage, "Featured Image" %>
|
31
|
+
<%= f.file_field :pstimage, class: "form-control" %>
|
32
|
+
</div>
|
33
|
+
<% if f.object.pstimage? %>
|
34
|
+
<%= image_tag f.object.pstimage_url, class: "img-responsive img-thumbnail" %>
|
35
|
+
<%= f.label :remove_pstimage %>
|
36
|
+
<%= f.check_box :remove_pstimage %>
|
37
|
+
<% end %>
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<div class="panel panel-primary">
|
42
|
+
<div class="panel-heading">
|
43
|
+
<i class="fa fa-sitemap"></i> Post Categories & Tags
|
44
|
+
</div>
|
45
|
+
<div class="panel-body">
|
46
|
+
<div class="form-group">
|
47
|
+
<%= f.collection_check_boxes :category_ids, Phcpress::Modules::Category.all, :id, :catname do |post_category| %>
|
48
|
+
<%= post_category.check_box %>
|
49
|
+
<%= post_category.label %></br>
|
50
|
+
<% end %>
|
51
|
+
</div>
|
52
|
+
</div>
|
53
|
+
</div>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div class="col-md-9 ">
|
58
|
+
|
59
|
+
<div class="panel panel-primary">
|
60
|
+
<div class="panel-heading">
|
61
|
+
<i class="fa fa-pencil-square-o"></i> Blog Post Publisher
|
62
|
+
</div>
|
63
|
+
<div class="panel-body">
|
64
|
+
|
65
|
+
<%= render 'phcnotifi/validations', :object => @articles_post %>
|
66
|
+
|
67
|
+
<div class="form-group">
|
68
|
+
<%= f.label :psttext, "Post Title" %>
|
69
|
+
<%= f.text_field :psttitle, class: "form-control" %>
|
70
|
+
</div>
|
71
|
+
<div class="form-group">
|
72
|
+
<%= f.label :psttext, "Post Text" %>
|
73
|
+
<%= f.text_area :psttext, :class => "tinymce form-control", :rows => 20, :cols => 60 %>
|
74
|
+
</div>
|
75
|
+
|
76
|
+
</div>
|
77
|
+
</div>
|
78
|
+
|
79
|
+
</div>
|
80
|
+
|
81
|
+
<% end %>
|
82
|
+
</div>
|
83
|
+
|
84
|
+
<%= tinymce %>
|
@@ -1,32 +1,32 @@
|
|
1
|
-
<!-- Title System -->
|
2
|
-
<% phc_title "Article Manager" %>
|
3
|
-
<% phc_title_tagline "Update Article" %>
|
4
|
-
<% phc_breadcrumb_one link_to "Article Index", phcpress.articles_posts_path %>
|
5
|
-
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!-- Title System -->
|
7
|
-
|
8
|
-
<!-- Page Title Bar -->
|
9
|
-
<section class="content-header">
|
10
|
-
<!-- Page Title and BreadCrumb -->
|
11
|
-
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
12
|
-
<ol class="breadcrumb">
|
13
|
-
<li><%= yield(:phc_breadcrumb_one) %></li>
|
14
|
-
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
15
|
-
</ol>
|
16
|
-
<!-- Page Title and BreadCrumb -->
|
17
|
-
</section>
|
18
|
-
<!-- Page Title Bar -->
|
19
|
-
|
20
|
-
<!-- Main Content -->
|
21
|
-
<section class="content">
|
22
|
-
<div class="row">
|
23
|
-
<div class="col-lg-12">
|
24
|
-
|
25
|
-
<!-- Page Form (Edit) -->
|
26
|
-
<%= render 'form', articles_post: @articles_post %>
|
27
|
-
<!-- Page Form (Edit) -->
|
28
|
-
|
29
|
-
</div>
|
30
|
-
</div>
|
31
|
-
</section>
|
32
|
-
<!-- Main Content -->
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Article Manager" %>
|
3
|
+
<% phc_title_tagline "Update Article" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Article Index", phcpress.articles_posts_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
+
<!-- Title System -->
|
7
|
+
|
8
|
+
<!-- Page Title Bar -->
|
9
|
+
<section class="content-header">
|
10
|
+
<!-- Page Title and BreadCrumb -->
|
11
|
+
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
12
|
+
<ol class="breadcrumb">
|
13
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
14
|
+
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
15
|
+
</ol>
|
16
|
+
<!-- Page Title and BreadCrumb -->
|
17
|
+
</section>
|
18
|
+
<!-- Page Title Bar -->
|
19
|
+
|
20
|
+
<!-- Main Content -->
|
21
|
+
<section class="content">
|
22
|
+
<div class="row">
|
23
|
+
<div class="col-lg-12">
|
24
|
+
|
25
|
+
<!-- Page Form (Edit) -->
|
26
|
+
<%= render 'form', articles_post: @articles_post %>
|
27
|
+
<!-- Page Form (Edit) -->
|
28
|
+
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
</section>
|
32
|
+
<!-- Main Content -->
|
@@ -1,69 +1,69 @@
|
|
1
|
-
<!-- Title System -->
|
2
|
-
<% phc_title "Article Manager" %>
|
3
|
-
<% phc_title_tagline "Article Index" %>
|
4
|
-
<% phc_breadcrumb_one link_to "Article Index", phcpress.articles_posts_path %>
|
5
|
-
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!-- Title System -->
|
7
|
-
|
8
|
-
<!-- Page Title Bar -->
|
9
|
-
<section class="content-header">
|
10
|
-
<!-- Page Title and BreadCrumb -->
|
11
|
-
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
12
|
-
<ol class="breadcrumb">
|
13
|
-
<li><%= yield(:phc_breadcrumb_one) %></li>
|
14
|
-
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
15
|
-
</ol>
|
16
|
-
<!-- Page Title and BreadCrumb -->
|
17
|
-
</section>
|
18
|
-
<!-- Page Title Bar -->
|
19
|
-
|
20
|
-
<!-- Main Content -->
|
21
|
-
<section class="content">
|
22
|
-
<div class="row">
|
23
|
-
<div class="col-lg-12">
|
24
|
-
<div class="box">
|
25
|
-
<div class="box-header with-border">
|
26
|
-
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
27
|
-
</div>
|
28
|
-
<div class="box-body">
|
29
|
-
|
30
|
-
<!-- Index Table -->
|
31
|
-
<div class="table-responsive">
|
32
|
-
<table class="table table-bordered table-striped table-hover">
|
33
|
-
<thead>
|
34
|
-
<tr>
|
35
|
-
<th>Title</th>
|
36
|
-
<th>Text Preview</th>
|
37
|
-
<th>Article Status</th>
|
38
|
-
<th></th>
|
39
|
-
</tr>
|
40
|
-
</thead>
|
41
|
-
<tbody>
|
42
|
-
<% @articles_posts.each do |articles_post| %>
|
43
|
-
<tr>
|
44
|
-
<td><%= articles_post.psttitle %></td>
|
45
|
-
<td><%= truncate(articles_post.psttext, :length => 80) %></td>
|
46
|
-
<td><%= articles_post.pststatus %></td>
|
47
|
-
<td><div class="btn-group" role="group" aria-label="Blog Articles">
|
48
|
-
<%= link_to 'Edit', edit_articles_post_path(articles_post), class: "btn btn-primary btn-xs" %>
|
49
|
-
<%= link_to 'Delete', articles_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
|
50
|
-
</div></td>
|
51
|
-
</tr>
|
52
|
-
<% end %>
|
53
|
-
</tbody>
|
54
|
-
</table>
|
55
|
-
</div>
|
56
|
-
<!-- Index Table -->
|
57
|
-
|
58
|
-
<!-- Panel Footer -->
|
59
|
-
<div class="box-footer clearfix">
|
60
|
-
<%= link_to 'New Blog Post', new_articles_post_path, class: "btn btn-primary" %>
|
61
|
-
</div>
|
62
|
-
<!-- Panel Footer -->
|
63
|
-
|
64
|
-
</div>
|
65
|
-
</div>
|
66
|
-
</div>
|
67
|
-
</div>
|
68
|
-
</section>
|
69
|
-
<!-- Main Content -->
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Article Manager" %>
|
3
|
+
<% phc_title_tagline "Article Index" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Article Index", phcpress.articles_posts_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
+
<!-- Title System -->
|
7
|
+
|
8
|
+
<!-- Page Title Bar -->
|
9
|
+
<section class="content-header">
|
10
|
+
<!-- Page Title and BreadCrumb -->
|
11
|
+
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
12
|
+
<ol class="breadcrumb">
|
13
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
14
|
+
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
15
|
+
</ol>
|
16
|
+
<!-- Page Title and BreadCrumb -->
|
17
|
+
</section>
|
18
|
+
<!-- Page Title Bar -->
|
19
|
+
|
20
|
+
<!-- Main Content -->
|
21
|
+
<section class="content">
|
22
|
+
<div class="row">
|
23
|
+
<div class="col-lg-12">
|
24
|
+
<div class="box">
|
25
|
+
<div class="box-header with-border">
|
26
|
+
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
27
|
+
</div>
|
28
|
+
<div class="box-body">
|
29
|
+
|
30
|
+
<!-- Index Table -->
|
31
|
+
<div class="table-responsive">
|
32
|
+
<table class="table table-bordered table-striped table-hover">
|
33
|
+
<thead>
|
34
|
+
<tr>
|
35
|
+
<th>Title</th>
|
36
|
+
<th>Text Preview</th>
|
37
|
+
<th>Article Status</th>
|
38
|
+
<th></th>
|
39
|
+
</tr>
|
40
|
+
</thead>
|
41
|
+
<tbody>
|
42
|
+
<% @articles_posts.each do |articles_post| %>
|
43
|
+
<tr>
|
44
|
+
<td><%= articles_post.psttitle %></td>
|
45
|
+
<td><%= truncate(articles_post.psttext, :length => 80) %></td>
|
46
|
+
<td><%= articles_post.pststatus %></td>
|
47
|
+
<td><div class="btn-group" role="group" aria-label="Blog Articles">
|
48
|
+
<%= link_to 'Edit', edit_articles_post_path(articles_post), class: "btn btn-primary btn-xs" %>
|
49
|
+
<%= link_to 'Delete', articles_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
|
50
|
+
</div></td>
|
51
|
+
</tr>
|
52
|
+
<% end %>
|
53
|
+
</tbody>
|
54
|
+
</table>
|
55
|
+
</div>
|
56
|
+
<!-- Index Table -->
|
57
|
+
|
58
|
+
<!-- Panel Footer -->
|
59
|
+
<div class="box-footer clearfix">
|
60
|
+
<%= link_to 'New Blog Post', new_articles_post_path, class: "btn btn-primary" %>
|
61
|
+
</div>
|
62
|
+
<!-- Panel Footer -->
|
63
|
+
|
64
|
+
</div>
|
65
|
+
</div>
|
66
|
+
</div>
|
67
|
+
</div>
|
68
|
+
</section>
|
69
|
+
<!-- Main Content -->
|
@@ -1,32 +1,32 @@
|
|
1
|
-
<!-- Title System -->
|
2
|
-
<% phc_title "Article Manager" %>
|
3
|
-
<% phc_title_tagline "Create a New Article" %>
|
4
|
-
<% phc_breadcrumb_one link_to "Article Index", phcpress.articles_posts_path %>
|
5
|
-
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!-- Title System -->
|
7
|
-
|
8
|
-
<!-- Page Title Bar -->
|
9
|
-
<section class="content-header">
|
10
|
-
<!-- Page Title and BreadCrumb -->
|
11
|
-
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
12
|
-
<ol class="breadcrumb">
|
13
|
-
<li><%= yield(:phc_breadcrumb_one) %></li>
|
14
|
-
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
15
|
-
</ol>
|
16
|
-
<!-- Page Title and BreadCrumb -->
|
17
|
-
</section>
|
18
|
-
<!-- Page Title Bar -->
|
19
|
-
|
20
|
-
<!-- Main Content -->
|
21
|
-
<section class="content">
|
22
|
-
<div class="row">
|
23
|
-
<div class="col-lg-12">
|
24
|
-
|
25
|
-
<!-- Page Form (New) -->
|
26
|
-
<%= render 'form', articles_post: @articles_post %>
|
27
|
-
<!-- Page Form (New) -->
|
28
|
-
|
29
|
-
</div>
|
30
|
-
</div>
|
31
|
-
</section>
|
32
|
-
<!-- Main Content -->
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Article Manager" %>
|
3
|
+
<% phc_title_tagline "Create a New Article" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Article Index", phcpress.articles_posts_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
+
<!-- Title System -->
|
7
|
+
|
8
|
+
<!-- Page Title Bar -->
|
9
|
+
<section class="content-header">
|
10
|
+
<!-- Page Title and BreadCrumb -->
|
11
|
+
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
12
|
+
<ol class="breadcrumb">
|
13
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
14
|
+
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
15
|
+
</ol>
|
16
|
+
<!-- Page Title and BreadCrumb -->
|
17
|
+
</section>
|
18
|
+
<!-- Page Title Bar -->
|
19
|
+
|
20
|
+
<!-- Main Content -->
|
21
|
+
<section class="content">
|
22
|
+
<div class="row">
|
23
|
+
<div class="col-lg-12">
|
24
|
+
|
25
|
+
<!-- Page Form (New) -->
|
26
|
+
<%= render 'form', articles_post: @articles_post %>
|
27
|
+
<!-- Page Form (New) -->
|
28
|
+
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
</section>
|
32
|
+
<!-- Main Content -->
|