phcdevworks_portfolio 10.1.1 → 11.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +3 -0
  4. data/app/assets/config/phcdevworks_portfolio_manifest.js +2 -3
  5. data/app/controllers/phcdevworks_portfolio/application_controller.rb +13 -13
  6. data/app/controllers/phcdevworks_portfolio/project/pages_controller.rb +21 -21
  7. data/app/controllers/phcdevworks_portfolio/project/posts_controller.rb +76 -76
  8. data/app/controllers/phcdevworks_portfolio/project/types_controller.rb +77 -77
  9. data/app/helpers/phcdevworks_portfolio/application_helper.rb +4 -4
  10. data/app/helpers/phcdevworks_portfolio/project/pages_helper.rb +4 -4
  11. data/app/helpers/phcdevworks_portfolio/project/posts_helper.rb +4 -4
  12. data/app/helpers/phcdevworks_portfolio/project/types_helper.rb +4 -4
  13. data/app/jobs/phcdevworks_portfolio/application_job.rb +4 -4
  14. data/app/mailers/phcdevworks_portfolio/application_mailer.rb +6 -6
  15. data/app/models/phcdevworks_portfolio/application_record.rb +5 -5
  16. data/app/models/phcdevworks_portfolio/project/post.rb +27 -27
  17. data/app/models/phcdevworks_portfolio/project/type.rb +22 -22
  18. data/app/models/phcdevworks_portfolio/project.rb +7 -7
  19. data/app/models/phcdevworks_portfolio/project_post_versions.rb +5 -5
  20. data/app/models/phcdevworks_portfolio/project_type_versions.rb +5 -5
  21. data/app/views/layouts/phcdevworks_portfolio/application.html.erb +58 -116
  22. data/app/views/layouts/phcdevworks_portfolio/components/backend/footer/_footer.html.erb +10 -9
  23. data/app/views/layouts/phcdevworks_portfolio/components/backend/navigation/_top_menu.html.erb +26 -25
  24. data/app/views/layouts/phcdevworks_portfolio/components/backend/sidebars/_side_menu.html.erb +491 -349
  25. data/app/views/phcdevworks_portfolio/project/posts/_form.html.erb +64 -64
  26. data/app/views/phcdevworks_portfolio/project/posts/edit.html.erb +39 -47
  27. data/app/views/phcdevworks_portfolio/project/posts/index.html.erb +75 -83
  28. data/app/views/phcdevworks_portfolio/project/posts/new.html.erb +39 -47
  29. data/app/views/phcdevworks_portfolio/project/types/_form.html.erb +22 -22
  30. data/app/views/phcdevworks_portfolio/project/types/edit.html.erb +39 -47
  31. data/app/views/phcdevworks_portfolio/project/types/index.html.erb +71 -79
  32. data/app/views/phcdevworks_portfolio/project/types/new.html.erb +39 -47
  33. data/config/routes.rb +10 -14
  34. data/config/spring.rb +1 -1
  35. data/db/migrate/20191014112330_create_phcdevworks_portfolio_project_posts.rb +21 -21
  36. data/db/migrate/20191021225316_create_phcdevworks_portfolio_project_types.rb +17 -17
  37. data/db/migrate/20191024232111_create_phcdevworks_portfolio_project_categories_posts.rb +10 -10
  38. data/db/migrate/20191024232406_create_phcdevworks_portfolio_project_posts_types.rb +10 -10
  39. data/db/migrate/20191102091459_create_phcdevworks_portfolio_project_post_versions.rb +18 -18
  40. data/db/migrate/20191102091744_create_phcdevworks_portfolio_project_type_versions.rb +18 -18
  41. data/lib/phcdevworks_portfolio/engine.rb +45 -45
  42. data/lib/phcdevworks_portfolio/version.rb +3 -3
  43. metadata +36 -84
  44. data/app/assets/stylesheets/phcdevworks_portfolio/application.scss +0 -0
  45. data/app/assets/stylesheets/phcdevworks_portfolio/project/pages.scss +0 -3
  46. data/app/assets/stylesheets/phcdevworks_portfolio/project/posts.scss +0 -0
  47. data/app/assets/stylesheets/phcdevworks_portfolio/project/types.scss +0 -3
  48. data/app/views/layouts/phcdevworks_portfolio/frontend.html.erb +0 -0
@@ -1,79 +1,71 @@
1
- <!-- PHCTitleSEO Title Variables -->
2
- <% phc_title "Portfolio Manager" %>
3
- <% phc_title_tagline "Project Type Index" %>
4
- <% phc_breadcrumb_one link_to "Type List", phcdevworks_portfolio.project_types_path %>
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>Project Type</th>
42
- <th></th>
43
- </tr>
44
- </thead>
45
-
46
- <tbody>
47
- <% @project_types.each do |project_type| %>
48
- <tr>
49
- <td><%= project_type.project_type_name %></td>
50
- <td>
51
- <div class="btn-group d-flex" role="group">
52
- <%= link_to "Update Type Name", edit_project_type_path(project_type), class: "btn btn-purple btn-xs" %>
53
- <%= link_to "Remove Project Type", project_type, method: :delete, data: { confirm: "Are you sure? This will also remove the Members addresses and listings. This action cannot be reversed." }, class: "btn btn-danger btn-xs" %>
54
- </div>
55
- </td>
56
- </tr>
57
- <% end %>
58
- </tbody>
59
-
60
- </table>
61
- </div>
62
- <!-- Index - Table -->
63
-
64
- <!-- New Button -->
65
- <%= link_to phcdevworks_portfolio.new_project_type_path, class: "btn btn-primary btn-sm" do %>
66
- <i class="fad fa-plus-circle"></i>
67
- Add a New Project Type
68
- <% end %>
69
- <!-- New Button -->
70
-
71
- </div>
72
- <!-- Panel - Body -->
73
-
74
- </div>
75
- <!-- Panel -->
76
-
77
- </div>
78
- </div>
79
- <!-- Page Content -->
1
+ <!-- -PHCDEV- Title Variables -->
2
+ <% phc_title "Portfolio Manager" %>
3
+ <% phc_title_tagline "Project Type Index" %>
4
+ <% phc_breadcrumb_one link_to "Type List", phcdevworks_portfolio.project_types_path %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
+ <!-- -PHCDEV- Title Variables -->
7
+
8
+ <!-- -PHCDEV- Bradcrumbs -->
9
+ <ol class="breadcrumb float-xl-end">
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
+ </ol>
13
+ <!-- -PHCDEV- Bradcrumbs -->
14
+
15
+ <!-- -PHCDEV- Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- -PHCDEV- Header -->
18
+
19
+ <!-- -PHCDEV- Panel -->
20
+ <div class="panel panel-inverse">
21
+
22
+ <!-- -PHCDEV- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- -PHCDEV- Panel - Heading -->
27
+
28
+ <!-- -PHCDEV- Panel - Body -->
29
+ <div class="panel-body">
30
+
31
+ <!-- -PHCDEV- Index - Table -->
32
+ <div class="table-responsive">
33
+ <table class="table table-striped table-bordered">
34
+
35
+ <thead>
36
+ <tr>
37
+ <th>Project Type</th>
38
+ <th></th>
39
+ </tr>
40
+ </thead>
41
+
42
+ <tbody>
43
+ <% @project_types.each do |project_type| %>
44
+ <tr>
45
+ <td><%= project_type.project_type_name %></td>
46
+ <td>
47
+ <div class="btn-group d-flex" role="group">
48
+ <%= link_to "Update Type Name", edit_project_type_path(project_type), class: "btn btn-purple btn-xs" %>
49
+ <%= link_to "Remove Project Type", project_type, method: :delete, data: { confirm: "Are you sure? This will also remove the Members addresses and listings. This action cannot be reversed." }, class: "btn btn-danger btn-xs" %>
50
+ </div>
51
+ </td>
52
+ </tr>
53
+ <% end %>
54
+ </tbody>
55
+
56
+ </table>
57
+ </div>
58
+ <!-- -PHCDEV- Index - Table -->
59
+
60
+ <!-- -PHCDEV- New Button -->
61
+ <%= link_to phcdevworks_portfolio.new_project_type_path, class: "btn btn-primary btn-sm" do %>
62
+ <i class="fad fa-plus-circle"></i>
63
+ Add a New Project Type
64
+ <% end %>
65
+ <!-- -PHCDEV- New Button -->
66
+
67
+ </div>
68
+ <!-- -PHCDEV- Panel - Body -->
69
+
70
+ </div>
71
+ <!-- -PHCDEV- Panel -->
@@ -1,47 +1,39 @@
1
- <!-- PHCTitleSEO Title Variables -->
2
- <% phc_title "Portfolio Manager" %>
3
- <% phc_title_tagline "Update Project Type" %>
4
- <% phc_breadcrumb_one link_to "Type List", phcdevworks_portfolio.project_types_path %>
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
- <!-- New Form -->
36
- <%= render 'form', project_type: @project_type %>
37
- <!-- New Form -->
38
-
39
- </div>
40
- <!-- Panel - Body -->
41
-
42
- </div>
43
- <!-- Panel -->
44
-
45
- </div>
46
- </div>
47
- <!-- Page Content -->
1
+ <!-- -PHCDEV- Title Variables -->
2
+ <% phc_title "Portfolio Manager" %>
3
+ <% phc_title_tagline "Update Project Type" %>
4
+ <% phc_breadcrumb_one link_to "Type List", phcdevworks_portfolio.project_types_path %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
+ <!-- -PHCDEV- Title Variables -->
7
+
8
+ <!-- -PHCDEV- Bradcrumbs -->
9
+ <ol class="breadcrumb float-xl-end">
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
+ </ol>
13
+ <!-- -PHCDEV- Bradcrumbs -->
14
+
15
+ <!-- -PHCDEV- Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- -PHCDEV- Header -->
18
+
19
+ <!-- -PHCDEV- Panel -->
20
+ <div class="panel panel-inverse">
21
+
22
+ <!-- -PHCDEV- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- -PHCDEV- Panel - Heading -->
27
+
28
+ <!-- -PHCDEV- Panel - Body -->
29
+ <div class="panel-body">
30
+
31
+ <!-- -PHCDEV- New Form -->
32
+ <%= render 'form', project_type: @project_type %>
33
+ <!-- -PHCDEV- New Form -->
34
+
35
+ </div>
36
+ <!-- -PHCDEV- Panel - Body -->
37
+
38
+ </div>
39
+ <!-- -PHCDEV- Panel -->
data/config/routes.rb CHANGED
@@ -1,14 +1,10 @@
1
- PhcdevworksPortfolio::Engine.routes.draw do
2
-
3
- # Project Routes
4
- namespace :project do
5
- resources :posts, class_name: "Project::Post"
6
- resources :types, class_name: "Project::Type"
7
- resources :pages, only: [:index, :show]
8
- end
9
-
10
- # Mount Routes
11
- mount PhcdevworksAccounts::Engine, :at => '/'
12
- mount PhcdevworksCoreModules::Engine, :at => '/'
13
-
14
- end
1
+ PhcdevworksPortfolio::Engine.routes.draw do
2
+
3
+ # Project Routes
4
+ namespace :project do
5
+ resources :posts, class_name: "Project::Post"
6
+ resources :types, class_name: "Project::Type"
7
+ resources :pages, only: [:index, :show]
8
+ end
9
+
10
+ end
data/config/spring.rb CHANGED
@@ -1,2 +1,2 @@
1
- Spring.application_root = './spec/test_app'
1
+ Spring.application_root = './spec/test_app'
2
2
 
@@ -1,21 +1,21 @@
1
- class CreatePhcdevworksPortfolioProjectPosts < ActiveRecord::Migration[6.0]
2
- def change
3
- create_table :phcdevworks_portfolio_project_posts do |t|
4
-
5
- t.string :project_post_title
6
- t.text :project_post_description
7
-
8
- t.string :project_post_url
9
- t.string :project_post_status
10
-
11
- t.string :optimization_id
12
-
13
- t.string :slug
14
- t.string :user_id
15
- t.string :org_id
16
-
17
- t.timestamps
18
-
19
- end
20
- end
21
- end
1
+ class CreatePhcdevworksPortfolioProjectPosts < ActiveRecord::Migration[7.0]
2
+ def change
3
+ create_table :phcdevworks_portfolio_project_posts do |t|
4
+
5
+ t.string :project_post_title
6
+ t.text :project_post_description
7
+
8
+ t.string :project_post_url
9
+ t.string :project_post_status
10
+
11
+ t.string :optimization_id
12
+
13
+ t.string :slug
14
+ t.string :user_id
15
+ t.string :org_id
16
+
17
+ t.timestamps
18
+
19
+ end
20
+ end
21
+ end
@@ -1,17 +1,17 @@
1
- class CreatePhcdevworksPortfolioProjectTypes < ActiveRecord::Migration[6.0]
2
- def change
3
- create_table :phcdevworks_portfolio_project_types do |t|
4
-
5
- t.string :project_type_name
6
-
7
- t.string :optimization_id
8
-
9
- t.string :slug
10
- t.string :user_id
11
- t.string :org_id
12
-
13
- t.timestamps
14
-
15
- end
16
- end
17
- end
1
+ class CreatePhcdevworksPortfolioProjectTypes < ActiveRecord::Migration[7.0]
2
+ def change
3
+ create_table :phcdevworks_portfolio_project_types do |t|
4
+
5
+ t.string :project_type_name
6
+
7
+ t.string :optimization_id
8
+
9
+ t.string :slug
10
+ t.string :user_id
11
+ t.string :org_id
12
+
13
+ t.timestamps
14
+
15
+ end
16
+ end
17
+ end
@@ -1,10 +1,10 @@
1
- class CreatePhcdevworksPortfolioProjectCategoriesPosts < ActiveRecord::Migration[6.0]
2
- def change
3
- create_table :phcdevworks_portfolio_project_categories_posts do |t|
4
-
5
- t.integer :category_id
6
- t.integer :post_id
7
-
8
- end
9
- end
10
- end
1
+ class CreatePhcdevworksPortfolioProjectCategoriesPosts < ActiveRecord::Migration[7.0]
2
+ def change
3
+ create_table :phcdevworks_portfolio_project_categories_posts do |t|
4
+
5
+ t.integer :category_id
6
+ t.integer :post_id
7
+
8
+ end
9
+ end
10
+ end
@@ -1,10 +1,10 @@
1
- class CreatePhcdevworksPortfolioProjectPostsTypes < ActiveRecord::Migration[6.0]
2
- def change
3
- create_table :phcdevworks_portfolio_project_posts_types do |t|
4
-
5
- t.integer :post_id
6
- t.integer :type_id
7
-
8
- end
9
- end
10
- end
1
+ class CreatePhcdevworksPortfolioProjectPostsTypes < ActiveRecord::Migration[7.0]
2
+ def change
3
+ create_table :phcdevworks_portfolio_project_posts_types do |t|
4
+
5
+ t.integer :post_id
6
+ t.integer :type_id
7
+
8
+ end
9
+ end
10
+ end
@@ -1,18 +1,18 @@
1
- class CreatePhcdevworksPortfolioProjectPostVersions < ActiveRecord::Migration[6.0]
2
- TEXT_BYTES = 1_073_741_823
3
- def change
4
- create_table :phcdevworks_portfolio_project_post_versions do |t|
5
-
6
- t.string :item_type, {:null=>false}
7
- t.integer :item_id, null: false
8
- t.string :event, null: false
9
- t.string :whodunnit
10
- t.text :object, limit: TEXT_BYTES
11
- t.datetime :created_at
12
-
13
- end
14
-
15
- add_index :phcdevworks_portfolio_project_post_versions, %i(item_type item_id), :name => 'project_post_versions'
16
-
17
- end
18
- end
1
+ class CreatePhcdevworksPortfolioProjectPostVersions < ActiveRecord::Migration[7.0]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+ create_table :phcdevworks_portfolio_project_post_versions do |t|
5
+
6
+ t.string :item_type, {:null=>false}
7
+ t.integer :item_id, null: false
8
+ t.string :event, null: false
9
+ t.string :whodunnit
10
+ t.text :object, limit: TEXT_BYTES
11
+ t.datetime :created_at
12
+
13
+ end
14
+
15
+ add_index :phcdevworks_portfolio_project_post_versions, %i(item_type item_id), :name => 'project_post_versions'
16
+
17
+ end
18
+ end
@@ -1,18 +1,18 @@
1
- class CreatePhcdevworksPortfolioProjectTypeVersions < ActiveRecord::Migration[6.0]
2
- TEXT_BYTES = 1_073_741_823
3
- def change
4
- create_table :phcdevworks_portfolio_project_type_versions do |t|
5
-
6
- t.string :item_type, {:null=>false}
7
- t.integer :item_id, null: false
8
- t.string :event, null: false
9
- t.string :whodunnit
10
- t.text :object, limit: TEXT_BYTES
11
- t.datetime :created_at
12
-
13
- end
14
-
15
- add_index :phcdevworks_portfolio_project_type_versions, %i(item_type item_id), :name => 'project_type_versions'
16
-
17
- end
18
- end
1
+ class CreatePhcdevworksPortfolioProjectTypeVersions < ActiveRecord::Migration[7.0]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+ create_table :phcdevworks_portfolio_project_type_versions do |t|
5
+
6
+ t.string :item_type, {:null=>false}
7
+ t.integer :item_id, null: false
8
+ t.string :event, null: false
9
+ t.string :whodunnit
10
+ t.text :object, limit: TEXT_BYTES
11
+ t.datetime :created_at
12
+
13
+ end
14
+
15
+ add_index :phcdevworks_portfolio_project_type_versions, %i(item_type item_id), :name => 'project_type_versions'
16
+
17
+ end
18
+ end
@@ -1,47 +1,47 @@
1
1
  module PhcdevworksPortfolio
2
- class Engine < ::Rails::Engine
3
-
4
- # Load Main Dependencies
5
- require "jbuilder"
6
- require "paper_trail"
7
- require "friendly_id"
8
-
9
- # Load Theme Dependencies
10
- require "phcthemes_admin_panel_pack"
11
- require "phcthemes_web_theme_pack"
12
-
13
- # Load Helper Dependencies
14
- require "phcdevworks_core"
15
- require "phcdevworks_active_menus"
16
- require "phcdevworks_notifications"
17
- require "phcdevworks_titleseo"
18
-
19
- # Load Upload Dependencies
20
- require "aws-sdk-s3"
21
- require "google-cloud-storage"
22
- require "mini_magick"
23
-
24
- # Frontend Dependencies
25
- require "wicked"
26
- require "gravtastic"
27
- require "friendly_id"
28
-
29
- # Mailer Dependencies
30
- require "mail_form"
31
-
32
- # Load Required PHC Plugins
33
- require "phcdevworks_accounts"
34
- require "phcdevworks_core_modules"
35
-
36
- # Engine Namespace
37
- isolate_namespace PhcdevworksPortfolio
38
-
39
- # Rspec Generators
40
- config.generators do |g|
41
- g.test_framework :rspec
42
- g.fixture_replacement :factory_bot
43
- g.factory_bot dir: 'spec/factories'
44
- end
45
-
46
- end
2
+ class Engine < ::Rails::Engine
3
+
4
+ # Load Main Dependencies
5
+ require "jbuilder"
6
+ require "paper_trail"
7
+ require "friendly_id"
8
+
9
+ # Load Theme Dependencies
10
+ require "phcthemes_admin_panel_pack"
11
+ require "phcthemes_web_theme_pack"
12
+
13
+ # Load Helper Dependencies
14
+ require "phcdevworks_core"
15
+ require "phcdevworks_active_menus"
16
+ require "phcdevworks_notifications"
17
+ require "phcdevworks_titleseo"
18
+
19
+ # Load Upload Dependencies
20
+ require "aws-sdk-s3"
21
+ require "google-cloud-storage"
22
+ require "mini_magick"
23
+
24
+ # Frontend Dependencies
25
+ require "wicked"
26
+ require "gravtastic"
27
+ require "friendly_id"
28
+
29
+ # Mailer Dependencies
30
+ require "mail_form"
31
+
32
+ # PHCDevworks Plugins
33
+ require "phcdevworks_core_modules"
34
+
35
+ # Engine Namespace
36
+ isolate_namespace PhcdevworksPortfolio
37
+
38
+ # Rspec Generators
39
+ config.generators do |g|
40
+ g.test_framework :rspec
41
+ g.fixture_replacement :factory_bot
42
+ g.factory_bot dir: 'spec/factories'
43
+ g.factory_bot suffix: "factory"
44
+ end
45
+
46
+ end
47
47
  end
@@ -1,3 +1,3 @@
1
- module PhcdevworksPortfolio
2
- VERSION = "10.1.1"
3
- end
1
+ module PhcdevworksPortfolio
2
+ VERSION = "11.0.2"
3
+ end