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,66 +1,66 @@
|
|
1
|
-
<!-- Title System -->
|
2
|
-
<% phc_title "Plugin: Article Category Manager" %>
|
3
|
-
<% phc_title_tagline "Category Index" %>
|
4
|
-
<% phc_breadcrumb_one yield(:phc_title_tagline) %>
|
5
|
-
<!-- Title System -->
|
6
|
-
|
7
|
-
<!-- Page Title Bar -->
|
8
|
-
<section class="content-header">
|
9
|
-
<!-- Page Title and BreadCrumb -->
|
10
|
-
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
11
|
-
<ol class="breadcrumb">
|
12
|
-
<li><%= yield(:phc_breadcrumb_one) %></li>
|
13
|
-
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
14
|
-
</ol>
|
15
|
-
<!-- Page Title and BreadCrumb -->
|
16
|
-
</section>
|
17
|
-
<!-- Page Title Bar -->
|
18
|
-
|
19
|
-
<!-- Main Content -->
|
20
|
-
<section class="content">
|
21
|
-
<div class="row">
|
22
|
-
<div class="col-lg-12">
|
23
|
-
<div class="box">
|
24
|
-
<div class="box-header with-border">
|
25
|
-
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
26
|
-
</div>
|
27
|
-
<div class="box-body">
|
28
|
-
|
29
|
-
<!-- Index Table -->
|
30
|
-
<div class="table-responsive">
|
31
|
-
<table class="table table-bordered table-striped table-hover">
|
32
|
-
<thead>
|
33
|
-
<tr>
|
34
|
-
<th>Category Name</th>
|
35
|
-
<th></th>
|
36
|
-
</tr>
|
37
|
-
</thead>
|
38
|
-
|
39
|
-
<tbody>
|
40
|
-
<% @modules_categories.each do |modules_category| %>
|
41
|
-
<tr>
|
42
|
-
<td><%= modules_category.catname %></td>
|
43
|
-
<td><div class="btn-group" role="group" aria-label="Blog Articles">
|
44
|
-
<%= link_to 'Edit', edit_modules_category_path(modules_category), class: "btn btn-primary btn-xs" %>
|
45
|
-
<%= link_to 'Trash', modules_category, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
|
46
|
-
</div>
|
47
|
-
</td>
|
48
|
-
</tr>
|
49
|
-
<% end %>
|
50
|
-
</tbody>
|
51
|
-
</table>
|
52
|
-
</div>
|
53
|
-
<!-- Index Table -->
|
54
|
-
|
55
|
-
<!-- Panel Footer -->
|
56
|
-
<div class="box-footer clearfix">
|
57
|
-
<%= link_to 'New Category', new_modules_category_path, class: "btn btn-primary" %>
|
58
|
-
</div>
|
59
|
-
<!-- Panel Footer -->
|
60
|
-
|
61
|
-
</div>
|
62
|
-
</div>
|
63
|
-
</div>
|
64
|
-
</div>
|
65
|
-
</section>
|
66
|
-
<!-- Main Content -->
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Plugin: Article Category Manager" %>
|
3
|
+
<% phc_title_tagline "Category Index" %>
|
4
|
+
<% phc_breadcrumb_one yield(:phc_title_tagline) %>
|
5
|
+
<!-- Title System -->
|
6
|
+
|
7
|
+
<!-- Page Title Bar -->
|
8
|
+
<section class="content-header">
|
9
|
+
<!-- Page Title and BreadCrumb -->
|
10
|
+
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
11
|
+
<ol class="breadcrumb">
|
12
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
13
|
+
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
14
|
+
</ol>
|
15
|
+
<!-- Page Title and BreadCrumb -->
|
16
|
+
</section>
|
17
|
+
<!-- Page Title Bar -->
|
18
|
+
|
19
|
+
<!-- Main Content -->
|
20
|
+
<section class="content">
|
21
|
+
<div class="row">
|
22
|
+
<div class="col-lg-12">
|
23
|
+
<div class="box">
|
24
|
+
<div class="box-header with-border">
|
25
|
+
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
26
|
+
</div>
|
27
|
+
<div class="box-body">
|
28
|
+
|
29
|
+
<!-- Index Table -->
|
30
|
+
<div class="table-responsive">
|
31
|
+
<table class="table table-bordered table-striped table-hover">
|
32
|
+
<thead>
|
33
|
+
<tr>
|
34
|
+
<th>Category Name</th>
|
35
|
+
<th></th>
|
36
|
+
</tr>
|
37
|
+
</thead>
|
38
|
+
|
39
|
+
<tbody>
|
40
|
+
<% @modules_categories.each do |modules_category| %>
|
41
|
+
<tr>
|
42
|
+
<td><%= modules_category.catname %></td>
|
43
|
+
<td><div class="btn-group" role="group" aria-label="Blog Articles">
|
44
|
+
<%= link_to 'Edit', edit_modules_category_path(modules_category), class: "btn btn-primary btn-xs" %>
|
45
|
+
<%= link_to 'Trash', modules_category, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
|
46
|
+
</div>
|
47
|
+
</td>
|
48
|
+
</tr>
|
49
|
+
<% end %>
|
50
|
+
</tbody>
|
51
|
+
</table>
|
52
|
+
</div>
|
53
|
+
<!-- Index Table -->
|
54
|
+
|
55
|
+
<!-- Panel Footer -->
|
56
|
+
<div class="box-footer clearfix">
|
57
|
+
<%= link_to 'New Category', new_modules_category_path, class: "btn btn-primary" %>
|
58
|
+
</div>
|
59
|
+
<!-- Panel Footer -->
|
60
|
+
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
</div>
|
64
|
+
</div>
|
65
|
+
</section>
|
66
|
+
<!-- Main Content -->
|
@@ -1,39 +1,39 @@
|
|
1
|
-
<!-- Title System -->
|
2
|
-
<% phc_title "Plugin: Article Category Manager" %>
|
3
|
-
<% phc_title_tagline "Create a New Category" %>
|
4
|
-
<% phc_breadcrumb_one link_to "Category Index", phcpress.modules_categories_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
|
-
<!-- Page Form (New) -->
|
31
|
-
<%= render 'form', modules_category: @modules_category %>
|
32
|
-
<!-- Page Form (New) -->
|
33
|
-
|
34
|
-
</div>
|
35
|
-
</div>
|
36
|
-
</div>
|
37
|
-
</div>
|
38
|
-
</section>
|
39
|
-
<!-- Main Content -->
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Plugin: Article Category Manager" %>
|
3
|
+
<% phc_title_tagline "Create a New Category" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Category Index", phcpress.modules_categories_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
|
+
<!-- Page Form (New) -->
|
31
|
+
<%= render 'form', modules_category: @modules_category %>
|
32
|
+
<!-- Page Form (New) -->
|
33
|
+
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
</section>
|
39
|
+
<!-- Main Content -->
|
@@ -1,40 +1,40 @@
|
|
1
|
-
<!-- Title System -->
|
2
|
-
<% phc_title "Plugin: Article Category Manager" %>
|
3
|
-
<% phc_title_tagline "Category Details" %>
|
4
|
-
<% phc_breadcrumb_one link_to "Category Index", phcpress.modules_categories_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
|
-
<!-- Show Content -->
|
31
|
-
<%= link_to 'Edit', edit_modules_category_path(@modules_category) %> |
|
32
|
-
<%= link_to 'Back', modules_categories_path %>
|
33
|
-
<!-- Show Content -->
|
34
|
-
|
35
|
-
</div>
|
36
|
-
</div>
|
37
|
-
</div>
|
38
|
-
</div>
|
39
|
-
</section>
|
40
|
-
<!-- Main Content -->
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Plugin: Article Category Manager" %>
|
3
|
+
<% phc_title_tagline "Category Details" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Category Index", phcpress.modules_categories_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
|
+
<!-- Show Content -->
|
31
|
+
<%= link_to 'Edit', edit_modules_category_path(@modules_category) %> |
|
32
|
+
<%= link_to 'Back', modules_categories_path %>
|
33
|
+
<!-- Show Content -->
|
34
|
+
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
</section>
|
40
|
+
<!-- Main Content -->
|
@@ -1,24 +1,24 @@
|
|
1
|
-
<%= form_for(@modules_connection) do |f| %>
|
2
|
-
|
3
|
-
<!-- PHC-Notifi Render Validation -->
|
4
|
-
<%= render 'phcnotifi/validations', :object => @articles_post %>
|
5
|
-
<!-- PHC-Notifi Render Validation -->
|
6
|
-
|
7
|
-
<!-- Form Fields -->
|
8
|
-
<div class="form-group field_with_errors">
|
9
|
-
<%= f.label :category_id, "Category ID" %>
|
10
|
-
<%= f.text_field :category_id, class: "form-control" %>
|
11
|
-
</div>
|
12
|
-
<div class="form-group field_with_errors">
|
13
|
-
<%= f.label :post_id, "Post ID" %>
|
14
|
-
<%= f.text_field :post_id, class: "form-control" %>
|
15
|
-
</div>
|
16
|
-
<!-- Form Fields -->
|
17
|
-
|
18
|
-
<!-- Form Button -->
|
19
|
-
<div class="actions">
|
20
|
-
<%= f.submit class: "btn btn-primary" %>
|
21
|
-
</div>
|
22
|
-
<!-- Form Button -->
|
23
|
-
|
24
|
-
<% end %>
|
1
|
+
<%= form_for(@modules_connection) do |f| %>
|
2
|
+
|
3
|
+
<!-- PHC-Notifi Render Validation -->
|
4
|
+
<%= render 'phcnotifi/validations', :object => @articles_post %>
|
5
|
+
<!-- PHC-Notifi Render Validation -->
|
6
|
+
|
7
|
+
<!-- Form Fields -->
|
8
|
+
<div class="form-group field_with_errors">
|
9
|
+
<%= f.label :category_id, "Category ID" %>
|
10
|
+
<%= f.text_field :category_id, class: "form-control" %>
|
11
|
+
</div>
|
12
|
+
<div class="form-group field_with_errors">
|
13
|
+
<%= f.label :post_id, "Post ID" %>
|
14
|
+
<%= f.text_field :post_id, class: "form-control" %>
|
15
|
+
</div>
|
16
|
+
<!-- Form Fields -->
|
17
|
+
|
18
|
+
<!-- Form Button -->
|
19
|
+
<div class="actions">
|
20
|
+
<%= f.submit class: "btn btn-primary" %>
|
21
|
+
</div>
|
22
|
+
<!-- Form Button -->
|
23
|
+
|
24
|
+
<% end %>
|
@@ -1,39 +1,39 @@
|
|
1
|
-
<!-- Title System -->
|
2
|
-
<% phc_title "PHCPress Plugin: Connections" %>
|
3
|
-
<% phc_title_tagline "Update Category Connections" %>
|
4
|
-
<% phc_breadcrumb_one link_to "Connection Index", phcpresspro.modules_connections_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
|
-
<!-- Page Form (Edit) -->
|
31
|
-
<%= render 'form', modules_connection: @modules_connection %>
|
32
|
-
<!-- Page Form (Edit) -->
|
33
|
-
|
34
|
-
</div>
|
35
|
-
</div>
|
36
|
-
</div>
|
37
|
-
</div>
|
38
|
-
</section>
|
39
|
-
<!-- Main Content -->
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "PHCPress Plugin: Connections" %>
|
3
|
+
<% phc_title_tagline "Update Category Connections" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Connection Index", phcpresspro.modules_connections_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
|
+
<!-- Page Form (Edit) -->
|
31
|
+
<%= render 'form', modules_connection: @modules_connection %>
|
32
|
+
<!-- Page Form (Edit) -->
|
33
|
+
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
</section>
|
39
|
+
<!-- Main Content -->
|
@@ -1,66 +1,66 @@
|
|
1
|
-
<!-- Title System -->
|
2
|
-
<% phc_title "PHCPress Plugin: Connections" %>
|
3
|
-
<% phc_title_tagline "Connections Index" %>
|
4
|
-
<% phc_breadcrumb_one yield(:phc_title_tagline) %>
|
5
|
-
<!-- Title System -->
|
6
|
-
|
7
|
-
<!-- Page Title Bar -->
|
8
|
-
<section class="content-header">
|
9
|
-
<!-- Page Title and BreadCrumb -->
|
10
|
-
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
11
|
-
<ol class="breadcrumb">
|
12
|
-
<li><%= yield(:phc_breadcrumb_one) %></li>
|
13
|
-
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
14
|
-
</ol>
|
15
|
-
<!-- Page Title and BreadCrumb -->
|
16
|
-
</section>
|
17
|
-
<!-- Page Title Bar -->
|
18
|
-
|
19
|
-
<!-- Main Content -->
|
20
|
-
<section class="content">
|
21
|
-
<div class="row">
|
22
|
-
<div class="col-lg-12">
|
23
|
-
<div class="box">
|
24
|
-
<div class="box-header with-border">
|
25
|
-
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
26
|
-
</div>
|
27
|
-
<div class="box-body">
|
28
|
-
|
29
|
-
<!-- Index Table -->
|
30
|
-
<div class="table-responsive">
|
31
|
-
<table class="table table-bordered table-striped table-hover">
|
32
|
-
<thead>
|
33
|
-
<tr>
|
34
|
-
<th>Category</th>
|
35
|
-
<th>Posts</th>
|
36
|
-
<th colspan="3"></th>
|
37
|
-
</tr>
|
38
|
-
</thead>
|
39
|
-
|
40
|
-
<tbody>
|
41
|
-
<% @modules_connections.each do |modules_connection| %>
|
42
|
-
<tr>
|
43
|
-
<td><%= modules_connection.category.catname %></td>
|
44
|
-
<td><%= modules_connection.post.psttitle %></td>
|
45
|
-
<td><%= link_to 'Show', modules_connection, class: "btn btn-primary btn-xs" %></td>
|
46
|
-
<td><%= link_to 'Edit', edit_modules_connection_path(modules_connection), class: "btn btn-primary btn-xs" %></td>
|
47
|
-
<td><%= link_to 'Destroy', modules_connection, class: "btn btn-primary btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
48
|
-
</tr>
|
49
|
-
<% end %>
|
50
|
-
</tbody>
|
51
|
-
</table>
|
52
|
-
</div>
|
53
|
-
<!-- Index Table -->
|
54
|
-
|
55
|
-
<!-- Panel Footer -->
|
56
|
-
<div class="box-footer clearfix">
|
57
|
-
<%= link_to 'New Connection', new_modules_connection_path, class: "btn btn-primary" %>
|
58
|
-
</div>
|
59
|
-
<!-- Panel Footer -->
|
60
|
-
|
61
|
-
</div>
|
62
|
-
</div>
|
63
|
-
</div>
|
64
|
-
</div>
|
65
|
-
</section>
|
66
|
-
<!-- Main Content -->
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "PHCPress Plugin: Connections" %>
|
3
|
+
<% phc_title_tagline "Connections Index" %>
|
4
|
+
<% phc_breadcrumb_one yield(:phc_title_tagline) %>
|
5
|
+
<!-- Title System -->
|
6
|
+
|
7
|
+
<!-- Page Title Bar -->
|
8
|
+
<section class="content-header">
|
9
|
+
<!-- Page Title and BreadCrumb -->
|
10
|
+
<h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
|
11
|
+
<ol class="breadcrumb">
|
12
|
+
<li><%= yield(:phc_breadcrumb_one) %></li>
|
13
|
+
<li class="active"><%= yield(:phc_breadcrumb_two) %></li>
|
14
|
+
</ol>
|
15
|
+
<!-- Page Title and BreadCrumb -->
|
16
|
+
</section>
|
17
|
+
<!-- Page Title Bar -->
|
18
|
+
|
19
|
+
<!-- Main Content -->
|
20
|
+
<section class="content">
|
21
|
+
<div class="row">
|
22
|
+
<div class="col-lg-12">
|
23
|
+
<div class="box">
|
24
|
+
<div class="box-header with-border">
|
25
|
+
<h3 class="box-title"><%= yield(:phc_title) %></h3>
|
26
|
+
</div>
|
27
|
+
<div class="box-body">
|
28
|
+
|
29
|
+
<!-- Index Table -->
|
30
|
+
<div class="table-responsive">
|
31
|
+
<table class="table table-bordered table-striped table-hover">
|
32
|
+
<thead>
|
33
|
+
<tr>
|
34
|
+
<th>Category</th>
|
35
|
+
<th>Posts</th>
|
36
|
+
<th colspan="3"></th>
|
37
|
+
</tr>
|
38
|
+
</thead>
|
39
|
+
|
40
|
+
<tbody>
|
41
|
+
<% @modules_connections.each do |modules_connection| %>
|
42
|
+
<tr>
|
43
|
+
<td><%= modules_connection.category.catname %></td>
|
44
|
+
<td><%= modules_connection.post.psttitle %></td>
|
45
|
+
<td><%= link_to 'Show', modules_connection, class: "btn btn-primary btn-xs" %></td>
|
46
|
+
<td><%= link_to 'Edit', edit_modules_connection_path(modules_connection), class: "btn btn-primary btn-xs" %></td>
|
47
|
+
<td><%= link_to 'Destroy', modules_connection, class: "btn btn-primary btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
48
|
+
</tr>
|
49
|
+
<% end %>
|
50
|
+
</tbody>
|
51
|
+
</table>
|
52
|
+
</div>
|
53
|
+
<!-- Index Table -->
|
54
|
+
|
55
|
+
<!-- Panel Footer -->
|
56
|
+
<div class="box-footer clearfix">
|
57
|
+
<%= link_to 'New Connection', new_modules_connection_path, class: "btn btn-primary" %>
|
58
|
+
</div>
|
59
|
+
<!-- Panel Footer -->
|
60
|
+
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
</div>
|
64
|
+
</div>
|
65
|
+
</section>
|
66
|
+
<!-- Main Content -->
|